From b456f791670fa74f8456cc478e88fa77e5849ac6 Mon Sep 17 00:00:00 2001 From: Charles Bochet Date: Thu, 12 Feb 2026 10:58:52 +0100 Subject: [PATCH] Reduce leak between gql schema (#17878) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Reduce type leakage between GraphQL schemas ### Why Twenty runs two separate GraphQL schemas: **core** and **metadata**. NestJS's `@nestjs/graphql` uses a global `TypeMetadataStorage` that accumulates all decorated types across all modules. When each schema is built, every registered type leaks into both schemas regardless of which module it belongs to. This means the core schema's generated TypeScript (`generated/graphql.ts`) contained ~2,700 lines of types that only belong to the metadata schema (and vice versa). This creates confusion about type ownership, inflates generated code, and makes it harder to reason about which API surface each schema actually exposes. ### How **1. Patch `@nestjs/graphql` to support schema-scoped type resolution** - **(Already done)** Added a `resolverSchemaScope` option to `GqlModuleOptions`, allowing each schema to declare a scope (e.g. `'metadata'`) - `ResolversExplorerService` now filters resolvers by a `RESOLVER_SCHEMA_SCOPE` metadata key, so each schema only sees its own resolvers - `GraphQLSchemaFactory` now performs a **reachability walk** (`computeReachableTypes`) starting from scoped resolver return types and arguments, only including types that are transitively referenced — handling unions, interfaces, and prototype chains - Type definition storage and orphaned reference registry are cleared between schema builds to prevent cross-contamination **2. Register `ClientConfig` as orphaned type in metadata schema** Since `ClientConfig` is needed in the metadata schema but not directly returned by a resolver, it's explicitly declared via `buildSchemaOptions.orphanedTypes`. **3. Regenerate frontend types and fix imports** - `generated/graphql.ts` shrank by ~2,700 lines (types moved to where they belong) - `generated-metadata/graphql.ts` gained types like `ClientConfig` that were previously missing - ~500 frontend files updated to import from the correct generated file --- .../src/generated-metadata/graphql.ts | 161 +- .../twenty-front/src/generated/graphql.ts | 2688 ----------------- ...sePageChangeEffectNavigateLocation.test.ts | 2 +- .../usePageChangeEffectNavigateLocation.ts | 2 +- .../constants/DefaultRecordActionsConfig.tsx | 6 +- .../AddToFavoritesSingleRecordAction.tsx | 2 +- .../components/DeleteSingleRecordAction.tsx | 2 +- .../RemoveFromFavoritesSingleRecordAction.tsx | 2 +- .../hooks/useRecordAgnosticActions.ts | 2 +- .../types/ShouldBeRegisteredFunctionParams.ts | 2 +- .../useShouldActionBeRegisteredParams.ts | 2 +- .../CalendarEventParticipantsAvatarGroup.tsx | 2 +- .../calendar/components/CalendarEventRow.tsx | 8 +- .../__stories__/Calendar.stories.tsx | 2 +- .../IsTimelineCalendarEventParticipant.ts | 2 +- .../components/ActivityRichTextEditor.tsx | 2 +- .../files/components/AttachmentList.tsx | 6 +- .../files/components/AttachmentRow.tsx | 6 +- .../activities/files/hooks/useAttachments.tsx | 2 +- .../files/hooks/useUploadAttachmentFile.tsx | 3 +- .../useActivityTargetsForTargetableObjects.ts | 2 +- .../usePrepareFindManyActivitiesQuery.ts | 2 +- .../hooks/useUpdateActivityTargetFromCell.ts | 2 +- .../TimelineActivities.stories.tsx | 2 +- .../types/TimelineActivity.ts | 2 +- .../ai/components/AgentChatProvider.tsx | 2 +- .../ai/utils/mapDBMessagesToUIMessages.ts | 2 +- .../ai/utils/mapDBPartToUIMessagePart.ts | 2 +- .../services/__tests__/apollo.factory.test.ts | 2 +- .../modules/apollo/services/apollo.factory.ts | 2 +- .../src/modules/apollo/utils/getTokenPair.ts | 2 +- .../apollo/utils/isValidAuthTokenPair.ts | 2 +- .../modules/app/components/SettingsRoutes.tsx | 5 +- .../auth/hooks/__tests__/useAuth.test.tsx | 2 +- .../src/modules/auth/hooks/useAuth.ts | 2 +- .../components/SignInUpGlobalScopeForm.tsx | 2 +- .../__tests__/useSignInWithGoogle.test.ts | 5 +- .../sign-in-up/hooks/useSignInWithGoogle.ts | 6 +- .../auth/states/availableWorkspacesState.ts | 2 +- .../modules/auth/states/currentUserState.ts | 2 +- .../auth/states/currentUserWorkspaceState.ts | 2 +- .../auth/states/currentWorkspaceState.ts | 2 +- .../modules/auth/states/loginTokenState.ts | 2 +- .../src/modules/auth/states/tokenPairState.ts | 2 +- .../auth/states/workspacePublicDataState.ts | 2 +- .../auth/types/billingCheckoutSession.type.ts | 6 +- .../availableWorkspacesUtils.test.ts | 2 +- .../auth/utils/availableWorkspacesUtils.ts | 2 +- .../SettingsBillingCreditsSection.tsx | 2 +- .../SettingsBillingSubscriptionInfo.tsx | 2 +- .../internal/MeteredPriceSelector.tsx | 6 +- .../billing/hooks/useAllBillingPrices.ts | 2 +- ...seBaseLicensedPriceByPlanKeyAndInterval.ts | 6 +- .../billing/hooks/useBaseProductByPlanKey.ts | 5 +- .../billing/hooks/useCurrentBillingFlags.ts | 6 +- .../billing/hooks/useCurrentMetered.ts | 12 +- .../modules/billing/hooks/useCurrentPlan.ts | 2 +- .../modules/billing/hooks/useFormatPrices.ts | 5 +- .../modules/billing/hooks/usePlanByPlanKey.ts | 2 +- .../hooks/usePriceAndBillingUsageByPriceId.ts | 2 +- .../hooks/useSplitPhaseItemsInPrices.ts | 4 +- .../billing/types/billing-price-tiers.type.ts | 2 +- .../CaptchaProviderScriptLoaderEffect.tsx | 2 +- .../__tests__/getCaptchaUrlByProvider.test.ts | 2 +- .../client-config/states/apiConfigState.ts | 2 +- .../states/authProvidersState.ts | 2 +- .../client-config/states/billingState.ts | 2 +- .../client-config/states/captchaState.ts | 2 +- .../states/labPublicFeatureFlagsState.ts | 2 +- .../client-config/states/sentryConfigState.ts | 2 +- .../client-config/states/supportChatState.ts | 2 +- ...seCommandMenuItemFrontComponentActions.tsx | 2 +- .../CommandMenuTopBarRightCornerIcon.tsx | 2 +- .../hooks/useCommandMenuHotKeys.ts | 2 +- .../CommandMenuCalendarEventPage.tsx | 2 +- .../components/ChartLimitInfoBanner.tsx | 2 +- .../CommandMenuPageLayoutIframeSettings.tsx | 2 +- .../CommandMenuPageLayoutWidgetTypeSelect.tsx | 2 +- .../ChartAxisNameSelectionDropdownContent.tsx | 2 +- .../ChartDataSourceDropdownContent.tsx | 20 +- ...ateGranularitySelectionDropdownContent.tsx | 2 +- ...oupByFieldSelectionDropdownContentBase.tsx | 2 +- .../ChartManualSortSubMenuContent.tsx | 2 +- ...rtRatioOptionBooleanSelectableListItem.tsx | 2 +- ...artRatioOptionSelectSelectableListItem.tsx | 2 +- ...ChartSortByGroupByFieldDropdownContent.tsx | 17 +- .../ChartSortBySelectionDropdownContent.tsx | 2 +- .../constants/AggregateSortByOptions.ts | 2 +- .../GraphConfigurationTypeToConfigTypename.ts | 2 +- .../constants/GraphTypeInformation.ts | 2 +- .../page-layout/constants/XSortByOptions.ts | 2 +- .../hooks/useChartSettingsValues.ts | 6 +- .../hooks/useGraphGroupBySortOptionLabels.ts | 2 +- .../hooks/useGraphXSortOptionLabels.ts | 2 +- .../hooks/useUpdateChartSettingToggle.ts | 2 +- .../hooks/useUpdateGraphTypeConfig.ts | 2 +- .../types/BarLineChartConvertibleFields.ts | 2 +- .../pages/page-layout/types/ChartWidget.ts | 2 +- .../types/PieChartConvertibleFields.ts | 2 +- .../types/TypedAggregateChartConfiguration.ts | 2 +- .../types/TypedBarChartConfiguration.ts | 2 +- .../types/TypedGaugeChartConfiguration.ts | 2 +- .../types/TypedLineChartConfiguration.ts | 2 +- .../types/TypedPieChartConfiguration.ts | 2 +- ...buildChartGroupByFieldConfigUpdate.test.ts | 2 +- ...vertBarOrLineChartConfigToPieChart.test.ts | 2 +- ...vertPieChartConfigToBarOrLineChart.test.ts | 2 +- .../filterSortOptionsByFieldType.test.ts | 2 +- .../__tests__/getBarChartSettings.test.ts | 2 +- ...getChartDefaultOrderByForFieldType.test.ts | 2 +- .../__tests__/getChartLimitMessage.test.ts | 2 +- .../getConfigurationTypeFromGraphType.test.ts | 2 +- .../getManualSortOrderFromConfig.test.ts | 2 +- .../__tests__/getSortIconForFieldType.test.ts | 2 +- .../getSortLabelSuffixForFieldType.test.ts | 2 +- .../__tests__/isMinMaxRangeValid.test.ts | 5 +- .../buildChartGroupByFieldConfigUpdate.ts | 2 +- .../convertBarOrLineChartConfigToPieChart.ts | 2 +- .../convertPieChartConfigToBarOrLineChart.ts | 2 +- .../utils/filterSortOptionsByFieldType.ts | 2 +- .../page-layout/utils/getBarChartSettings.ts | 2 +- .../utils/getChartAxisNameDisplayOptions.ts | 2 +- .../getChartDefaultOrderByForFieldType.ts | 2 +- .../page-layout/utils/getChartLimitMessage.ts | 2 +- .../getConfigurationTypeFromGraphType.ts | 2 +- .../utils/getCurrentGraphTypeFromConfig.ts | 2 +- .../utils/getManualSortOrderFromConfig.ts | 2 +- .../utils/getSortIconForFieldType.ts | 2 +- .../utils/getSortLabelSuffixForFieldType.ts | 2 +- .../pages/page-layout/utils/isChartWidget.ts | 2 +- .../isExistingWidgetMissingOrDifferentType.ts | 2 +- .../utils/isWidgetConfigurationOfType.ts | 2 +- .../utils/isWidgetConfigurationOfTypeGraph.ts | 2 +- .../CommandMenuWorkflowSelectAction.tsx | 2 +- ...tDateFormatFromWorkspaceDateFormat.test.ts | 2 +- ...tTimeFormatFromWorkspaceTimeFormat.test.ts | 2 +- .../getDateFormatFromWorkspaceDateFormat.ts | 2 +- .../getDateFormatFromWorkspaceMember.ts | 2 +- .../getNumberFormatFromWorkspaceMember.ts | 2 +- ...etNumberFormatFromWorkspaceNumberFormat.ts | 2 +- .../getTimeFormatFromWorkspaceMember.ts | 2 +- .../getTimeFormatFromWorkspaceTimeFormat.ts | 2 +- .../getWorkspaceDateFormatFromDateFormat.ts | 2 +- ...etWorkspaceNumberFormatFromNumberFormat.ts | 2 +- .../getWorkspaceTimeFormatFromTimeFormat.ts | 2 +- ...berNavigationMenuItemFoldersDispatcher.tsx | 2 +- .../components/NavigationMenuEditModeBar.tsx | 2 +- ...igationMenuItemFolderContentDispatcher.tsx | 2 +- ...WorkspaceNavigationMenuItemsDispatcher.tsx | 2 +- .../components/MainNavigationDrawer.tsx | 2 +- .../MainNavigationDrawerFixedItems.tsx | 2 +- .../__tests__/useDefaultHomePagePath.test.ts | 2 +- .../NavigationDrawerOpenedSection.tsx | 2 +- .../PreComputedChipGeneratorsProvider.tsx | 2 +- .../hooks/__mocks__/useFieldMetadataItem.ts | 2 +- ...mWorkspaceApplicationMock.test.constant.ts | 2 +- ...olumnDefinitionsFromObjectMetadata.test.ts | 2 +- .../fieldMetadataItemSchema.ts | 2 +- .../indexMetadataItemSchema.ts | 2 +- .../hooks/useDeleteManyRecords.ts | 2 +- .../hooks/useDestroyManyRecords.ts | 2 +- .../hooks/useIncrementalDeleteManyRecords.ts | 2 +- .../ObjectOptionsDropdownCustomView.tsx | 2 +- .../ObjectOptionsDropdownLayoutContent.tsx | 2 +- ...ObjectOptionsDropdownVisibilityContent.tsx | 6 +- .../useSetViewTypeFromLayoutOptionsMenu.ts | 2 +- .../components/ObjectSortDropdownButton.tsx | 2 +- .../hooks/useResetSortDropdown.ts | 2 +- ...lectedRecordSortDirectionComponentState.ts | 2 +- .../utils/turnSortsIntoOrderBy.ts | 5 +- .../isFieldMetadataReadOnlyByPermissions.ts | 2 +- .../utils/isObjectMetadataReadOnly.ts | 2 +- .../read-only/utils/isRecordFieldReadOnly.ts | 2 +- .../read-only/utils/isRecordReadOnly.ts | 2 +- .../contexts/RecordBoardContext.ts | 2 +- .../contexts/RecordCalendarContext.ts | 2 +- .../hooks/useFieldListFieldMetadataItems.ts | 2 +- .../RecordDetailRecordsListItemContainer.tsx | 2 +- .../RecordDetailDuplicatesSection.stories.tsx | 2 +- .../RecordDetailRelationSection.stories.tsx | 2 +- .../hooks/useRecordsFieldVisibleGqlFields.ts | 2 +- .../record-field/types/RecordField.ts | 2 +- .../hooks/useRecordGroupActions.ts | 2 +- ...GqlFieldsFromRecordIndexGroupAggregates.ts | 2 +- .../hooks/useHandleRecordGroupField.ts | 2 +- .../hooks/useHandleToggleColumnSort.ts | 2 +- .../useRecordIndexGroupsRecordsLazyGroupBy.ts | 2 +- .../getRecordndexAggregateDisplayLabel.ts | 2 +- .../property-box/components/PropertyBox.tsx | 2 +- .../components/MergePreviewTab.tsx | 2 +- .../components/MergeRecordTab.tsx | 2 +- .../MultipleRecordPickerMenuItemContent.tsx | 2 +- .../useMultipleRecordPickerPerformSearch.ts | 3 +- .../searchRecordStoreComponentFamilyState.ts | 2 +- .../utils/__tests__/sortMorphItems.test.ts | 2 +- .../utils/sortMorphItems.ts | 2 +- .../PageLayoutRecordPageRenderer.tsx | 2 +- .../record-show/components/SummaryCard.tsx | 6 +- .../hooks/usePersonAvatarUpload.ts | 3 +- .../record-sort/types/RecordSort.ts | 2 +- .../contexts/RecordTableContext.ts | 2 +- .../components/RecordTableRow.tsx | 2 +- .../types/ExtendedAggregateOperations.ts | 2 +- ...ildRecordFromImportedStructuredRow.test.ts | 3 +- .../object-record/utils/prefillRecord.ts | 2 +- .../__tests__/useOnboardingStatus.test.ts | 2 +- .../useSetNextOnboardingStatus.test.ts | 5 +- .../onboarding/hooks/useOnboardingStatus.ts | 2 +- .../hooks/useSetNextOnboardingStatus.ts | 2 +- .../components/PageLayoutContent.tsx | 5 +- .../components/PageLayoutLeftPanel.tsx | 2 +- .../PageLayoutRelationWidgetsSyncEffect.tsx | 2 +- .../components/PageLayoutRendererContent.tsx | 3 +- .../components/PageLayoutTabList.tsx | 2 +- ...youtTabListReorderableOverflowDropdown.tsx | 2 +- .../PageLayoutRenderer.stories.tsx | 5 +- .../__stories__/PageLayoutTabList.stories.tsx | 2 +- .../constants/DefaultNoteRecordPageLayout.ts | 2 +- .../DefaultOpportunityRecordPageLayout.ts | 2 +- .../DefaultPersonRecordPageLayout.ts | 2 +- .../constants/DefaultRecordPageLayout.ts | 2 +- .../constants/DefaultTaskRecordPageLayout.ts | 2 +- .../constants/DefaultWorkflowPageLayout.ts | 2 +- .../constants/DefaultWorkflowRunPageLayout.ts | 2 +- .../DefaultWorkflowVersionPageLayout.ts | 2 +- .../page-layout/constants/GraphWidgetSizes.ts | 2 +- .../page-layout/constants/WidgetSizes.ts | 2 +- .../contexts/PageLayoutContentContext.ts | 2 +- .../useCreatePageLayoutGraphWidget.test.tsx | 7 +- .../__tests__/useCreatePageLayoutTab.test.tsx | 2 +- .../usePageLayoutDraftState.test.tsx | 5 +- .../usePageLayoutWithRelationWidgets.test.tsx | 2 +- ...useCreatePageLayoutFrontComponentWidget.ts | 2 +- .../hooks/useCreatePageLayoutGraphWidget.ts | 2 +- .../hooks/useCreatePageLayoutIframeWidget.ts | 2 +- ...reatePageLayoutStandaloneRichTextWidget.ts | 2 +- .../hooks/useEditPageLayoutWidget.ts | 2 +- .../hooks/usePageLayoutWithRelationWidgets.ts | 2 +- .../states/pageLayoutDraftComponentState.ts | 2 +- .../page-layout/types/FieldConfiguration.ts | 2 +- .../modules/page-layout/types/PageLayout.ts | 2 +- .../page-layout/types/PageLayoutTab.ts | 2 +- .../page-layout/types/PageLayoutWidget.ts | 2 +- .../utils/__tests__/addWidgetToTab.test.ts | 8 +- .../convertPageLayoutToTabLayouts.test.ts | 2 +- .../createDefaultGraphWidget.test.ts | 2 +- ...ateDefaultStandaloneRichTextWidget.test.ts | 2 +- .../extractFieldMetadataIdsFromWidget.test.ts | 2 +- .../__tests__/filterVisibleWidgets.test.ts | 2 +- .../__tests__/getTabsByDisplayMode.test.ts | 5 +- .../getTabsWithVisibleWidgets.test.ts | 2 +- .../utils/__tests__/getWidgetSize.test.ts | 2 +- ...areGridLayoutItemsWithPlaceholders.test.ts | 4 +- .../shouldEnableTabEditingFeatures.test.ts | 2 +- ...pdateWidgetMinimumSizeForGraphType.test.ts | 2 +- .../createDefaultFrontComponentWidget.ts | 2 +- .../utils/createDefaultGraphWidget.ts | 7 +- .../utils/createDefaultIframeWidget.ts | 2 +- .../createDefaultStandaloneRichTextWidget.ts | 2 +- .../page-layout/utils/getTabLayoutMode.ts | 5 +- .../page-layout/utils/getTabsByDisplayMode.ts | 2 +- .../page-layout/utils/getWidgetSize.ts | 2 +- .../page-layout/utils/getWidgetTitle.ts | 2 +- .../utils/injectRelationWidgetsIntoLayout.ts | 5 +- .../utils/shouldEnableTabEditingFeatures.ts | 2 +- .../page-layout/utils/transformPageLayout.ts | 2 +- .../updateWidgetMinimumSizeForGraphType.ts | 2 +- .../PageLayoutWidgetNoDataDisplay.tsx | 2 +- .../components/WidgetActionRenderer.tsx | 2 +- .../widgets/components/WidgetPlaceholder.tsx | 2 +- .../widgets/components/WidgetRenderer.tsx | 2 +- .../DashboardWidgetPlaceholder.stories.tsx | 5 +- .../__stories__/WidgetRenderer.stories.tsx | 5 +- .../widgets/field/utils/isFieldWidget.ts | 2 +- .../widgets/graph/components/GraphWidget.tsx | 2 +- .../GraphWidgetBarChart.stories.tsx | 2 +- .../GraphWidgetPieChart.stories.tsx | 2 +- .../buildRatioNumeratorFilter.test.ts | 6 +- .../utils/buildRatioNumeratorFilter.ts | 6 +- .../components/BarChart.tsx | 2 +- .../components/BarChartBaseLayer.tsx | 2 +- .../components/BarChartBaseLayerEffect.tsx | 2 +- .../components/BarChartHoverLayer.tsx | 2 +- .../components/BarChartHoverLayerEffect.tsx | 2 +- .../components/BarChartLayers.tsx | 2 +- .../components/BarChartTotalsLayer.tsx | 2 +- .../components/GraphWidgetBarChart.tsx | 2 +- .../GraphWidgetBarChartRenderer.tsx | 2 +- .../hooks/useBarChartLayout.ts | 2 +- .../hooks/useGraphBarChartWidgetData.ts | 4 +- .../hooks/useMemoizedBarPositions.ts | 2 +- .../types/BarChartSeries.ts | 2 +- .../__tests__/computeBarPositions.test.ts | 2 +- .../__tests__/getBarChartInnerPadding.test.ts | 2 +- .../utils/__tests__/getBarChartLayout.test.ts | 2 +- .../__tests__/getEffectiveGroupMode.test.ts | 2 +- .../computeBarChartCategoryTickValues.ts | 2 +- .../utils/computeBarChartValueTickCount.ts | 2 +- .../utils/computeBarPositionContext.ts | 4 +- .../utils/computeBarPositions.ts | 2 +- .../utils/computeBarPositionsByGroupMode.ts | 2 +- .../utils/getBarChartAxisConfigs.ts | 2 +- .../utils/getBarChartInnerPadding.ts | 2 +- .../utils/getBarChartLayout.ts | 2 +- .../utils/getBarChartTickConfig.ts | 2 +- .../utils/getEffectiveGroupMode.ts | 2 +- .../GraphWidgetLineChartRenderer.tsx | 5 +- .../hooks/__tests__/useLineChartData.test.ts | 2 +- .../hooks/useGraphLineChartWidgetData.ts | 2 +- ...ulateValueRangeFromLineChartSeries.test.ts | 2 +- .../components/GraphWidgetPieChart.tsx | 2 +- .../components/PieChartCenterMetricLayer.tsx | 2 +- .../hooks/__tests__/usePieChartData.test.ts | 2 +- .../hooks/useGraphPieChartWidgetData.ts | 2 +- .../hooks/usePieChartCenterMetricData.ts | 2 +- .../types/PieChartDataItem.ts | 2 +- .../hooks/useGraphWidgetAggregateQuery.ts | 2 +- .../graph/hooks/useGraphWidgetQueryCommon.ts | 2 +- .../BuildChartDrilldownQueryParamsInput.ts | 2 +- ...rtConfigurationFieldsValidForQuery.test.ts | 4 +- .../buildSortsForChartFieldOrderBy.test.ts | 2 +- .../buildSortsForChartValueOrderBy.test.ts | 2 +- .../buildSortsFromChartConfig.test.ts | 2 +- ...reChartConfigurationFieldsValidForQuery.ts | 6 +- .../graph/utils/assertAggregateChartWidget.ts | 2 +- .../graph/utils/assertBarChartWidget.ts | 2 +- .../graph/utils/assertLineChartWidget.ts | 2 +- .../graph/utils/assertPieChartWidget.ts | 2 +- .../utils/buildSortsForChartFieldOrderBy.ts | 2 +- .../utils/buildSortsForChartValueOrderBy.ts | 2 +- .../graph/utils/buildSortsFromChartConfig.ts | 2 +- .../utils/extractBarChartDataConfiguration.ts | 2 +- .../extractLineChartDataConfiguration.ts | 2 +- .../utils/extractPieChartDataConfiguration.ts | 2 +- .../StandaloneRichTextEditorContent.tsx | 2 +- .../components/StandaloneRichTextWidget.tsx | 2 +- .../widgets/utils/getWidgetCardVariant.ts | 5 +- .../PrefetchRunFavoriteQueriesEffect.tsx | 2 +- ...etchRunNavigationMenuItemQueriesEffect.tsx | 2 +- ...SettingsAccountsCalendarChannelDetails.tsx | 2 +- .../SettingsAccountsMessageChannelDetails.tsx | 2 +- .../useTriggerProviderReconnect.test.tsx | 8 +- .../accounts/hooks/useTriggerApiOAuth.ts | 10 +- .../ConfigVariableActionButtons.tsx | 5 +- .../ConfigVariableDatabaseInput.tsx | 2 +- .../components/ConfigVariableHelpText.tsx | 5 +- .../components/ConfigVariableValueInput.tsx | 2 +- .../SettingsAdminConfigVariablesRow.tsx | 2 +- .../SettingsAdminConfigVariablesTable.tsx | 2 +- .../utils/useSourceContent.ts | 2 +- ...tingsAdminIndicatorHealthStatusContent.tsx | 2 +- .../WorkerQueueMetricsSelectOptions.ts | 2 +- .../SettingsAdminIndicatorHealthContext.tsx | 4 +- .../admin-panel/hooks/useFeatureFlagState.ts | 2 +- .../hooks/useImpersonationRedirect.ts | 2 +- .../settings/admin-panel/types/FeatureFlag.ts | 2 +- .../SettingsProtectedRouteWrapper.tsx | 2 +- ...SettingsDataModelFieldRelationFormCard.tsx | 7 +- .../CheckPublicDomainValidRecordsEffect.tsx | 2 +- .../SettingPublicDomainRowDropdownMenu.tsx | 16 +- .../components/SettingsDomainRecords.tsx | 2 +- .../SettingsPublicDomainsListCard.tsx | 6 +- .../states/customDomainRecordsState.ts | 2 +- .../states/publicDomainRecordsState.ts | 2 +- .../states/selectedPublicDomainState.ts | 2 +- .../components/FormatPreferencesSettings.tsx | 2 +- .../useSettingsNavigationItems.test.tsx | 2 +- .../hooks/useSettingsNavigationItems.tsx | 5 +- .../lab/components/SettingsLabContent.tsx | 2 +- ...FunctionTabEnvironmentVariableTableRow.tsx | 2 +- .../tabs/SettingsLogicFunctionTriggersTab.tsx | 2 +- .../hooks/useLogicFunctionUpdateFormState.ts | 6 +- .../roles/hooks/useHasPermissionFlag.ts | 2 +- .../roles/hooks/usePermissionFlagMap.ts | 2 +- .../roles/hooks/useUpdateApiKeyRole.ts | 6 +- .../components/RoleAssignmentSection.tsx | 3 +- .../components/SettingsRoleAssignment.tsx | 3 +- ...ingsRoleAssignmentEntityPickerDropdown.tsx | 2 +- .../SettingsRoleAssignmentTable.tsx | 3 +- .../SettingsRoleAssignmentTableRow.tsx | 3 +- ...ntWorkspaceMemberPickerDropdownContent.tsx | 2 +- .../constants/RoleTargetConfig.ts | 3 +- ...jectLevelObjectFieldPermissionTableRow.tsx | 5 +- .../useUpsertFieldPermissionInDraftRole.ts | 2 +- .../getRoleWithUpsertedFieldPermission.ts | 2 +- .../getRoleWithUpsertedObjectPermission.ts | 2 +- .../hooks/useUpsertObjectPermission.ts | 2 +- .../useUpsertObjectPermissionInDraftRole.ts | 2 +- ...jectLevelObjectFormObjectLevelTableRow.tsx | 3 +- ...SettingsRolePermissionsObjectPermission.ts | 2 +- .../components/SettingsRoleApplicability.tsx | 2 +- .../roles/role/hooks/useSaveDraftRoleToDB.ts | 2 +- .../utils/newFieldPermissionsFilter.util.ts | 2 +- .../SettingsSSOIdentitiesProvidersForm.tsx | 2 +- .../SettingsSecuritySSORowDropdownMenu.tsx | 2 +- .../useCreateSSOIdentityProvider.test.tsx | 1 + .../useDeleteSSOIdentityProvider.test.tsx | 1 + .../useEditSSOIdentityProvider.test.tsx | 2 +- .../states/ApprovedAccessDomainsState.ts | 2 +- .../security/types/SSOIdentityProvider.ts | 2 +- .../getColorBySSOIdentityProviderStatus.ts | 2 +- .../utils/sSOIdentityProviderDefaultValues.ts | 2 +- .../utils/spreadsheetImportHasNestedFields.ts | 2 +- .../components/ListenRecordUpdatesEffect.tsx | 2 +- .../components/SSEEventStreamEffect.tsx | 2 +- .../sse-db-event/components/SSEProvider.tsx | 2 +- ...bjectRecordEventsFromSseToBrowserEvents.ts | 2 +- .../hooks/useTriggerEventStreamCreation.ts | 2 +- ...ggerOptimisticEffectFromSseCreateEvents.ts | 2 +- ...ggerOptimisticEffectFromSseDeleteEvents.ts | 2 +- ...useTriggerOptimisticEffectFromSseEvents.ts | 2 +- ...gerOptimisticEffectFromSseRestoreEvents.ts | 2 +- ...ggerOptimisticEffectFromSseUpdateEvents.ts | 2 +- .../types/ObjectRecordEventsByQueryId.ts | 2 +- .../dispatchObjectRecordEventsWithQueryIds.ts | 2 +- .../getObjectRecordOperationUpdateInputs.ts | 2 +- .../groupObjectRecordSseEventsByEventType.ts | 2 +- ...eEventsByObjectMetadataItemNameSingular.ts | 2 +- ...ventToObjectRecordOperationBrowserEvent.ts | 2 +- .../internal/date/hooks/useUserDateFormat.ts | 2 +- .../internal/date/hooks/useUserTimeFormat.ts | 2 +- .../contexts/LayoutRenderingContext.tsx | 2 +- .../components/AvailableWorkspaceItem.tsx | 2 +- .../hooks/useFilteredAvailableWorkspaces.ts | 2 +- .../components/EditableSortChip.tsx | 2 +- ...GroupsToCurrentRecordFilterGroups.test.tsx | 2 +- ...ViewFiltersToCurrentRecordFilters.test.tsx | 2 +- ...rentViewSortsToCurrentRecordSorts.test.tsx | 2 +- ...pplyViewSortsToCurrentRecordSorts.test.tsx | 2 +- .../usePerformViewFilterGroupAPIPersist.ts | 2 +- .../internal/usePerformViewSortAPIPersist.ts | 2 +- .../hooks/internal/useSortsFromQueryParams.ts | 2 +- .../views/hooks/useCanPersistViewChanges.ts | 6 +- .../views/hooks/useMapViewFiltersToFilters.ts | 2 +- .../views/hooks/useUpdateViewAggregate.ts | 2 +- .../hooks/useViewsSideEffectsOnViewGroups.ts | 2 +- .../useTriggerViewFieldOptimisticEffect.ts | 2 +- .../useTriggerViewFilterOptimisticEffect.ts | 2 +- .../useTriggerViewGroupOptimisticEffect.ts | 2 +- .../useTriggerViewSortOptimisticEffect.ts | 2 +- .../views/schemas/sortUrlQueryParamsSchema.ts | 2 +- .../views/types/CoreViewSortEssential.ts | 2 +- .../src/modules/views/types/GraphQLView.ts | 7 +- .../src/modules/views/types/View.ts | 6 +- .../utils/__tests__/areViewSortsEqual.test.ts | 5 +- .../__tests__/getViewSortsToCreate.test.ts | 2 +- .../__tests__/getViewSortsToDelete.test.ts | 2 +- .../__tests__/getViewSortsToUpdate.test.ts | 2 +- .../modules/views/utils/areViewSortsEqual.ts | 2 +- .../utils/convertCoreViewFieldToViewField.ts | 2 +- ...ertCoreViewFilterGroupToViewFilterGroup.ts | 2 +- .../convertCoreViewFilterToViewFilter.ts | 4 +- .../utils/convertCoreViewGroupToViewGroup.ts | 2 +- ...tCoreViewOpenRecordInToViewOpenRecordIn.ts | 2 +- .../utils/convertCoreViewTypeToViewType.ts | 2 +- .../views/utils/getViewSortsToCreate.ts | 2 +- .../views/utils/mapRecordSortToViewSort.ts | 2 +- .../views/utils/mapViewFiltersToFilters.ts | 4 +- .../components/ViewPickerContentEffect.tsx | 6 +- .../components/ViewPickerOptionDropdown.tsx | 7 +- .../components/WorkflowCard.tsx | 2 +- .../components/WorkflowRunCard.tsx | 2 +- .../WorkflowAiAgentPermissionList.tsx | 2 +- .../components/WorkflowFindRecordsSorts.tsx | 2 +- .../generateRecordEventOutputSchema.test.ts | 2 +- .../utils/generate/computeStepOutputSchema.ts | 2 +- .../generateRecordEventOutputSchema.ts | 2 +- .../useCreateWorkspaceInvitation.test.tsx | 1 + .../useDeleteWorkspaceInvitation.test.tsx | 1 + .../useResendWorkspaceInvitation.test.tsx | 1 + .../workspace-member/types/WorkspaceMember.ts | 2 +- .../components/WorkspaceProviderEffect.tsx | 2 +- .../__tests__/useSubscriptionStatus.test.ts | 2 +- .../workspace/hooks/useFeatureFlagsMap.ts | 2 +- .../workspace/hooks/useIsFeatureEnabled.ts | 2 +- .../workspace/hooks/useSubscriptionStatus.ts | 2 +- .../workspaceAuthBypassProvidersState.ts | 2 +- .../states/workspaceAuthProvidersState.ts | 2 +- .../extractFeatureFlagMapFromWorkspace.ts | 2 +- .../twenty-front/src/pages/auth/SignInUp.tsx | 2 +- .../src/pages/onboarding/SyncEmails.tsx | 4 +- .../__stories__/ChooseYourPlan.stories.tsx | 2 +- .../__stories__/CreateProfile.stories.tsx | 2 +- .../__stories__/CreateWorkspace.stories.tsx | 2 +- .../__stories__/InviteTeam.stories.tsx | 2 +- .../__stories__/PaymentSuccess.stories.tsx | 2 +- .../__stories__/SyncEmails.stories.tsx | 2 +- .../internal/ChooseYourPlanContent.tsx | 3 +- .../components/SettingsAgentSettingsTab.tsx | 2 +- .../applications/SettingsApplications.tsx | 6 +- .../SettingsAvailableApplicationDetails.tsx | 2 +- .../SettingsApplicationVersionContainer.tsx | 2 +- .../SettingsApplicationDetailAboutTab.tsx | 6 +- .../SettingsApplicationDetailContentTab.tsx | 2 +- ...icationDetailEnvironmentVariablesTable.tsx | 2 +- .../SettingsApplicationDetailSettingsTab.tsx | 2 +- .../types/applicationWithoutRelation.ts | 2 +- .../data-model/SettingsObjectDetailPage.tsx | 2 +- .../settings/domains/SettingsDomains.tsx | 2 +- .../utils/getEmailingDomainStatusColor.ts | 2 +- .../utils/getEmailingDomainStatusText.ts | 2 +- .../members/SettingsWorkspaceMember.tsx | 2 +- .../src/testing/mock-data/config.ts | 2 +- .../src/testing/mock-data/roles.ts | 2 +- .../src/testing/mock-data/roles/roles-mock.ts | 2 +- .../src/testing/mock-data/users.ts | 2 +- .../mock-data/widget-configurations.ts | 2 +- .../testing/mock-data/workspace-members.ts | 2 +- .../utils/__tests__/getWorkspaceUrl.test.ts | 2 +- .../dates/formatZonedDateTimeDatePart.ts | 2 +- .../dates/formatZonedDateTimeTimePart.ts | 2 +- .../twenty-front/src/utils/getWorkspaceUrl.ts | 2 +- packages/twenty-front/src/utils/sort.ts | 2 +- .../patches/@nestjs+graphql+12.1.1.patch | 272 +- .../api/graphql/metadata.module-factory.ts | 4 + .../graphql/suites/user.integration-spec.ts | 1 - yarn.lock | 4 +- 517 files changed, 999 insertions(+), 3440 deletions(-) diff --git a/packages/twenty-front/src/generated-metadata/graphql.ts b/packages/twenty-front/src/generated-metadata/graphql.ts index 9812289586..4639498df1 100644 --- a/packages/twenty-front/src/generated-metadata/graphql.ts +++ b/packages/twenty-front/src/generated-metadata/graphql.ts @@ -271,14 +271,6 @@ export type AppToken = { updatedAt: Scalars['DateTime']; }; -export type AppTokenEdge = { - __typename?: 'AppTokenEdge'; - /** Cursor for this node. */ - cursor: Scalars['ConnectionCursor']; - /** The node containing the AppToken */ - node: AppToken; -}; - export type Application = { __typename?: 'Application'; agents: Array; @@ -649,11 +641,6 @@ export type BooleanFieldComparison = { isNot?: InputMaybe; }; -export enum CalendarChannelVisibility { - METADATA = 'METADATA', - SHARE_EVERYTHING = 'SHARE_EVERYTHING' -} - export type CalendarConfiguration = { __typename?: 'CalendarConfiguration'; configurationType: WidgetConfigurationType; @@ -693,6 +680,38 @@ export type ClientAiModelConfig = { provider: ModelProvider; }; +export type ClientConfig = { + __typename?: 'ClientConfig'; + aiModels: Array; + allowRequestsToTwentyIcons: Scalars['Boolean']; + analyticsEnabled: Scalars['Boolean']; + api: ApiConfig; + appVersion?: Maybe; + authProviders: AuthProviders; + billing: Billing; + calendarBookingPageId?: Maybe; + canManageFeatureFlags: Scalars['Boolean']; + captcha: Captcha; + chromeExtensionId?: Maybe; + defaultSubdomain?: Maybe; + frontDomain: Scalars['String']; + isAttachmentPreviewEnabled: Scalars['Boolean']; + isClickHouseConfigured: Scalars['Boolean']; + isCloudflareIntegrationEnabled: Scalars['Boolean']; + isConfigVariablesInDbEnabled: Scalars['Boolean']; + isEmailVerificationRequired: Scalars['Boolean']; + isGoogleCalendarEnabled: Scalars['Boolean']; + isGoogleMessagingEnabled: Scalars['Boolean']; + isImapSmtpCaldavEnabled: Scalars['Boolean']; + isMicrosoftCalendarEnabled: Scalars['Boolean']; + isMicrosoftMessagingEnabled: Scalars['Boolean']; + isMultiWorkspaceEnabled: Scalars['Boolean']; + publicFeatureFlags: Array; + sentry: Sentry; + signInPrefilled: Scalars['Boolean']; + support: Support; +}; + export type CommandMenuItem = { __typename?: 'CommandMenuItem'; applicationId?: Maybe; @@ -1927,19 +1946,6 @@ export type LineChartSeries = { label: Scalars['String']; }; -export type LinkMetadata = { - __typename?: 'LinkMetadata'; - label: Scalars['String']; - url: Scalars['String']; -}; - -export type LinksMetadata = { - __typename?: 'LinksMetadata'; - primaryLinkLabel: Scalars['String']; - primaryLinkUrl: Scalars['String']; - secondaryLinks?: Maybe>; -}; - export type Location = { __typename?: 'Location'; lat?: Maybe; @@ -2029,12 +2035,6 @@ export type MarketplaceApp = { websiteUrl?: Maybe; }; -export enum MessageChannelVisibility { - METADATA = 'METADATA', - SHARE_EVERYTHING = 'SHARE_EVERYTHING', - SUBJECT = 'SUBJECT' -} - export enum ModelProvider { ANTHROPIC = 'ANTHROPIC', GROQ = 'GROQ', @@ -4141,29 +4141,6 @@ export enum SsoIdentityProviderStatus { Inactive = 'Inactive' } -export type SearchRecord = { - __typename?: 'SearchRecord'; - imageUrl?: Maybe; - label: Scalars['String']; - objectLabelSingular: Scalars['String']; - objectNameSingular: Scalars['String']; - recordId: Scalars['UUID']; - tsRank: Scalars['Float']; - tsRankCD: Scalars['Float']; -}; - -export type SearchResultEdge = { - __typename?: 'SearchResultEdge'; - cursor: Scalars['String']; - node: SearchRecord; -}; - -export type SearchResultPageInfo = { - __typename?: 'SearchResultPageInfo'; - endCursor?: Maybe; - hasNextPage: Scalars['Boolean']; -}; - export type SendInvitationsOutput = { __typename?: 'SendInvitationsOutput'; errors: Array; @@ -4311,63 +4288,11 @@ export type TasksConfiguration = { configurationType: WidgetConfigurationType; }; -export type TimelineCalendarEvent = { - __typename?: 'TimelineCalendarEvent'; - conferenceLink: LinksMetadata; - conferenceSolution: Scalars['String']; - description: Scalars['String']; - endsAt: Scalars['DateTime']; - id: Scalars['UUID']; - isCanceled: Scalars['Boolean']; - isFullDay: Scalars['Boolean']; - location: Scalars['String']; - participants: Array; - startsAt: Scalars['DateTime']; - title: Scalars['String']; - visibility: CalendarChannelVisibility; -}; - -export type TimelineCalendarEventParticipant = { - __typename?: 'TimelineCalendarEventParticipant'; - avatarUrl: Scalars['String']; - displayName: Scalars['String']; - firstName: Scalars['String']; - handle: Scalars['String']; - lastName: Scalars['String']; - personId?: Maybe; - workspaceMemberId?: Maybe; -}; - export type TimelineConfiguration = { __typename?: 'TimelineConfiguration'; configurationType: WidgetConfigurationType; }; -export type TimelineThread = { - __typename?: 'TimelineThread'; - firstParticipant: TimelineThreadParticipant; - id: Scalars['UUID']; - lastMessageBody: Scalars['String']; - lastMessageReceivedAt: Scalars['DateTime']; - lastTwoParticipants: Array; - numberOfMessagesInThread: Scalars['Float']; - participantCount: Scalars['Float']; - read: Scalars['Boolean']; - subject: Scalars['String']; - visibility: MessageChannelVisibility; -}; - -export type TimelineThreadParticipant = { - __typename?: 'TimelineThreadParticipant'; - avatarUrl: Scalars['String']; - displayName: Scalars['String']; - firstName: Scalars['String']; - handle: Scalars['String']; - lastName: Scalars['String']; - personId?: Maybe; - workspaceMemberId?: Maybe; -}; - export type ToolIndexEntry = { __typename?: 'ToolIndexEntry'; category: Scalars['String']; @@ -4782,14 +4707,6 @@ export type User = { workspaces: Array; }; -export type UserEdge = { - __typename?: 'UserEdge'; - /** Cursor for this node. */ - cursor: Scalars['ConnectionCursor']; - /** The node containing the User */ - node: User; -}; - export type UserInfo = { __typename?: 'UserInfo'; email: Scalars['String']; @@ -4998,12 +4915,6 @@ export type WorkflowRunConfiguration = { configurationType: WidgetConfigurationType; }; -export type WorkflowStepPosition = { - __typename?: 'WorkflowStepPosition'; - x: Scalars['Float']; - y: Scalars['Float']; -}; - export type WorkflowVersionConfiguration = { __typename?: 'WorkflowVersionConfiguration'; configurationType: WidgetConfigurationType; @@ -5068,14 +4979,6 @@ export enum WorkspaceActivationStatus { SUSPENDED = 'SUSPENDED' } -export type WorkspaceEdge = { - __typename?: 'WorkspaceEdge'; - /** Cursor for this node. */ - cursor: Scalars['ConnectionCursor']; - /** The node containing the Workspace */ - node: Workspace; -}; - export type WorkspaceInfo = { __typename?: 'WorkspaceInfo'; allowImpersonation: Scalars['Boolean']; diff --git a/packages/twenty-front/src/generated/graphql.ts b/packages/twenty-front/src/generated/graphql.ts index 8003f733f5..ef0594f26c 100644 --- a/packages/twenty-front/src/generated/graphql.ts +++ b/packages/twenty-front/src/generated/graphql.ts @@ -13,656 +13,16 @@ export type Scalars = { Boolean: boolean; Int: number; Float: number; - ConnectionCursor: any; DateTime: string; JSON: any; - JSONObject: any; UUID: any; }; -export type AiSystemPromptPreview = { - __typename?: 'AISystemPromptPreview'; - estimatedTokenCount: Scalars['Int']; - sections: Array; -}; - -export type AiSystemPromptSection = { - __typename?: 'AISystemPromptSection'; - content: Scalars['String']; - estimatedTokenCount: Scalars['Int']; - title: Scalars['String']; -}; - -export type AdminPanelHealthServiceData = { - __typename?: 'AdminPanelHealthServiceData'; - description: Scalars['String']; - details?: Maybe; - errorMessage?: Maybe; - id: HealthIndicatorId; - label: Scalars['String']; - queues?: Maybe>; - status: AdminPanelHealthServiceStatus; -}; - -export enum AdminPanelHealthServiceStatus { - OPERATIONAL = 'OPERATIONAL', - OUTAGE = 'OUTAGE' -} - -export type AdminPanelWorkerQueueHealth = { - __typename?: 'AdminPanelWorkerQueueHealth'; - id: Scalars['String']; - queueName: Scalars['String']; - status: AdminPanelHealthServiceStatus; -}; - -export type Agent = { - __typename?: 'Agent'; - applicationId?: Maybe; - createdAt: Scalars['DateTime']; - description?: Maybe; - evaluationInputs: Array; - icon?: Maybe; - id: Scalars['UUID']; - isCustom: Scalars['Boolean']; - label: Scalars['String']; - modelConfiguration?: Maybe; - modelId: Scalars['String']; - name: Scalars['String']; - prompt: Scalars['String']; - responseFormat?: Maybe; - roleId?: Maybe; - updatedAt: Scalars['DateTime']; -}; - -export type AgentChatThread = { - __typename?: 'AgentChatThread'; - contextWindowTokens?: Maybe; - conversationSize: Scalars['Int']; - createdAt: Scalars['DateTime']; - id: Scalars['UUID']; - title?: Maybe; - totalInputCredits: Scalars['Float']; - totalInputTokens: Scalars['Int']; - totalOutputCredits: Scalars['Float']; - totalOutputTokens: Scalars['Int']; - updatedAt: Scalars['DateTime']; -}; - -export type AgentMessage = { - __typename?: 'AgentMessage'; - agentId?: Maybe; - createdAt: Scalars['DateTime']; - id: Scalars['UUID']; - parts: Array; - role: Scalars['String']; - threadId: Scalars['UUID']; - turnId: Scalars['UUID']; -}; - -export type AgentMessagePart = { - __typename?: 'AgentMessagePart'; - createdAt: Scalars['DateTime']; - errorDetails?: Maybe; - errorMessage?: Maybe; - fileFilename?: Maybe; - fileMediaType?: Maybe; - fileUrl?: Maybe; - id: Scalars['UUID']; - messageId: Scalars['UUID']; - orderIndex: Scalars['Int']; - providerMetadata?: Maybe; - reasoningContent?: Maybe; - sourceDocumentFilename?: Maybe; - sourceDocumentMediaType?: Maybe; - sourceDocumentSourceId?: Maybe; - sourceDocumentTitle?: Maybe; - sourceUrlSourceId?: Maybe; - sourceUrlTitle?: Maybe; - sourceUrlUrl?: Maybe; - state?: Maybe; - textContent?: Maybe; - toolCallId?: Maybe; - toolInput?: Maybe; - toolName?: Maybe; - toolOutput?: Maybe; - type: Scalars['String']; -}; - -export type AgentTurn = { - __typename?: 'AgentTurn'; - agentId?: Maybe; - createdAt: Scalars['DateTime']; - evaluations: Array; - id: Scalars['UUID']; - messages: Array; - threadId: Scalars['UUID']; -}; - -export type AgentTurnEvaluation = { - __typename?: 'AgentTurnEvaluation'; - comment?: Maybe; - createdAt: Scalars['DateTime']; - id: Scalars['UUID']; - score: Scalars['Int']; - turnId: Scalars['UUID']; -}; - -export type AggregateChartConfiguration = { - __typename?: 'AggregateChartConfiguration'; - aggregateFieldMetadataId: Scalars['UUID']; - aggregateOperation: AggregateOperations; - configurationType: WidgetConfigurationType; - description?: Maybe; - displayDataLabel?: Maybe; - filter?: Maybe; - firstDayOfTheWeek?: Maybe; - format?: Maybe; - label?: Maybe; - prefix?: Maybe; - ratioAggregateConfig?: Maybe; - suffix?: Maybe; - timezone?: Maybe; -}; - -export enum AggregateOperations { - AVG = 'AVG', - COUNT = 'COUNT', - COUNT_EMPTY = 'COUNT_EMPTY', - COUNT_FALSE = 'COUNT_FALSE', - COUNT_NOT_EMPTY = 'COUNT_NOT_EMPTY', - COUNT_TRUE = 'COUNT_TRUE', - COUNT_UNIQUE_VALUES = 'COUNT_UNIQUE_VALUES', - MAX = 'MAX', - MIN = 'MIN', - PERCENTAGE_EMPTY = 'PERCENTAGE_EMPTY', - PERCENTAGE_NOT_EMPTY = 'PERCENTAGE_NOT_EMPTY', - SUM = 'SUM' -} - -export type Analytics = { - __typename?: 'Analytics'; - /** Boolean that confirms query was dispatched */ - success: Scalars['Boolean']; -}; - -export type ApiConfig = { - __typename?: 'ApiConfig'; - mutationMaximumAffectedRecords: Scalars['Float']; -}; - -export type ApiKey = { - __typename?: 'ApiKey'; - createdAt: Scalars['DateTime']; - expiresAt: Scalars['DateTime']; - id: Scalars['UUID']; - name: Scalars['String']; - revokedAt?: Maybe; - role: Role; - updatedAt: Scalars['DateTime']; -}; - -export type ApiKeyForRole = { - __typename?: 'ApiKeyForRole'; - expiresAt: Scalars['DateTime']; - id: Scalars['UUID']; - name: Scalars['String']; - revokedAt?: Maybe; -}; - -export type ApiKeyToken = { - __typename?: 'ApiKeyToken'; - token: Scalars['String']; -}; - -export type AppToken = { - __typename?: 'AppToken'; - createdAt: Scalars['DateTime']; - expiresAt: Scalars['DateTime']; - id: Scalars['UUID']; - type: Scalars['String']; - updatedAt: Scalars['DateTime']; -}; - -export type AppTokenEdge = { - __typename?: 'AppTokenEdge'; - /** Cursor for this node. */ - cursor: Scalars['ConnectionCursor']; - /** The node containing the AppToken */ - node: AppToken; -}; - -export type Application = { - __typename?: 'Application'; - agents: Array; - applicationVariables: Array; - availablePackages: Scalars['JSON']; - canBeUninstalled: Scalars['Boolean']; - defaultLogicFunctionRole?: Maybe; - defaultRoleId?: Maybe; - description: Scalars['String']; - id: Scalars['UUID']; - logicFunctions: Array; - name: Scalars['String']; - objects: Array; - packageJsonChecksum?: Maybe; - packageJsonFileId?: Maybe; - universalIdentifier: Scalars['String']; - version: Scalars['String']; - yarnLockChecksum?: Maybe; - yarnLockFileId?: Maybe; -}; - -export type ApplicationVariable = { - __typename?: 'ApplicationVariable'; - description: Scalars['String']; - id: Scalars['UUID']; - isSecret: Scalars['Boolean']; - key: Scalars['String']; - value: Scalars['String']; -}; - -export type ApprovedAccessDomain = { - __typename?: 'ApprovedAccessDomain'; - createdAt: Scalars['DateTime']; - domain: Scalars['String']; - id: Scalars['UUID']; - isValidated: Scalars['Boolean']; -}; - -export type AuthBypassProviders = { - __typename?: 'AuthBypassProviders'; - google: Scalars['Boolean']; - microsoft: Scalars['Boolean']; - password: Scalars['Boolean']; -}; - -export type AuthProviders = { - __typename?: 'AuthProviders'; - google: Scalars['Boolean']; - magicLink: Scalars['Boolean']; - microsoft: Scalars['Boolean']; - password: Scalars['Boolean']; - sso: Array; -}; - -export type AuthToken = { - __typename?: 'AuthToken'; - expiresAt: Scalars['DateTime']; - token: Scalars['String']; -}; - -export type AuthTokenPair = { - __typename?: 'AuthTokenPair'; - accessOrWorkspaceAgnosticToken: AuthToken; - refreshToken: AuthToken; -}; - -export type AuthTokens = { - __typename?: 'AuthTokens'; - tokens: AuthTokenPair; -}; - -export type AuthorizeAppOutput = { - __typename?: 'AuthorizeAppOutput'; - redirectUrl: Scalars['String']; -}; - -export type AutocompleteResult = { - __typename?: 'AutocompleteResult'; - placeId: Scalars['String']; - text: Scalars['String']; -}; - -export type AvailableWorkspace = { - __typename?: 'AvailableWorkspace'; - displayName?: Maybe; - id: Scalars['UUID']; - inviteHash?: Maybe; - loginToken?: Maybe; - logo?: Maybe; - personalInviteToken?: Maybe; - sso: Array; - workspaceUrls: WorkspaceUrls; -}; - -export type AvailableWorkspaces = { - __typename?: 'AvailableWorkspaces'; - availableWorkspacesForSignIn: Array; - availableWorkspacesForSignUp: Array; -}; - -export type AvailableWorkspacesAndAccessTokensOutput = { - __typename?: 'AvailableWorkspacesAndAccessTokensOutput'; - availableWorkspaces: AvailableWorkspaces; - tokens: AuthTokenPair; -}; - -/** Which axes should display labels */ -export enum AxisNameDisplay { - BOTH = 'BOTH', - NONE = 'NONE', - X = 'X', - Y = 'Y' -} - -export type BarChartConfiguration = { - __typename?: 'BarChartConfiguration'; - aggregateFieldMetadataId: Scalars['UUID']; - aggregateOperation: AggregateOperations; - axisNameDisplay?: Maybe; - color?: Maybe; - configurationType: WidgetConfigurationType; - description?: Maybe; - displayDataLabel?: Maybe; - displayLegend?: Maybe; - filter?: Maybe; - firstDayOfTheWeek?: Maybe; - groupMode?: Maybe; - isCumulative?: Maybe; - layout: BarChartLayout; - omitNullValues?: Maybe; - primaryAxisDateGranularity?: Maybe; - primaryAxisGroupByFieldMetadataId: Scalars['UUID']; - primaryAxisGroupBySubFieldName?: Maybe; - primaryAxisManualSortOrder?: Maybe>; - primaryAxisOrderBy?: Maybe; - rangeMax?: Maybe; - rangeMin?: Maybe; - secondaryAxisGroupByDateGranularity?: Maybe; - secondaryAxisGroupByFieldMetadataId?: Maybe; - secondaryAxisGroupBySubFieldName?: Maybe; - secondaryAxisManualSortOrder?: Maybe>; - secondaryAxisOrderBy?: Maybe; - timezone?: Maybe; -}; - -export type BarChartDataOutput = { - __typename?: 'BarChartDataOutput'; - data: Array; - formattedToRawLookup: Scalars['JSON']; - groupMode: BarChartGroupMode; - hasTooManyGroups: Scalars['Boolean']; - indexBy: Scalars['String']; - keys: Array; - layout: BarChartLayout; - series: Array; - showDataLabels: Scalars['Boolean']; - showLegend: Scalars['Boolean']; - xAxisLabel: Scalars['String']; - yAxisLabel: Scalars['String']; -}; - -/** Display mode for bar charts with secondary grouping */ -export enum BarChartGroupMode { - GROUPED = 'GROUPED', - STACKED = 'STACKED' -} - -/** Layout orientation for bar charts */ -export enum BarChartLayout { - HORIZONTAL = 'HORIZONTAL', - VERTICAL = 'VERTICAL' -} - -export type BarChartSeries = { - __typename?: 'BarChartSeries'; - key: Scalars['String']; - label: Scalars['String']; -}; - -export type Billing = { - __typename?: 'Billing'; - billingUrl?: Maybe; - isBillingEnabled: Scalars['Boolean']; - trialPeriods: Array; -}; - -export type BillingEndTrialPeriodOutput = { - __typename?: 'BillingEndTrialPeriodOutput'; - /** Billing portal URL for payment method update (returned when no payment method exists) */ - billingPortalUrl?: Maybe; - /** Boolean that confirms if a payment method was found */ - hasPaymentMethod: Scalars['Boolean']; - /** Updated subscription status */ - status?: Maybe; -}; - -export type BillingEntitlement = { - __typename?: 'BillingEntitlement'; - key: BillingEntitlementKey; - value: Scalars['Boolean']; -}; - -export enum BillingEntitlementKey { - AUDIT_LOGS = 'AUDIT_LOGS', - CUSTOM_DOMAIN = 'CUSTOM_DOMAIN', - RLS = 'RLS', - SSO = 'SSO' -} - -export type BillingLicensedProduct = BillingProductDto & { - __typename?: 'BillingLicensedProduct'; - description: Scalars['String']; - images?: Maybe>; - metadata: BillingProductMetadata; - name: Scalars['String']; - prices?: Maybe>; -}; - -export type BillingMeteredProduct = BillingProductDto & { - __typename?: 'BillingMeteredProduct'; - description: Scalars['String']; - images?: Maybe>; - metadata: BillingProductMetadata; - name: Scalars['String']; - prices?: Maybe>; -}; - -export type BillingMeteredProductUsageOutput = { - __typename?: 'BillingMeteredProductUsageOutput'; - grantedCredits: Scalars['Float']; - periodEnd: Scalars['DateTime']; - periodStart: Scalars['DateTime']; - productKey: BillingProductKey; - rolloverCredits: Scalars['Float']; - totalGrantedCredits: Scalars['Float']; - unitPriceCents: Scalars['Float']; - usedCredits: Scalars['Float']; -}; - -/** The different billing plans available */ -export enum BillingPlanKey { - ENTERPRISE = 'ENTERPRISE', - PRO = 'PRO' -} - -export type BillingPlanOutput = { - __typename?: 'BillingPlanOutput'; - licensedProducts: Array; - meteredProducts: Array; - planKey: BillingPlanKey; -}; - -export type BillingPriceLicensed = { - __typename?: 'BillingPriceLicensed'; - priceUsageType: BillingUsageType; - recurringInterval: SubscriptionInterval; - stripePriceId: Scalars['String']; - unitAmount: Scalars['Float']; -}; - -export type BillingPriceMetered = { - __typename?: 'BillingPriceMetered'; - priceUsageType: BillingUsageType; - recurringInterval: SubscriptionInterval; - stripePriceId: Scalars['String']; - tiers: Array; -}; - -export type BillingPriceTier = { - __typename?: 'BillingPriceTier'; - flatAmount?: Maybe; - unitAmount?: Maybe; - upTo?: Maybe; -}; - -export type BillingProduct = { - __typename?: 'BillingProduct'; - description: Scalars['String']; - images?: Maybe>; - metadata: BillingProductMetadata; - name: Scalars['String']; -}; - -export type BillingProductDto = { - description: Scalars['String']; - images?: Maybe>; - metadata: BillingProductMetadata; - name: Scalars['String']; -}; - -/** The different billing products available */ -export enum BillingProductKey { - BASE_PRODUCT = 'BASE_PRODUCT', - WORKFLOW_NODE_EXECUTION = 'WORKFLOW_NODE_EXECUTION' -} - -export type BillingProductMetadata = { - __typename?: 'BillingProductMetadata'; - planKey: BillingPlanKey; - priceUsageBased: BillingUsageType; - productKey: BillingProductKey; -}; - -export type BillingSessionOutput = { - __typename?: 'BillingSessionOutput'; - url?: Maybe; -}; - -export type BillingSubscription = { - __typename?: 'BillingSubscription'; - billingSubscriptionItems?: Maybe>; - currentPeriodEnd?: Maybe; - id: Scalars['UUID']; - interval?: Maybe; - metadata: Scalars['JSON']; - phases: Array; - status: SubscriptionStatus; -}; - -export type BillingSubscriptionItemDto = { - __typename?: 'BillingSubscriptionItemDTO'; - billingProduct: BillingProductDto; - hasReachedCurrentPeriodCap: Scalars['Boolean']; - id: Scalars['UUID']; - quantity?: Maybe; - stripePriceId: Scalars['String']; -}; - -export type BillingSubscriptionSchedulePhase = { - __typename?: 'BillingSubscriptionSchedulePhase'; - end_date: Scalars['Float']; - items: Array; - start_date: Scalars['Float']; -}; - -export type BillingSubscriptionSchedulePhaseItem = { - __typename?: 'BillingSubscriptionSchedulePhaseItem'; - price: Scalars['String']; - quantity?: Maybe; -}; - -export type BillingTrialPeriod = { - __typename?: 'BillingTrialPeriod'; - duration: Scalars['Float']; - isCreditCardRequired: Scalars['Boolean']; -}; - -export type BillingUpdateOutput = { - __typename?: 'BillingUpdateOutput'; - /** All billing subscriptions */ - billingSubscriptions: Array; - /** Current billing subscription */ - currentBillingSubscription: BillingSubscription; -}; - -export enum BillingUsageType { - LICENSED = 'LICENSED', - METERED = 'METERED' -} - -export type BooleanFieldComparison = { - is?: InputMaybe; - isNot?: InputMaybe; -}; - export enum CalendarChannelVisibility { METADATA = 'METADATA', SHARE_EVERYTHING = 'SHARE_EVERYTHING' } -export type CalendarConfiguration = { - __typename?: 'CalendarConfiguration'; - configurationType: WidgetConfigurationType; -}; - -export type Captcha = { - __typename?: 'Captcha'; - provider?: Maybe; - siteKey?: Maybe; -}; - -export enum CaptchaDriverType { - GOOGLE_RECAPTCHA = 'GOOGLE_RECAPTCHA', - TURNSTILE = 'TURNSTILE' -} - -export type ChannelSyncSuccess = { - __typename?: 'ChannelSyncSuccess'; - success: Scalars['Boolean']; -}; - -export type CheckUserExistOutput = { - __typename?: 'CheckUserExistOutput'; - availableWorkspacesCount: Scalars['Float']; - exists: Scalars['Boolean']; - isEmailVerified: Scalars['Boolean']; -}; - -export type ClientAiModelConfig = { - __typename?: 'ClientAIModelConfig'; - deprecated?: Maybe; - inputCostPer1kTokensInCredits: Scalars['Float']; - label: Scalars['String']; - modelId: Scalars['String']; - nativeCapabilities?: Maybe; - outputCostPer1kTokensInCredits: Scalars['Float']; - provider: ModelProvider; -}; - -export type CommandMenuItem = { - __typename?: 'CommandMenuItem'; - applicationId?: Maybe; - availabilityObjectMetadataId?: Maybe; - availabilityType: CommandMenuItemAvailabilityType; - createdAt: Scalars['DateTime']; - frontComponent?: Maybe; - frontComponentId?: Maybe; - icon?: Maybe; - id: Scalars['UUID']; - isPinned: Scalars['Boolean']; - label: Scalars['String']; - updatedAt: Scalars['DateTime']; - workflowVersionId?: Maybe; -}; - -export enum CommandMenuItemAvailabilityType { - BULK_RECORDS = 'BULK_RECORDS', - GLOBAL = 'GLOBAL', - SINGLE_RECORD = 'SINGLE_RECORD' -} - export type ComputeStepOutputSchemaInput = { /** Step JSON format */ step: Scalars['JSON']; @@ -670,204 +30,6 @@ export type ComputeStepOutputSchemaInput = { workflowVersionId?: InputMaybe; }; -export enum ConfigSource { - DATABASE = 'DATABASE', - DEFAULT = 'DEFAULT', - ENVIRONMENT = 'ENVIRONMENT' -} - -export type ConfigVariable = { - __typename?: 'ConfigVariable'; - description: Scalars['String']; - isEnvOnly: Scalars['Boolean']; - isSensitive: Scalars['Boolean']; - name: Scalars['String']; - options?: Maybe; - source: ConfigSource; - type: ConfigVariableType; - value?: Maybe; -}; - -export enum ConfigVariableType { - ARRAY = 'ARRAY', - BOOLEAN = 'BOOLEAN', - ENUM = 'ENUM', - NUMBER = 'NUMBER', - STRING = 'STRING' -} - -export enum ConfigVariablesGroup { - ANALYTICS_CONFIG = 'ANALYTICS_CONFIG', - AWS_SES_SETTINGS = 'AWS_SES_SETTINGS', - BILLING_CONFIG = 'BILLING_CONFIG', - CAPTCHA_CONFIG = 'CAPTCHA_CONFIG', - CLOUDFLARE_CONFIG = 'CLOUDFLARE_CONFIG', - CODE_INTERPRETER_CONFIG = 'CODE_INTERPRETER_CONFIG', - EMAIL_SETTINGS = 'EMAIL_SETTINGS', - EXCEPTION_HANDLER = 'EXCEPTION_HANDLER', - GOOGLE_AUTH = 'GOOGLE_AUTH', - LLM = 'LLM', - LOGGING = 'LOGGING', - LOGIC_FUNCTION_CONFIG = 'LOGIC_FUNCTION_CONFIG', - METERING = 'METERING', - MICROSOFT_AUTH = 'MICROSOFT_AUTH', - OTHER = 'OTHER', - RATE_LIMITING = 'RATE_LIMITING', - SERVER_CONFIG = 'SERVER_CONFIG', - SSL = 'SSL', - STORAGE_CONFIG = 'STORAGE_CONFIG', - SUPPORT_CHAT_CONFIG = 'SUPPORT_CHAT_CONFIG', - TOKENS_DURATION = 'TOKENS_DURATION', - TWO_FACTOR_AUTHENTICATION = 'TWO_FACTOR_AUTHENTICATION' -} - -export type ConfigVariablesGroupData = { - __typename?: 'ConfigVariablesGroupData'; - description: Scalars['String']; - isHiddenOnLoad: Scalars['Boolean']; - name: ConfigVariablesGroup; - variables: Array; -}; - -export type ConfigVariablesOutput = { - __typename?: 'ConfigVariablesOutput'; - groups: Array; -}; - -export type ConnectedImapSmtpCaldavAccount = { - __typename?: 'ConnectedImapSmtpCaldavAccount'; - accountOwnerId: Scalars['UUID']; - connectionParameters?: Maybe; - handle: Scalars['String']; - id: Scalars['UUID']; - provider: Scalars['String']; -}; - -export type ConnectionParametersOutput = { - __typename?: 'ConnectionParametersOutput'; - host: Scalars['String']; - password: Scalars['String']; - port: Scalars['Float']; - secure?: Maybe; - username?: Maybe; -}; - -export type CoreView = { - __typename?: 'CoreView'; - anyFieldFilterValue?: Maybe; - calendarFieldMetadataId?: Maybe; - calendarLayout?: Maybe; - createdAt: Scalars['DateTime']; - createdByUserWorkspaceId?: Maybe; - deletedAt?: Maybe; - icon: Scalars['String']; - id: Scalars['UUID']; - isCompact: Scalars['Boolean']; - isCustom: Scalars['Boolean']; - kanbanAggregateOperation?: Maybe; - kanbanAggregateOperationFieldMetadataId?: Maybe; - key?: Maybe; - mainGroupByFieldMetadataId?: Maybe; - name: Scalars['String']; - objectMetadataId: Scalars['UUID']; - openRecordIn: ViewOpenRecordIn; - position: Scalars['Float']; - shouldHideEmptyGroups: Scalars['Boolean']; - type: ViewType; - updatedAt: Scalars['DateTime']; - viewFieldGroups: Array; - viewFields: Array; - viewFilterGroups: Array; - viewFilters: Array; - viewGroups: Array; - viewSorts: Array; - visibility: ViewVisibility; - workspaceId: Scalars['UUID']; -}; - -export type CoreViewField = { - __typename?: 'CoreViewField'; - aggregateOperation?: Maybe; - createdAt: Scalars['DateTime']; - deletedAt?: Maybe; - fieldMetadataId: Scalars['UUID']; - id: Scalars['UUID']; - isVisible: Scalars['Boolean']; - position: Scalars['Float']; - size: Scalars['Float']; - updatedAt: Scalars['DateTime']; - viewId: Scalars['UUID']; - workspaceId: Scalars['UUID']; -}; - -export type CoreViewFieldGroup = { - __typename?: 'CoreViewFieldGroup'; - createdAt: Scalars['DateTime']; - deletedAt?: Maybe; - id: Scalars['UUID']; - isVisible: Scalars['Boolean']; - name: Scalars['String']; - position: Scalars['Float']; - updatedAt: Scalars['DateTime']; - viewFields: Array; - viewId: Scalars['UUID']; - workspaceId: Scalars['UUID']; -}; - -export type CoreViewFilter = { - __typename?: 'CoreViewFilter'; - createdAt: Scalars['DateTime']; - deletedAt?: Maybe; - fieldMetadataId: Scalars['UUID']; - id: Scalars['UUID']; - operand: ViewFilterOperand; - positionInViewFilterGroup?: Maybe; - subFieldName?: Maybe; - updatedAt: Scalars['DateTime']; - value: Scalars['JSON']; - viewFilterGroupId?: Maybe; - viewId: Scalars['UUID']; - workspaceId: Scalars['UUID']; -}; - -export type CoreViewFilterGroup = { - __typename?: 'CoreViewFilterGroup'; - createdAt: Scalars['DateTime']; - deletedAt?: Maybe; - id: Scalars['UUID']; - logicalOperator: ViewFilterGroupLogicalOperator; - parentViewFilterGroupId?: Maybe; - positionInViewFilterGroup?: Maybe; - updatedAt: Scalars['DateTime']; - viewId: Scalars['UUID']; - workspaceId: Scalars['UUID']; -}; - -export type CoreViewGroup = { - __typename?: 'CoreViewGroup'; - createdAt: Scalars['DateTime']; - deletedAt?: Maybe; - fieldValue: Scalars['String']; - id: Scalars['UUID']; - isVisible: Scalars['Boolean']; - position: Scalars['Float']; - updatedAt: Scalars['DateTime']; - viewId: Scalars['UUID']; - workspaceId: Scalars['UUID']; -}; - -export type CoreViewSort = { - __typename?: 'CoreViewSort'; - createdAt: Scalars['DateTime']; - deletedAt?: Maybe; - direction: ViewSortDirection; - fieldMetadataId: Scalars['UUID']; - id: Scalars['UUID']; - updatedAt: Scalars['DateTime']; - viewId: Scalars['UUID']; - workspaceId: Scalars['UUID']; -}; - export type CreateDraftFromWorkflowVersionInput = { /** Workflow ID */ workflowId: Scalars['UUID']; @@ -905,27 +67,6 @@ export type CreateWorkflowVersionStepInput = { workflowVersionId: Scalars['UUID']; }; -export type CursorPaging = { - /** Paginate after opaque cursor */ - after?: InputMaybe; - /** Paginate before opaque cursor */ - before?: InputMaybe; - /** Paginate first */ - first?: InputMaybe; - /** Paginate last */ - last?: InputMaybe; -}; - -/** Database Event Action */ -export enum DatabaseEventAction { - CREATED = 'CREATED', - DELETED = 'DELETED', - DESTROYED = 'DESTROYED', - RESTORED = 'RESTORED', - UPDATED = 'UPDATED', - UPSERTED = 'UPSERTED' -} - export type DateTimeFilter = { eq?: InputMaybe; gt?: InputMaybe; @@ -937,23 +78,6 @@ export type DateTimeFilter = { neq?: InputMaybe; }; -export type DeleteJobsResponse = { - __typename?: 'DeleteJobsResponse'; - deletedCount: Scalars['Int']; - results: Array; -}; - -export type DeleteSsoOutput = { - __typename?: 'DeleteSsoOutput'; - identityProviderId: Scalars['UUID']; -}; - -export type DeleteTwoFactorAuthenticationMethodOutput = { - __typename?: 'DeleteTwoFactorAuthenticationMethodOutput'; - /** Boolean that confirms query was dispatched */ - success: Scalars['Boolean']; -}; - export type DeleteWorkflowVersionStepInput = { /** Step to delete ID */ stepId: Scalars['String']; @@ -961,31 +85,6 @@ export type DeleteWorkflowVersionStepInput = { workflowVersionId: Scalars['UUID']; }; -export type DeletedWorkspaceMember = { - __typename?: 'DeletedWorkspaceMember'; - avatarUrl?: Maybe; - id: Scalars['UUID']; - name: FullName; - userEmail: Scalars['String']; - userWorkspaceId?: Maybe; -}; - -export type DomainRecord = { - __typename?: 'DomainRecord'; - key: Scalars['String']; - status: Scalars['String']; - type: Scalars['String']; - validationType: Scalars['String']; - value: Scalars['String']; -}; - -export type DomainValidRecords = { - __typename?: 'DomainValidRecords'; - domain: Scalars['String']; - id: Scalars['UUID']; - records: Array; -}; - export type DuplicateWorkflowInput = { /** Workflow ID to duplicate */ workflowIdToDuplicate: Scalars['UUID']; @@ -998,551 +97,11 @@ export type DuplicateWorkflowVersionStepInput = { workflowVersionId: Scalars['String']; }; -export type DuplicatedDashboard = { - __typename?: 'DuplicatedDashboard'; - createdAt: Scalars['String']; - id: Scalars['UUID']; - pageLayoutId?: Maybe; - position: Scalars['Float']; - title?: Maybe; - updatedAt: Scalars['String']; -}; - -export type EditSsoOutput = { - __typename?: 'EditSsoOutput'; - id: Scalars['UUID']; - issuer: Scalars['String']; - name: Scalars['String']; - status: SsoIdentityProviderStatus; - type: IdentityProviderType; -}; - -export type EmailPasswordResetLinkOutput = { - __typename?: 'EmailPasswordResetLinkOutput'; - /** Boolean that confirms query was dispatched */ - success: Scalars['Boolean']; -}; - -export type EmailingDomain = { - __typename?: 'EmailingDomain'; - createdAt: Scalars['DateTime']; - domain: Scalars['String']; - driver: EmailingDomainDriver; - id: Scalars['UUID']; - status: EmailingDomainStatus; - updatedAt: Scalars['DateTime']; - verificationRecords?: Maybe>; - verifiedAt?: Maybe; -}; - -export enum EmailingDomainDriver { - AWS_SES = 'AWS_SES' -} - -export enum EmailingDomainStatus { - FAILED = 'FAILED', - PENDING = 'PENDING', - TEMPORARY_FAILURE = 'TEMPORARY_FAILURE', - VERIFIED = 'VERIFIED' -} - -export type EmailsConfiguration = { - __typename?: 'EmailsConfiguration'; - configurationType: WidgetConfigurationType; -}; - -export type EventLogPageInfo = { - __typename?: 'EventLogPageInfo'; - endCursor?: Maybe; - hasNextPage: Scalars['Boolean']; -}; - -export type EventLogQueryResult = { - __typename?: 'EventLogQueryResult'; - pageInfo: EventLogPageInfo; - records: Array; - totalCount: Scalars['Int']; -}; - -export type EventLogRecord = { - __typename?: 'EventLogRecord'; - event: Scalars['String']; - isCustom?: Maybe; - objectMetadataId?: Maybe; - properties?: Maybe; - recordId?: Maybe; - timestamp: Scalars['DateTime']; - userWorkspaceId?: Maybe; -}; - -export type EventSubscription = { - __typename?: 'EventSubscription'; - eventStreamId: Scalars['String']; - eventWithQueryIdsList: Array; -}; - -export type EventWithQueryIds = { - __typename?: 'EventWithQueryIds'; - event: ObjectRecordEvent; - queryIds: Array; -}; - -export type FeatureFlag = { - __typename?: 'FeatureFlag'; - id: Scalars['UUID']; - key: FeatureFlagKey; - value: Scalars['Boolean']; -}; - -export type FeatureFlagDto = { - __typename?: 'FeatureFlagDTO'; - key: FeatureFlagKey; - value: Scalars['Boolean']; -}; - -export enum FeatureFlagKey { - IS_AI_ENABLED = 'IS_AI_ENABLED', - IS_APPLICATION_ENABLED = 'IS_APPLICATION_ENABLED', - IS_APPLICATION_INSTALLATION_FROM_TARBALL_ENABLED = 'IS_APPLICATION_INSTALLATION_FROM_TARBALL_ENABLED', - IS_ATTACHMENT_MIGRATED = 'IS_ATTACHMENT_MIGRATED', - IS_COMMAND_MENU_ITEM_ENABLED = 'IS_COMMAND_MENU_ITEM_ENABLED', - IS_DASHBOARD_V2_ENABLED = 'IS_DASHBOARD_V2_ENABLED', - IS_EMAILING_DOMAIN_ENABLED = 'IS_EMAILING_DOMAIN_ENABLED', - IS_FILES_FIELD_MIGRATED = 'IS_FILES_FIELD_MIGRATED', - IS_JSON_FILTER_ENABLED = 'IS_JSON_FILTER_ENABLED', - IS_JUNCTION_RELATIONS_ENABLED = 'IS_JUNCTION_RELATIONS_ENABLED', - IS_MARKETPLACE_ENABLED = 'IS_MARKETPLACE_ENABLED', - IS_NAVIGATION_MENU_ITEM_EDITING_ENABLED = 'IS_NAVIGATION_MENU_ITEM_EDITING_ENABLED', - IS_NAVIGATION_MENU_ITEM_ENABLED = 'IS_NAVIGATION_MENU_ITEM_ENABLED', - IS_NOTE_TARGET_MIGRATED = 'IS_NOTE_TARGET_MIGRATED', - IS_PUBLIC_DOMAIN_ENABLED = 'IS_PUBLIC_DOMAIN_ENABLED', - IS_RECORD_PAGE_LAYOUT_EDITING_ENABLED = 'IS_RECORD_PAGE_LAYOUT_EDITING_ENABLED', - IS_ROW_LEVEL_PERMISSION_PREDICATES_ENABLED = 'IS_ROW_LEVEL_PERMISSION_PREDICATES_ENABLED', - IS_SSE_DB_EVENTS_ENABLED = 'IS_SSE_DB_EVENTS_ENABLED', - IS_TASK_TARGET_MIGRATED = 'IS_TASK_TARGET_MIGRATED', - IS_UNIQUE_INDEXES_ENABLED = 'IS_UNIQUE_INDEXES_ENABLED' -} - -export type Field = { - __typename?: 'Field'; - applicationId: Scalars['UUID']; - createdAt: Scalars['DateTime']; - defaultValue?: Maybe; - description?: Maybe; - icon?: Maybe; - id: Scalars['UUID']; - isActive?: Maybe; - isCustom?: Maybe; - isLabelSyncedWithName?: Maybe; - isNullable?: Maybe; - isSystem?: Maybe; - isUIReadOnly?: Maybe; - isUnique?: Maybe; - label: Scalars['String']; - morphId?: Maybe; - morphRelations?: Maybe>; - name: Scalars['String']; - object?: Maybe; - options?: Maybe; - relation?: Maybe; - settings?: Maybe; - standardOverrides?: Maybe; - type: FieldMetadataType; - updatedAt: Scalars['DateTime']; -}; - -export type FieldConfiguration = { - __typename?: 'FieldConfiguration'; - configurationType: WidgetConfigurationType; -}; - -export type FieldConnection = { - __typename?: 'FieldConnection'; - /** Array of edges. */ - edges: Array; - /** Paging information */ - pageInfo: PageInfo; -}; - -export type FieldEdge = { - __typename?: 'FieldEdge'; - /** Cursor for this node. */ - cursor: Scalars['ConnectionCursor']; - /** The node containing the Field */ - node: Field; -}; - -export type FieldFilter = { - and?: InputMaybe>; - id?: InputMaybe; - isActive?: InputMaybe; - isCustom?: InputMaybe; - isSystem?: InputMaybe; - isUIReadOnly?: InputMaybe; - or?: InputMaybe>; -}; - -/** Type of the field */ -export enum FieldMetadataType { - ACTOR = 'ACTOR', - ADDRESS = 'ADDRESS', - ARRAY = 'ARRAY', - BOOLEAN = 'BOOLEAN', - CURRENCY = 'CURRENCY', - DATE = 'DATE', - DATE_TIME = 'DATE_TIME', - EMAILS = 'EMAILS', - FILES = 'FILES', - FULL_NAME = 'FULL_NAME', - LINKS = 'LINKS', - MORPH_RELATION = 'MORPH_RELATION', - MULTI_SELECT = 'MULTI_SELECT', - NUMBER = 'NUMBER', - NUMERIC = 'NUMERIC', - PHONES = 'PHONES', - POSITION = 'POSITION', - RATING = 'RATING', - RAW_JSON = 'RAW_JSON', - RELATION = 'RELATION', - RICH_TEXT = 'RICH_TEXT', - RICH_TEXT_V2 = 'RICH_TEXT_V2', - SELECT = 'SELECT', - TEXT = 'TEXT', - TS_VECTOR = 'TS_VECTOR', - UUID = 'UUID' -} - -export type FieldPermission = { - __typename?: 'FieldPermission'; - canReadFieldValue?: Maybe; - canUpdateFieldValue?: Maybe; - fieldMetadataId: Scalars['UUID']; - id: Scalars['UUID']; - objectMetadataId: Scalars['UUID']; - roleId: Scalars['UUID']; -}; - -export type FieldRichTextConfiguration = { - __typename?: 'FieldRichTextConfiguration'; - configurationType: WidgetConfigurationType; -}; - -export type FieldsConfiguration = { - __typename?: 'FieldsConfiguration'; - configurationType: WidgetConfigurationType; -}; - -export type File = { - __typename?: 'File'; - createdAt: Scalars['DateTime']; - id: Scalars['UUID']; - path: Scalars['String']; - size: Scalars['Float']; -}; - -export type FilesConfiguration = { - __typename?: 'FilesConfiguration'; - configurationType: WidgetConfigurationType; -}; - export enum FilterIs { NotNull = 'NotNull', Null = 'Null' } -export type FindAvailableSsoidpOutput = { - __typename?: 'FindAvailableSSOIDPOutput'; - id: Scalars['UUID']; - issuer: Scalars['String']; - name: Scalars['String']; - status: SsoIdentityProviderStatus; - type: IdentityProviderType; - workspace: WorkspaceNameAndId; -}; - -export type FrontComponent = { - __typename?: 'FrontComponent'; - applicationId: Scalars['UUID']; - builtComponentChecksum: Scalars['String']; - builtComponentPath: Scalars['String']; - componentName: Scalars['String']; - createdAt: Scalars['DateTime']; - description?: Maybe; - id: Scalars['UUID']; - name: Scalars['String']; - sourceComponentPath: Scalars['String']; - universalIdentifier?: Maybe; - updatedAt: Scalars['DateTime']; -}; - -export type FrontComponentConfiguration = { - __typename?: 'FrontComponentConfiguration'; - configurationType: WidgetConfigurationType; - frontComponentId: Scalars['UUID']; -}; - -export type FullName = { - __typename?: 'FullName'; - firstName: Scalars['String']; - lastName: Scalars['String']; -}; - -export type GaugeChartConfiguration = { - __typename?: 'GaugeChartConfiguration'; - aggregateFieldMetadataId: Scalars['UUID']; - aggregateOperation: AggregateOperations; - color?: Maybe; - configurationType: WidgetConfigurationType; - description?: Maybe; - displayDataLabel?: Maybe; - filter?: Maybe; - firstDayOfTheWeek?: Maybe; - timezone?: Maybe; -}; - -export type GetAuthorizationUrlForSsoOutput = { - __typename?: 'GetAuthorizationUrlForSSOOutput'; - authorizationURL: Scalars['String']; - id: Scalars['UUID']; - type: Scalars['String']; -}; - -/** Order by options for graph widgets */ -export enum GraphOrderBy { - FIELD_ASC = 'FIELD_ASC', - FIELD_DESC = 'FIELD_DESC', - FIELD_POSITION_ASC = 'FIELD_POSITION_ASC', - FIELD_POSITION_DESC = 'FIELD_POSITION_DESC', - MANUAL = 'MANUAL', - VALUE_ASC = 'VALUE_ASC', - VALUE_DESC = 'VALUE_DESC' -} - -export type GridPosition = { - __typename?: 'GridPosition'; - column: Scalars['Float']; - columnSpan: Scalars['Float']; - row: Scalars['Float']; - rowSpan: Scalars['Float']; -}; - -export enum HealthIndicatorId { - app = 'app', - connectedAccount = 'connectedAccount', - database = 'database', - redis = 'redis', - worker = 'worker' -} - -export enum IdentityProviderType { - OIDC = 'OIDC', - SAML = 'SAML' -} - -export type IframeConfiguration = { - __typename?: 'IframeConfiguration'; - configurationType: WidgetConfigurationType; - url?: Maybe; -}; - -export type ImapSmtpCaldavConnectionParameters = { - __typename?: 'ImapSmtpCaldavConnectionParameters'; - CALDAV?: Maybe; - IMAP?: Maybe; - SMTP?: Maybe; -}; - -export type ImapSmtpCaldavConnectionSuccess = { - __typename?: 'ImapSmtpCaldavConnectionSuccess'; - connectedAccountId: Scalars['String']; - success: Scalars['Boolean']; -}; - -export type ImpersonateOutput = { - __typename?: 'ImpersonateOutput'; - loginToken: AuthToken; - workspace: WorkspaceUrlsAndId; -}; - -export type Index = { - __typename?: 'Index'; - createdAt: Scalars['DateTime']; - id: Scalars['UUID']; - indexFieldMetadataList: Array; - indexFieldMetadatas: IndexIndexFieldMetadatasConnection; - indexType: IndexType; - indexWhereClause?: Maybe; - isCustom?: Maybe; - isUnique: Scalars['Boolean']; - name: Scalars['String']; - objectMetadata: IndexObjectMetadataConnection; - updatedAt: Scalars['DateTime']; -}; - - -export type IndexIndexFieldMetadatasArgs = { - filter?: IndexFieldFilter; - paging?: CursorPaging; -}; - - -export type IndexObjectMetadataArgs = { - filter?: ObjectFilter; - paging?: CursorPaging; -}; - -export type IndexConnection = { - __typename?: 'IndexConnection'; - /** Array of edges. */ - edges: Array; - /** Paging information */ - pageInfo: PageInfo; -}; - -export type IndexEdge = { - __typename?: 'IndexEdge'; - /** Cursor for this node. */ - cursor: Scalars['ConnectionCursor']; - /** The node containing the Index */ - node: Index; -}; - -export type IndexField = { - __typename?: 'IndexField'; - createdAt: Scalars['DateTime']; - fieldMetadataId: Scalars['UUID']; - id: Scalars['UUID']; - order: Scalars['Float']; - updatedAt: Scalars['DateTime']; -}; - -export type IndexFieldEdge = { - __typename?: 'IndexFieldEdge'; - /** Cursor for this node. */ - cursor: Scalars['ConnectionCursor']; - /** The node containing the IndexField */ - node: IndexField; -}; - -export type IndexFieldFilter = { - and?: InputMaybe>; - fieldMetadataId?: InputMaybe; - id?: InputMaybe; - or?: InputMaybe>; -}; - -export type IndexFilter = { - and?: InputMaybe>; - id?: InputMaybe; - isCustom?: InputMaybe; - or?: InputMaybe>; -}; - -export type IndexIndexFieldMetadatasConnection = { - __typename?: 'IndexIndexFieldMetadatasConnection'; - /** Array of edges. */ - edges: Array; - /** Paging information */ - pageInfo: PageInfo; -}; - -export type IndexObjectMetadataConnection = { - __typename?: 'IndexObjectMetadataConnection'; - /** Array of edges. */ - edges: Array; - /** Paging information */ - pageInfo: PageInfo; -}; - -/** Type of the index */ -export enum IndexType { - BTREE = 'BTREE', - GIN = 'GIN' -} - -export type InitiateTwoFactorAuthenticationProvisioningOutput = { - __typename?: 'InitiateTwoFactorAuthenticationProvisioningOutput'; - uri: Scalars['String']; -}; - -export type InvalidatePasswordOutput = { - __typename?: 'InvalidatePasswordOutput'; - /** Boolean that confirms query was dispatched */ - success: Scalars['Boolean']; -}; - -export type JobOperationResult = { - __typename?: 'JobOperationResult'; - error?: Maybe; - jobId: Scalars['String']; - success: Scalars['Boolean']; -}; - -/** Job state in the queue */ -export enum JobState { - ACTIVE = 'ACTIVE', - COMPLETED = 'COMPLETED', - DELAYED = 'DELAYED', - FAILED = 'FAILED', - PRIORITIZED = 'PRIORITIZED', - WAITING = 'WAITING', - WAITING_CHILDREN = 'WAITING_CHILDREN' -} - -export type LineChartConfiguration = { - __typename?: 'LineChartConfiguration'; - aggregateFieldMetadataId: Scalars['UUID']; - aggregateOperation: AggregateOperations; - axisNameDisplay?: Maybe; - color?: Maybe; - configurationType: WidgetConfigurationType; - description?: Maybe; - displayDataLabel?: Maybe; - displayLegend?: Maybe; - filter?: Maybe; - firstDayOfTheWeek?: Maybe; - isCumulative?: Maybe; - isStacked?: Maybe; - omitNullValues?: Maybe; - primaryAxisDateGranularity?: Maybe; - primaryAxisGroupByFieldMetadataId: Scalars['UUID']; - primaryAxisGroupBySubFieldName?: Maybe; - primaryAxisManualSortOrder?: Maybe>; - primaryAxisOrderBy?: Maybe; - rangeMax?: Maybe; - rangeMin?: Maybe; - secondaryAxisGroupByDateGranularity?: Maybe; - secondaryAxisGroupByFieldMetadataId?: Maybe; - secondaryAxisGroupBySubFieldName?: Maybe; - secondaryAxisManualSortOrder?: Maybe>; - secondaryAxisOrderBy?: Maybe; - timezone?: Maybe; -}; - -export type LineChartDataOutput = { - __typename?: 'LineChartDataOutput'; - formattedToRawLookup: Scalars['JSON']; - hasTooManyGroups: Scalars['Boolean']; - series: Array; - showDataLabels: Scalars['Boolean']; - showLegend: Scalars['Boolean']; - xAxisLabel: Scalars['String']; - yAxisLabel: Scalars['String']; -}; - -export type LineChartDataPoint = { - __typename?: 'LineChartDataPoint'; - x: Scalars['String']; - y: Scalars['Float']; -}; - -export type LineChartSeries = { - __typename?: 'LineChartSeries'; - data: Array; - id: Scalars['String']; - label: Scalars['String']; -}; - export type LinkMetadata = { __typename?: 'LinkMetadata'; label: Scalars['String']; @@ -1556,97 +115,12 @@ export type LinksMetadata = { secondaryLinks?: Maybe>; }; -export type Location = { - __typename?: 'Location'; - lat?: Maybe; - lng?: Maybe; -}; - -export type LogicFunction = { - __typename?: 'LogicFunction'; - applicationId?: Maybe; - builtHandlerPath: Scalars['String']; - createdAt: Scalars['DateTime']; - cronTriggerSettings?: Maybe; - databaseEventTriggerSettings?: Maybe; - description?: Maybe; - handlerName: Scalars['String']; - httpRouteTriggerSettings?: Maybe; - id: Scalars['UUID']; - isTool: Scalars['Boolean']; - name: Scalars['String']; - runtime: Scalars['String']; - sourceHandlerPath: Scalars['String']; - timeoutSeconds: Scalars['Float']; - toolInputSchema?: Maybe; - universalIdentifier?: Maybe; - updatedAt: Scalars['DateTime']; -}; - -export type LogicFunctionExecutionResult = { - __typename?: 'LogicFunctionExecutionResult'; - /** Execution result in JSON format */ - data?: Maybe; - /** Execution duration in milliseconds */ - duration: Scalars['Float']; - /** Execution error in JSON format */ - error?: Maybe; - /** Execution Logs */ - logs: Scalars['String']; - /** Execution status */ - status: LogicFunctionExecutionStatus; -}; - -/** Status of the logic function execution */ -export enum LogicFunctionExecutionStatus { - ERROR = 'ERROR', - IDLE = 'IDLE', - SUCCESS = 'SUCCESS' -} - -export type LogicFunctionLogs = { - __typename?: 'LogicFunctionLogs'; - /** Execution Logs */ - logs: Scalars['String']; -}; - -export type LoginTokenOutput = { - __typename?: 'LoginTokenOutput'; - loginToken: AuthToken; -}; - -export type MarketplaceApp = { - __typename?: 'MarketplaceApp'; - aboutDescription: Scalars['String']; - author: Scalars['String']; - category: Scalars['String']; - description: Scalars['String']; - icon: Scalars['String']; - id: Scalars['String']; - logo?: Maybe; - name: Scalars['String']; - providers: Array; - screenshots: Array; - termsUrl?: Maybe; - version: Scalars['String']; - websiteUrl?: Maybe; -}; - export enum MessageChannelVisibility { METADATA = 'METADATA', SHARE_EVERYTHING = 'SHARE_EVERYTHING', SUBJECT = 'SUBJECT' } -export enum ModelProvider { - ANTHROPIC = 'ANTHROPIC', - GROQ = 'GROQ', - NONE = 'NONE', - OPENAI = 'OPENAI', - OPENAI_COMPATIBLE = 'OPENAI_COMPATIBLE', - XAI = 'XAI' -} - export type Mutation = { __typename?: 'Mutation'; activateWorkflowVersion: Scalars['Boolean']; @@ -1759,150 +233,6 @@ export type MutationUpdateWorkflowVersionStepArgs = { input: UpdateWorkflowVersionStepInput; }; -export type NativeModelCapabilities = { - __typename?: 'NativeModelCapabilities'; - twitterSearch?: Maybe; - webSearch?: Maybe; -}; - -export type NavigationMenuItem = { - __typename?: 'NavigationMenuItem'; - applicationId?: Maybe; - createdAt: Scalars['DateTime']; - folderId?: Maybe; - id: Scalars['UUID']; - link?: Maybe; - name?: Maybe; - position: Scalars['Float']; - targetObjectMetadataId?: Maybe; - targetRecordId?: Maybe; - targetRecordIdentifier?: Maybe; - updatedAt: Scalars['DateTime']; - userWorkspaceId?: Maybe; - viewId?: Maybe; -}; - -export type NotesConfiguration = { - __typename?: 'NotesConfiguration'; - configurationType: WidgetConfigurationType; -}; - -export type Object = { - __typename?: 'Object'; - applicationId: Scalars['UUID']; - createdAt: Scalars['DateTime']; - description?: Maybe; - duplicateCriteria?: Maybe>>; - fields: ObjectFieldsConnection; - fieldsList: Array; - icon?: Maybe; - id: Scalars['UUID']; - imageIdentifierFieldMetadataId?: Maybe; - indexMetadataList: Array; - indexMetadatas: ObjectIndexMetadatasConnection; - isActive: Scalars['Boolean']; - isCustom: Scalars['Boolean']; - isLabelSyncedWithName: Scalars['Boolean']; - isRemote: Scalars['Boolean']; - isSearchable: Scalars['Boolean']; - isSystem: Scalars['Boolean']; - isUIReadOnly: Scalars['Boolean']; - labelIdentifierFieldMetadataId?: Maybe; - labelPlural: Scalars['String']; - labelSingular: Scalars['String']; - namePlural: Scalars['String']; - nameSingular: Scalars['String']; - shortcut?: Maybe; - standardOverrides?: Maybe; - updatedAt: Scalars['DateTime']; -}; - - -export type ObjectFieldsArgs = { - filter?: FieldFilter; - paging?: CursorPaging; -}; - - -export type ObjectIndexMetadatasArgs = { - filter?: IndexFilter; - paging?: CursorPaging; -}; - -export type ObjectConnection = { - __typename?: 'ObjectConnection'; - /** Array of edges. */ - edges: Array; - /** Paging information */ - pageInfo: PageInfo; -}; - -export type ObjectEdge = { - __typename?: 'ObjectEdge'; - /** Cursor for this node. */ - cursor: Scalars['ConnectionCursor']; - /** The node containing the Object */ - node: Object; -}; - -export type ObjectFieldsConnection = { - __typename?: 'ObjectFieldsConnection'; - /** Array of edges. */ - edges: Array; - /** Paging information */ - pageInfo: PageInfo; -}; - -export type ObjectFilter = { - and?: InputMaybe>; - id?: InputMaybe; - isActive?: InputMaybe; - isCustom?: InputMaybe; - isRemote?: InputMaybe; - isSearchable?: InputMaybe; - isSystem?: InputMaybe; - isUIReadOnly?: InputMaybe; - or?: InputMaybe>; -}; - -export type ObjectIndexMetadatasConnection = { - __typename?: 'ObjectIndexMetadatasConnection'; - /** Array of edges. */ - edges: Array; - /** Paging information */ - pageInfo: PageInfo; -}; - -export type ObjectPermission = { - __typename?: 'ObjectPermission'; - canDestroyObjectRecords?: Maybe; - canReadObjectRecords?: Maybe; - canSoftDeleteObjectRecords?: Maybe; - canUpdateObjectRecords?: Maybe; - objectMetadataId: Scalars['UUID']; - restrictedFields?: Maybe; - rowLevelPermissionPredicateGroups?: Maybe>; - rowLevelPermissionPredicates?: Maybe>; -}; - -export type ObjectRecordEvent = { - __typename?: 'ObjectRecordEvent'; - action: DatabaseEventAction; - objectNameSingular: Scalars['String']; - properties: ObjectRecordEventProperties; - recordId: Scalars['String']; - userId?: Maybe; - workspaceMemberId?: Maybe; -}; - -export type ObjectRecordEventProperties = { - __typename?: 'ObjectRecordEventProperties'; - after?: Maybe; - before?: Maybe; - diff?: Maybe; - updatedFields?: Maybe>; -}; - export type ObjectRecordFilterInput = { and?: InputMaybe>; createdAt?: InputMaybe; @@ -1913,263 +243,6 @@ export type ObjectRecordFilterInput = { updatedAt?: InputMaybe; }; -/** Date granularity options (e.g. DAY, MONTH, QUARTER, YEAR, WEEK, DAY_OF_THE_WEEK, MONTH_OF_THE_YEAR, QUARTER_OF_THE_YEAR) */ -export enum ObjectRecordGroupByDateGranularity { - DAY = 'DAY', - DAY_OF_THE_WEEK = 'DAY_OF_THE_WEEK', - MONTH = 'MONTH', - MONTH_OF_THE_YEAR = 'MONTH_OF_THE_YEAR', - NONE = 'NONE', - QUARTER = 'QUARTER', - QUARTER_OF_THE_YEAR = 'QUARTER_OF_THE_YEAR', - WEEK = 'WEEK', - YEAR = 'YEAR' -} - -export type ObjectStandardOverrides = { - __typename?: 'ObjectStandardOverrides'; - description?: Maybe; - icon?: Maybe; - labelPlural?: Maybe; - labelSingular?: Maybe; - translations?: Maybe; -}; - -export type OnDbEvent = { - __typename?: 'OnDbEvent'; - action: DatabaseEventAction; - eventDate: Scalars['DateTime']; - objectNameSingular: Scalars['String']; - record: Scalars['JSON']; - updatedFields?: Maybe>; -}; - -/** Onboarding status */ -export enum OnboardingStatus { - BOOK_ONBOARDING = 'BOOK_ONBOARDING', - COMPLETED = 'COMPLETED', - INVITE_TEAM = 'INVITE_TEAM', - PLAN_REQUIRED = 'PLAN_REQUIRED', - PROFILE_CREATION = 'PROFILE_CREATION', - SYNC_EMAIL = 'SYNC_EMAIL', - WORKSPACE_ACTIVATION = 'WORKSPACE_ACTIVATION' -} - -export type OnboardingStepSuccess = { - __typename?: 'OnboardingStepSuccess'; - /** Boolean that confirms query was dispatched */ - success: Scalars['Boolean']; -}; - -export type PageInfo = { - __typename?: 'PageInfo'; - /** The cursor of the last returned record. */ - endCursor?: Maybe; - /** true if paging forward and there are more records. */ - hasNextPage?: Maybe; - /** true if paging backwards and there are more records. */ - hasPreviousPage?: Maybe; - /** The cursor of the first returned record. */ - startCursor?: Maybe; -}; - -export type PageLayout = { - __typename?: 'PageLayout'; - createdAt: Scalars['DateTime']; - defaultTabToFocusOnMobileAndSidePanelId?: Maybe; - deletedAt?: Maybe; - id: Scalars['UUID']; - name: Scalars['String']; - objectMetadataId?: Maybe; - tabs?: Maybe>; - type: PageLayoutType; - updatedAt: Scalars['DateTime']; -}; - -export type PageLayoutTab = { - __typename?: 'PageLayoutTab'; - createdAt: Scalars['DateTime']; - deletedAt?: Maybe; - icon?: Maybe; - id: Scalars['UUID']; - layoutMode?: Maybe; - pageLayoutId: Scalars['UUID']; - position: Scalars['Float']; - title: Scalars['String']; - updatedAt: Scalars['DateTime']; - widgets?: Maybe>; -}; - -export enum PageLayoutTabLayoutMode { - CANVAS = 'CANVAS', - GRID = 'GRID', - VERTICAL_LIST = 'VERTICAL_LIST' -} - -export enum PageLayoutType { - DASHBOARD = 'DASHBOARD', - RECORD_INDEX = 'RECORD_INDEX', - RECORD_PAGE = 'RECORD_PAGE' -} - -export type PageLayoutWidget = { - __typename?: 'PageLayoutWidget'; - conditionalDisplay?: Maybe; - configuration: WidgetConfiguration; - createdAt: Scalars['DateTime']; - deletedAt?: Maybe; - gridPosition: GridPosition; - id: Scalars['UUID']; - objectMetadataId?: Maybe; - pageLayoutTabId: Scalars['UUID']; - position?: Maybe; - title: Scalars['String']; - type: WidgetType; - updatedAt: Scalars['DateTime']; -}; - -export type PageLayoutWidgetCanvasPosition = { - __typename?: 'PageLayoutWidgetCanvasPosition'; - layoutMode: PageLayoutTabLayoutMode; -}; - -export type PageLayoutWidgetGridPosition = { - __typename?: 'PageLayoutWidgetGridPosition'; - column: Scalars['Int']; - columnSpan: Scalars['Int']; - layoutMode: PageLayoutTabLayoutMode; - row: Scalars['Int']; - rowSpan: Scalars['Int']; -}; - -export type PageLayoutWidgetPosition = PageLayoutWidgetCanvasPosition | PageLayoutWidgetGridPosition | PageLayoutWidgetVerticalListPosition; - -export type PageLayoutWidgetVerticalListPosition = { - __typename?: 'PageLayoutWidgetVerticalListPosition'; - index: Scalars['Int']; - layoutMode: PageLayoutTabLayoutMode; -}; - -export type PermissionFlag = { - __typename?: 'PermissionFlag'; - flag: PermissionFlagType; - id: Scalars['UUID']; - roleId: Scalars['UUID']; -}; - -export enum PermissionFlagType { - AI = 'AI', - AI_SETTINGS = 'AI_SETTINGS', - API_KEYS_AND_WEBHOOKS = 'API_KEYS_AND_WEBHOOKS', - APPLICATIONS = 'APPLICATIONS', - BILLING = 'BILLING', - CODE_INTERPRETER_TOOL = 'CODE_INTERPRETER_TOOL', - CONNECTED_ACCOUNTS = 'CONNECTED_ACCOUNTS', - DATA_MODEL = 'DATA_MODEL', - DOWNLOAD_FILE = 'DOWNLOAD_FILE', - EXPORT_CSV = 'EXPORT_CSV', - HTTP_REQUEST_TOOL = 'HTTP_REQUEST_TOOL', - IMPERSONATE = 'IMPERSONATE', - IMPORT_CSV = 'IMPORT_CSV', - LAYOUTS = 'LAYOUTS', - MARKETPLACE_APPS = 'MARKETPLACE_APPS', - PROFILE_INFORMATION = 'PROFILE_INFORMATION', - ROLES = 'ROLES', - SECURITY = 'SECURITY', - SEND_EMAIL_TOOL = 'SEND_EMAIL_TOOL', - SSO_BYPASS = 'SSO_BYPASS', - UPLOAD_FILE = 'UPLOAD_FILE', - VIEWS = 'VIEWS', - WORKFLOWS = 'WORKFLOWS', - WORKSPACE = 'WORKSPACE', - WORKSPACE_MEMBERS = 'WORKSPACE_MEMBERS' -} - -export type PieChartConfiguration = { - __typename?: 'PieChartConfiguration'; - aggregateFieldMetadataId: Scalars['UUID']; - aggregateOperation: AggregateOperations; - color?: Maybe; - configurationType: WidgetConfigurationType; - dateGranularity?: Maybe; - description?: Maybe; - displayDataLabel?: Maybe; - displayLegend?: Maybe; - filter?: Maybe; - firstDayOfTheWeek?: Maybe; - groupByFieldMetadataId: Scalars['UUID']; - groupBySubFieldName?: Maybe; - hideEmptyCategory?: Maybe; - manualSortOrder?: Maybe>; - orderBy?: Maybe; - showCenterMetric?: Maybe; - timezone?: Maybe; -}; - -export type PieChartDataItem = { - __typename?: 'PieChartDataItem'; - id: Scalars['String']; - value: Scalars['Float']; -}; - -export type PieChartDataOutput = { - __typename?: 'PieChartDataOutput'; - data: Array; - formattedToRawLookup: Scalars['JSON']; - hasTooManyGroups: Scalars['Boolean']; - showCenterMetric: Scalars['Boolean']; - showDataLabels: Scalars['Boolean']; - showLegend: Scalars['Boolean']; -}; - -export type PlaceDetailsResult = { - __typename?: 'PlaceDetailsResult'; - city?: Maybe; - country?: Maybe; - location?: Maybe; - postcode?: Maybe; - state?: Maybe; -}; - -export type PostgresCredentials = { - __typename?: 'PostgresCredentials'; - id: Scalars['UUID']; - password: Scalars['String']; - user: Scalars['String']; - workspaceId: Scalars['UUID']; -}; - -export type PublicDomain = { - __typename?: 'PublicDomain'; - createdAt: Scalars['DateTime']; - domain: Scalars['String']; - id: Scalars['UUID']; - isValidated: Scalars['Boolean']; -}; - -export type PublicFeatureFlag = { - __typename?: 'PublicFeatureFlag'; - key: FeatureFlagKey; - metadata: PublicFeatureFlagMetadata; -}; - -export type PublicFeatureFlagMetadata = { - __typename?: 'PublicFeatureFlagMetadata'; - description: Scalars['String']; - imagePath?: Maybe; - label: Scalars['String']; -}; - -export type PublicWorkspaceDataOutput = { - __typename?: 'PublicWorkspaceDataOutput'; - authBypassProviders?: Maybe; - authProviders: AuthProviders; - displayName?: Maybe; - id: Scalars['UUID']; - logo?: Maybe; - workspaceUrls: WorkspaceUrls; -}; - export type Query = { __typename?: 'Query'; getTimelineCalendarEventsFromCompanyId: TimelineCalendarEventsWithTotal; @@ -2233,189 +306,6 @@ export type QuerySearchArgs = { searchInput: Scalars['String']; }; -export type QueueJob = { - __typename?: 'QueueJob'; - attemptsMade: Scalars['Float']; - data?: Maybe; - failedReason?: Maybe; - finishedOn?: Maybe; - id: Scalars['String']; - logs?: Maybe>; - name: Scalars['String']; - processedOn?: Maybe; - returnValue?: Maybe; - stackTrace?: Maybe>; - state: JobState; - timestamp?: Maybe; -}; - -export type QueueJobsResponse = { - __typename?: 'QueueJobsResponse'; - count: Scalars['Float']; - hasMore: Scalars['Boolean']; - jobs: Array; - retentionConfig: QueueRetentionConfig; - totalCount: Scalars['Float']; -}; - -export type QueueMetricsData = { - __typename?: 'QueueMetricsData'; - data: Array; - details?: Maybe; - queueName: Scalars['String']; - timeRange: QueueMetricsTimeRange; - workers: Scalars['Float']; -}; - -export type QueueMetricsDataPoint = { - __typename?: 'QueueMetricsDataPoint'; - x: Scalars['Float']; - y: Scalars['Float']; -}; - -export type QueueMetricsSeries = { - __typename?: 'QueueMetricsSeries'; - data: Array; - id: Scalars['String']; -}; - -export enum QueueMetricsTimeRange { - FourHours = 'FourHours', - OneDay = 'OneDay', - OneHour = 'OneHour', - SevenDays = 'SevenDays', - TwelveHours = 'TwelveHours' -} - -export type QueueRetentionConfig = { - __typename?: 'QueueRetentionConfig'; - completedMaxAge: Scalars['Float']; - completedMaxCount: Scalars['Float']; - failedMaxAge: Scalars['Float']; - failedMaxCount: Scalars['Float']; -}; - -export type RatioAggregateConfig = { - __typename?: 'RatioAggregateConfig'; - fieldMetadataId: Scalars['UUID']; - optionValue: Scalars['String']; -}; - -export type RecordIdentifier = { - __typename?: 'RecordIdentifier'; - id: Scalars['UUID']; - imageIdentifier?: Maybe; - labelIdentifier: Scalars['String']; -}; - -export type Relation = { - __typename?: 'Relation'; - sourceFieldMetadata: Field; - sourceObjectMetadata: Object; - targetFieldMetadata: Field; - targetObjectMetadata: Object; - type: RelationType; -}; - -/** Relation type */ -export enum RelationType { - MANY_TO_ONE = 'MANY_TO_ONE', - ONE_TO_MANY = 'ONE_TO_MANY' -} - -export type ResendEmailVerificationTokenOutput = { - __typename?: 'ResendEmailVerificationTokenOutput'; - success: Scalars['Boolean']; -}; - -export type RetryJobsResponse = { - __typename?: 'RetryJobsResponse'; - results: Array; - retriedCount: Scalars['Int']; -}; - -export type RichTextV2Body = { - __typename?: 'RichTextV2Body'; - blocknote?: Maybe; - markdown?: Maybe; -}; - -export type Role = { - __typename?: 'Role'; - agents: Array; - apiKeys: Array; - canAccessAllTools: Scalars['Boolean']; - canBeAssignedToAgents: Scalars['Boolean']; - canBeAssignedToApiKeys: Scalars['Boolean']; - canBeAssignedToUsers: Scalars['Boolean']; - canDestroyAllObjectRecords: Scalars['Boolean']; - canReadAllObjectRecords: Scalars['Boolean']; - canSoftDeleteAllObjectRecords: Scalars['Boolean']; - canUpdateAllObjectRecords: Scalars['Boolean']; - canUpdateAllSettings: Scalars['Boolean']; - description?: Maybe; - fieldPermissions?: Maybe>; - icon?: Maybe; - id: Scalars['UUID']; - isEditable: Scalars['Boolean']; - label: Scalars['String']; - objectPermissions?: Maybe>; - permissionFlags?: Maybe>; - rowLevelPermissionPredicateGroups?: Maybe>; - rowLevelPermissionPredicates?: Maybe>; - universalIdentifier?: Maybe; - workspaceMembers: Array; -}; - -export type RowLevelPermissionPredicate = { - __typename?: 'RowLevelPermissionPredicate'; - fieldMetadataId: Scalars['String']; - id: Scalars['String']; - objectMetadataId: Scalars['String']; - operand: RowLevelPermissionPredicateOperand; - positionInRowLevelPermissionPredicateGroup?: Maybe; - roleId: Scalars['String']; - rowLevelPermissionPredicateGroupId?: Maybe; - subFieldName?: Maybe; - value?: Maybe; - workspaceMemberFieldMetadataId?: Maybe; - workspaceMemberSubFieldName?: Maybe; -}; - -export type RowLevelPermissionPredicateGroup = { - __typename?: 'RowLevelPermissionPredicateGroup'; - id: Scalars['String']; - logicalOperator: RowLevelPermissionPredicateGroupLogicalOperator; - objectMetadataId: Scalars['String']; - parentRowLevelPermissionPredicateGroupId?: Maybe; - positionInRowLevelPermissionPredicateGroup?: Maybe; - roleId: Scalars['String']; -}; - -export enum RowLevelPermissionPredicateGroupLogicalOperator { - AND = 'AND', - OR = 'OR' -} - -export enum RowLevelPermissionPredicateOperand { - CONTAINS = 'CONTAINS', - DOES_NOT_CONTAIN = 'DOES_NOT_CONTAIN', - GREATER_THAN_OR_EQUAL = 'GREATER_THAN_OR_EQUAL', - IS = 'IS', - IS_AFTER = 'IS_AFTER', - IS_BEFORE = 'IS_BEFORE', - IS_EMPTY = 'IS_EMPTY', - IS_IN_FUTURE = 'IS_IN_FUTURE', - IS_IN_PAST = 'IS_IN_PAST', - IS_NOT = 'IS_NOT', - IS_NOT_EMPTY = 'IS_NOT_EMPTY', - IS_NOT_NULL = 'IS_NOT_NULL', - IS_RELATIVE = 'IS_RELATIVE', - IS_TODAY = 'IS_TODAY', - LESS_THAN_OR_EQUAL = 'LESS_THAN_OR_EQUAL', - VECTOR_SEARCH = 'VECTOR_SEARCH' -} - export type RunWorkflowVersionInput = { /** Execution result in JSON format */ payload?: InputMaybe; @@ -2430,30 +320,6 @@ export type RunWorkflowVersionOutput = { workflowRunId: Scalars['UUID']; }; -export type SsoConnection = { - __typename?: 'SSOConnection'; - id: Scalars['UUID']; - issuer: Scalars['String']; - name: Scalars['String']; - status: SsoIdentityProviderStatus; - type: IdentityProviderType; -}; - -export type SsoIdentityProvider = { - __typename?: 'SSOIdentityProvider'; - id: Scalars['UUID']; - issuer: Scalars['String']; - name: Scalars['String']; - status: SsoIdentityProviderStatus; - type: IdentityProviderType; -}; - -export enum SsoIdentityProviderStatus { - Active = 'Active', - Error = 'Error', - Inactive = 'Inactive' -} - export type SearchRecord = { __typename?: 'SearchRecord'; imageUrl?: Maybe; @@ -2483,71 +349,6 @@ export type SearchResultPageInfo = { hasNextPage: Scalars['Boolean']; }; -export type SendInvitationsOutput = { - __typename?: 'SendInvitationsOutput'; - errors: Array; - result: Array; - /** Boolean that confirms query was dispatched */ - success: Scalars['Boolean']; -}; - -export type Sentry = { - __typename?: 'Sentry'; - dsn?: Maybe; - environment?: Maybe; - release?: Maybe; -}; - -export type SetupSsoOutput = { - __typename?: 'SetupSsoOutput'; - id: Scalars['UUID']; - issuer: Scalars['String']; - name: Scalars['String']; - status: SsoIdentityProviderStatus; - type: IdentityProviderType; -}; - -export type SignUpOutput = { - __typename?: 'SignUpOutput'; - loginToken: AuthToken; - workspace: WorkspaceUrlsAndId; -}; - -export type SignedFile = { - __typename?: 'SignedFile'; - path: Scalars['String']; - token: Scalars['String']; -}; - -export type Skill = { - __typename?: 'Skill'; - applicationId?: Maybe; - content: Scalars['String']; - createdAt: Scalars['DateTime']; - description?: Maybe; - icon?: Maybe; - id: Scalars['UUID']; - isActive: Scalars['Boolean']; - isCustom: Scalars['Boolean']; - label: Scalars['String']; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; -}; - -export type StandaloneRichTextConfiguration = { - __typename?: 'StandaloneRichTextConfiguration'; - body: RichTextV2Body; - configurationType: WidgetConfigurationType; -}; - -export type StandardOverrides = { - __typename?: 'StandardOverrides'; - description?: Maybe; - icon?: Maybe; - label?: Maybe; - translations?: Maybe; -}; - export type SubmitFormStepInput = { /** Form response in JSON format */ response: Scalars['JSON']; @@ -2557,50 +358,6 @@ export type SubmitFormStepInput = { workflowRunId: Scalars['UUID']; }; -export enum SubscriptionInterval { - Month = 'Month', - Year = 'Year' -} - -export enum SubscriptionStatus { - Active = 'Active', - Canceled = 'Canceled', - Incomplete = 'Incomplete', - IncompleteExpired = 'IncompleteExpired', - PastDue = 'PastDue', - Paused = 'Paused', - Trialing = 'Trialing', - Unpaid = 'Unpaid' -} - -export type Support = { - __typename?: 'Support'; - supportDriver: SupportDriver; - supportFrontChatId?: Maybe; -}; - -export enum SupportDriver { - FRONT = 'FRONT', - NONE = 'NONE' -} - -export type SystemHealth = { - __typename?: 'SystemHealth'; - services: Array; -}; - -export type SystemHealthService = { - __typename?: 'SystemHealthService'; - id: HealthIndicatorId; - label: Scalars['String']; - status: AdminPanelHealthServiceStatus; -}; - -export type TasksConfiguration = { - __typename?: 'TasksConfiguration'; - configurationType: WidgetConfigurationType; -}; - export type TestHttpRequestInput = { /** Request body */ body?: InputMaybe; @@ -2663,11 +420,6 @@ export type TimelineCalendarEventsWithTotal = { totalNumberOfCalendarEvents: Scalars['Int']; }; -export type TimelineConfiguration = { - __typename?: 'TimelineConfiguration'; - configurationType: WidgetConfigurationType; -}; - export type TimelineThread = { __typename?: 'TimelineThread'; firstParticipant: TimelineThreadParticipant; @@ -2699,27 +451,6 @@ export type TimelineThreadsWithTotal = { totalNumberOfThreads: Scalars['Int']; }; -export type ToolIndexEntry = { - __typename?: 'ToolIndexEntry'; - category: Scalars['String']; - description: Scalars['String']; - inputSchema?: Maybe; - name: Scalars['String']; - objectName?: Maybe; -}; - -export type TransientTokenOutput = { - __typename?: 'TransientTokenOutput'; - transientToken: AuthToken; -}; - -export type TwoFactorAuthenticationMethodDto = { - __typename?: 'TwoFactorAuthenticationMethodDTO'; - status: Scalars['String']; - strategy: Scalars['String']; - twoFactorAuthenticationMethodId: Scalars['UUID']; -}; - export type UuidFilter = { eq?: InputMaybe; gt?: InputMaybe; @@ -2731,23 +462,6 @@ export type UuidFilter = { neq?: InputMaybe; }; -export type UuidFilterComparison = { - eq?: InputMaybe; - gt?: InputMaybe; - gte?: InputMaybe; - iLike?: InputMaybe; - in?: InputMaybe>; - is?: InputMaybe; - isNot?: InputMaybe; - like?: InputMaybe; - lt?: InputMaybe; - lte?: InputMaybe; - neq?: InputMaybe; - notILike?: InputMaybe; - notIn?: InputMaybe>; - notLike?: InputMaybe; -}; - export type UpdateWorkflowRunStepInput = { /** Step to update in JSON format */ step: Scalars['JSON']; @@ -2769,243 +483,6 @@ export type UpdateWorkflowVersionStepInput = { workflowVersionId: Scalars['UUID']; }; -export type UpsertRowLevelPermissionPredicatesResult = { - __typename?: 'UpsertRowLevelPermissionPredicatesResult'; - predicateGroups: Array; - predicates: Array; -}; - -export type User = { - __typename?: 'User'; - availableWorkspaces: AvailableWorkspaces; - canAccessFullAdminPanel: Scalars['Boolean']; - canImpersonate: Scalars['Boolean']; - createdAt: Scalars['DateTime']; - currentUserWorkspace?: Maybe; - currentWorkspace?: Maybe; - defaultAvatarUrl?: Maybe; - deletedAt?: Maybe; - deletedWorkspaceMembers?: Maybe>; - disabled?: Maybe; - email: Scalars['String']; - firstName: Scalars['String']; - hasPassword: Scalars['Boolean']; - id: Scalars['UUID']; - isEmailVerified: Scalars['Boolean']; - lastName: Scalars['String']; - locale: Scalars['String']; - onboardingStatus?: Maybe; - passwordHash?: Maybe; - supportUserHash?: Maybe; - updatedAt: Scalars['DateTime']; - userVars?: Maybe; - userWorkspaces: Array; - workspaceMember?: Maybe; - workspaceMembers?: Maybe>; - workspaces: Array; -}; - -export type UserEdge = { - __typename?: 'UserEdge'; - /** Cursor for this node. */ - cursor: Scalars['ConnectionCursor']; - /** The node containing the User */ - node: User; -}; - -export type UserInfo = { - __typename?: 'UserInfo'; - email: Scalars['String']; - firstName?: Maybe; - id: Scalars['UUID']; - lastName?: Maybe; -}; - -export type UserLookup = { - __typename?: 'UserLookup'; - user: UserInfo; - workspaces: Array; -}; - -export type UserWorkspace = { - __typename?: 'UserWorkspace'; - createdAt: Scalars['DateTime']; - deletedAt?: Maybe; - id: Scalars['UUID']; - locale: Scalars['String']; - objectPermissions?: Maybe>; - objectsPermissions?: Maybe>; - permissionFlags?: Maybe>; - twoFactorAuthenticationMethodSummary?: Maybe>; - updatedAt: Scalars['DateTime']; - user: User; - userId: Scalars['UUID']; -}; - -export type ValidatePasswordResetTokenOutput = { - __typename?: 'ValidatePasswordResetTokenOutput'; - email: Scalars['String']; - hasPassword: Scalars['Boolean']; - id: Scalars['UUID']; -}; - -export type VerificationRecord = { - __typename?: 'VerificationRecord'; - key: Scalars['String']; - priority?: Maybe; - type: Scalars['String']; - value: Scalars['String']; -}; - -export type VerifyEmailAndGetLoginTokenOutput = { - __typename?: 'VerifyEmailAndGetLoginTokenOutput'; - loginToken: AuthToken; - workspaceUrls: WorkspaceUrls; -}; - -export type VerifyTwoFactorAuthenticationMethodOutput = { - __typename?: 'VerifyTwoFactorAuthenticationMethodOutput'; - success: Scalars['Boolean']; -}; - -export type VersionInfo = { - __typename?: 'VersionInfo'; - currentVersion?: Maybe; - latestVersion: Scalars['String']; -}; - -export enum ViewCalendarLayout { - DAY = 'DAY', - MONTH = 'MONTH', - WEEK = 'WEEK' -} - -export type ViewConfiguration = { - __typename?: 'ViewConfiguration'; - configurationType: WidgetConfigurationType; -}; - -export enum ViewFilterGroupLogicalOperator { - AND = 'AND', - NOT = 'NOT', - OR = 'OR' -} - -export enum ViewFilterOperand { - CONTAINS = 'CONTAINS', - DOES_NOT_CONTAIN = 'DOES_NOT_CONTAIN', - GREATER_THAN_OR_EQUAL = 'GREATER_THAN_OR_EQUAL', - IS = 'IS', - IS_AFTER = 'IS_AFTER', - IS_BEFORE = 'IS_BEFORE', - IS_EMPTY = 'IS_EMPTY', - IS_IN_FUTURE = 'IS_IN_FUTURE', - IS_IN_PAST = 'IS_IN_PAST', - IS_NOT = 'IS_NOT', - IS_NOT_EMPTY = 'IS_NOT_EMPTY', - IS_NOT_NULL = 'IS_NOT_NULL', - IS_RELATIVE = 'IS_RELATIVE', - IS_TODAY = 'IS_TODAY', - LESS_THAN_OR_EQUAL = 'LESS_THAN_OR_EQUAL', - VECTOR_SEARCH = 'VECTOR_SEARCH' -} - -export enum ViewKey { - INDEX = 'INDEX' -} - -export enum ViewOpenRecordIn { - RECORD_PAGE = 'RECORD_PAGE', - SIDE_PANEL = 'SIDE_PANEL' -} - -export enum ViewSortDirection { - ASC = 'ASC', - DESC = 'DESC' -} - -export enum ViewType { - CALENDAR = 'CALENDAR', - KANBAN = 'KANBAN', - TABLE = 'TABLE' -} - -export enum ViewVisibility { - UNLISTED = 'UNLISTED', - WORKSPACE = 'WORKSPACE' -} - -export type Webhook = { - __typename?: 'Webhook'; - applicationId: Scalars['UUID']; - createdAt: Scalars['DateTime']; - deletedAt?: Maybe; - description?: Maybe; - id: Scalars['UUID']; - operations: Array; - secret: Scalars['String']; - targetUrl: Scalars['String']; - updatedAt: Scalars['DateTime']; -}; - -export type WidgetConfiguration = AggregateChartConfiguration | BarChartConfiguration | CalendarConfiguration | EmailsConfiguration | FieldConfiguration | FieldRichTextConfiguration | FieldsConfiguration | FilesConfiguration | FrontComponentConfiguration | GaugeChartConfiguration | IframeConfiguration | LineChartConfiguration | NotesConfiguration | PieChartConfiguration | StandaloneRichTextConfiguration | TasksConfiguration | TimelineConfiguration | ViewConfiguration | WorkflowConfiguration | WorkflowRunConfiguration | WorkflowVersionConfiguration; - -export enum WidgetConfigurationType { - AGGREGATE_CHART = 'AGGREGATE_CHART', - BAR_CHART = 'BAR_CHART', - CALENDAR = 'CALENDAR', - EMAILS = 'EMAILS', - FIELD = 'FIELD', - FIELDS = 'FIELDS', - FIELD_RICH_TEXT = 'FIELD_RICH_TEXT', - FILES = 'FILES', - FRONT_COMPONENT = 'FRONT_COMPONENT', - GAUGE_CHART = 'GAUGE_CHART', - IFRAME = 'IFRAME', - LINE_CHART = 'LINE_CHART', - NOTES = 'NOTES', - PIE_CHART = 'PIE_CHART', - STANDALONE_RICH_TEXT = 'STANDALONE_RICH_TEXT', - TASKS = 'TASKS', - TIMELINE = 'TIMELINE', - VIEW = 'VIEW', - WORKFLOW = 'WORKFLOW', - WORKFLOW_RUN = 'WORKFLOW_RUN', - WORKFLOW_VERSION = 'WORKFLOW_VERSION' -} - -export enum WidgetType { - CALENDAR = 'CALENDAR', - EMAILS = 'EMAILS', - FIELD = 'FIELD', - FIELDS = 'FIELDS', - FIELD_RICH_TEXT = 'FIELD_RICH_TEXT', - FILES = 'FILES', - FRONT_COMPONENT = 'FRONT_COMPONENT', - GRAPH = 'GRAPH', - IFRAME = 'IFRAME', - NOTES = 'NOTES', - STANDALONE_RICH_TEXT = 'STANDALONE_RICH_TEXT', - TASKS = 'TASKS', - TIMELINE = 'TIMELINE', - VIEW = 'VIEW', - WORKFLOW = 'WORKFLOW', - WORKFLOW_RUN = 'WORKFLOW_RUN', - WORKFLOW_VERSION = 'WORKFLOW_VERSION' -} - -export type WorkerQueueMetrics = { - __typename?: 'WorkerQueueMetrics'; - active: Scalars['Float']; - completed: Scalars['Float']; - completedData?: Maybe>; - delayed: Scalars['Float']; - failed: Scalars['Float']; - failedData?: Maybe>; - failureRate: Scalars['Float']; - waiting: Scalars['Float']; -}; - export type WorkflowAction = { __typename?: 'WorkflowAction'; id: Scalars['UUID']; @@ -3036,22 +513,12 @@ export enum WorkflowActionType { UPSERT_RECORD = 'UPSERT_RECORD' } -export type WorkflowConfiguration = { - __typename?: 'WorkflowConfiguration'; - configurationType: WidgetConfigurationType; -}; - export type WorkflowRun = { __typename?: 'WorkflowRun'; id: Scalars['UUID']; status: WorkflowRunStatusEnum; }; -export type WorkflowRunConfiguration = { - __typename?: 'WorkflowRunConfiguration'; - configurationType: WidgetConfigurationType; -}; - /** Status of the workflow run */ export enum WorkflowRunStatusEnum { COMPLETED = 'COMPLETED', @@ -3081,11 +548,6 @@ export type WorkflowStepPositionUpdateInput = { position: WorkflowStepPositionInput; }; -export type WorkflowVersionConfiguration = { - __typename?: 'WorkflowVersionConfiguration'; - configurationType: WidgetConfigurationType; -}; - export type WorkflowVersionDto = { __typename?: 'WorkflowVersionDTO'; createdAt: Scalars['String']; @@ -3104,156 +566,6 @@ export type WorkflowVersionStepChanges = { triggerDiff?: Maybe; }; -export type Workspace = { - __typename?: 'Workspace'; - activationStatus: WorkspaceActivationStatus; - aiAdditionalInstructions?: Maybe; - allowImpersonation: Scalars['Boolean']; - billingEntitlements: Array; - billingSubscriptions: Array; - createdAt: Scalars['DateTime']; - currentBillingSubscription?: Maybe; - customDomain?: Maybe; - databaseSchema: Scalars['String']; - databaseUrl: Scalars['String']; - defaultRole?: Maybe; - deletedAt?: Maybe; - displayName?: Maybe; - editableProfileFields?: Maybe>; - eventLogRetentionDays: Scalars['Float']; - fastModel: Scalars['String']; - featureFlags?: Maybe>; - hasValidEnterpriseKey: Scalars['Boolean']; - id: Scalars['UUID']; - inviteHash?: Maybe; - isCustomDomainEnabled: Scalars['Boolean']; - isGoogleAuthBypassEnabled: Scalars['Boolean']; - isGoogleAuthEnabled: Scalars['Boolean']; - isMicrosoftAuthBypassEnabled: Scalars['Boolean']; - isMicrosoftAuthEnabled: Scalars['Boolean']; - isPasswordAuthBypassEnabled: Scalars['Boolean']; - isPasswordAuthEnabled: Scalars['Boolean']; - isPublicInviteLinkEnabled: Scalars['Boolean']; - isTwoFactorAuthenticationEnforced: Scalars['Boolean']; - logo?: Maybe; - metadataVersion: Scalars['Float']; - routerModel: Scalars['String']; - smartModel: Scalars['String']; - subdomain: Scalars['String']; - trashRetentionDays: Scalars['Float']; - updatedAt: Scalars['DateTime']; - version?: Maybe; - viewFields?: Maybe>; - viewFilterGroups?: Maybe>; - viewFilters?: Maybe>; - viewGroups?: Maybe>; - viewSorts?: Maybe>; - views?: Maybe>; - workspaceCustomApplication?: Maybe; - workspaceCustomApplicationId: Scalars['String']; - workspaceMembersCount?: Maybe; - workspaceUrls: WorkspaceUrls; -}; - -export enum WorkspaceActivationStatus { - ACTIVE = 'ACTIVE', - INACTIVE = 'INACTIVE', - ONGOING_CREATION = 'ONGOING_CREATION', - PENDING_CREATION = 'PENDING_CREATION', - SUSPENDED = 'SUSPENDED' -} - -export type WorkspaceEdge = { - __typename?: 'WorkspaceEdge'; - /** Cursor for this node. */ - cursor: Scalars['ConnectionCursor']; - /** The node containing the Workspace */ - node: Workspace; -}; - -export type WorkspaceInfo = { - __typename?: 'WorkspaceInfo'; - allowImpersonation: Scalars['Boolean']; - featureFlags: Array; - id: Scalars['UUID']; - logo?: Maybe; - name: Scalars['String']; - totalUsers: Scalars['Float']; - users: Array; - workspaceUrls: WorkspaceUrls; -}; - -export type WorkspaceInvitation = { - __typename?: 'WorkspaceInvitation'; - email: Scalars['String']; - expiresAt: Scalars['DateTime']; - id: Scalars['UUID']; -}; - -export type WorkspaceInviteHashValidOutput = { - __typename?: 'WorkspaceInviteHashValidOutput'; - isValid: Scalars['Boolean']; -}; - -export type WorkspaceMember = { - __typename?: 'WorkspaceMember'; - avatarUrl?: Maybe; - calendarStartDay?: Maybe; - colorScheme: Scalars['String']; - dateFormat?: Maybe; - id: Scalars['UUID']; - locale?: Maybe; - name: FullName; - numberFormat?: Maybe; - roles?: Maybe>; - timeFormat?: Maybe; - timeZone?: Maybe; - userEmail: Scalars['String']; - userWorkspaceId?: Maybe; -}; - -/** Date format as Month first, Day first, Year first or system as default */ -export enum WorkspaceMemberDateFormatEnum { - DAY_FIRST = 'DAY_FIRST', - MONTH_FIRST = 'MONTH_FIRST', - SYSTEM = 'SYSTEM', - YEAR_FIRST = 'YEAR_FIRST' -} - -/** Number format for displaying numbers */ -export enum WorkspaceMemberNumberFormatEnum { - APOSTROPHE_AND_DOT = 'APOSTROPHE_AND_DOT', - COMMAS_AND_DOT = 'COMMAS_AND_DOT', - DOTS_AND_COMMA = 'DOTS_AND_COMMA', - SPACES_AND_COMMA = 'SPACES_AND_COMMA', - SYSTEM = 'SYSTEM' -} - -/** Time time as Military, Standard or system as default */ -export enum WorkspaceMemberTimeFormatEnum { - HOUR_12 = 'HOUR_12', - HOUR_24 = 'HOUR_24', - SYSTEM = 'SYSTEM' -} - -export type WorkspaceNameAndId = { - __typename?: 'WorkspaceNameAndId'; - displayName?: Maybe; - id: Scalars['UUID']; -}; - -export type WorkspaceUrls = { - __typename?: 'WorkspaceUrls'; - customUrl?: Maybe; - subdomainUrl: Scalars['String']; -}; - -export type WorkspaceUrlsAndId = { - __typename?: 'WorkspaceUrlsAndId'; - id: Scalars['UUID']; - workspaceUrls: WorkspaceUrls; -}; - export type TimelineCalendarEventFragmentFragment = { __typename?: 'TimelineCalendarEvent', id: any, title: string, description: string, location: string, startsAt: string, endsAt: string, isFullDay: boolean, visibility: CalendarChannelVisibility, participants: Array<{ __typename?: 'TimelineCalendarEventParticipant', personId?: any | null, workspaceMemberId?: any | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }> }; export type TimelineCalendarEventParticipantFragmentFragment = { __typename?: 'TimelineCalendarEventParticipant', personId?: any | null, workspaceMemberId?: any | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }; diff --git a/packages/twenty-front/src/hooks/__tests__/usePageChangeEffectNavigateLocation.test.ts b/packages/twenty-front/src/hooks/__tests__/usePageChangeEffectNavigateLocation.test.ts index e269a0f6f7..e2b122f5ad 100644 --- a/packages/twenty-front/src/hooks/__tests__/usePageChangeEffectNavigateLocation.test.ts +++ b/packages/twenty-front/src/hooks/__tests__/usePageChangeEffectNavigateLocation.test.ts @@ -7,7 +7,7 @@ import { useRecoilValue } from 'recoil'; import { AppPath, SettingsPath } from 'twenty-shared/types'; import { getSettingsPath } from 'twenty-shared/utils'; -import { OnboardingStatus } from '~/generated/graphql'; +import { OnboardingStatus } from '~/generated-metadata/graphql'; import { useIsCurrentLocationOnAWorkspace } from '@/domain-manager/hooks/useIsCurrentLocationOnAWorkspace'; import { usePageChangeEffectNavigateLocation } from '~/hooks/usePageChangeEffectNavigateLocation'; diff --git a/packages/twenty-front/src/hooks/usePageChangeEffectNavigateLocation.ts b/packages/twenty-front/src/hooks/usePageChangeEffectNavigateLocation.ts index dbd693ea9f..b72462db85 100644 --- a/packages/twenty-front/src/hooks/usePageChangeEffectNavigateLocation.ts +++ b/packages/twenty-front/src/hooks/usePageChangeEffectNavigateLocation.ts @@ -11,7 +11,7 @@ import { useRecoilValue } from 'recoil'; import { AppPath, SettingsPath } from 'twenty-shared/types'; import { isDefined } from 'twenty-shared/utils'; import { WorkspaceActivationStatus } from 'twenty-shared/workspace'; -import { OnboardingStatus } from '~/generated/graphql'; +import { OnboardingStatus } from '~/generated-metadata/graphql'; import { isMatchingLocation } from '~/utils/isMatchingLocation'; export const usePageChangeEffectNavigateLocation = () => { diff --git a/packages/twenty-front/src/modules/action-menu/actions/record-actions/constants/DefaultRecordActionsConfig.tsx b/packages/twenty-front/src/modules/action-menu/actions/record-actions/constants/DefaultRecordActionsConfig.tsx index 01589207c7..b9705ec579 100644 --- a/packages/twenty-front/src/modules/action-menu/actions/record-actions/constants/DefaultRecordActionsConfig.tsx +++ b/packages/twenty-front/src/modules/action-menu/actions/record-actions/constants/DefaultRecordActionsConfig.tsx @@ -66,8 +66,10 @@ import { } from 'twenty-ui/display'; import { isDefined } from 'twenty-shared/utils'; -import { PermissionFlagType } from '~/generated-metadata/graphql'; -import { FeatureFlagKey } from '~/generated/graphql'; +import { + PermissionFlagType, + FeatureFlagKey, +} from '~/generated-metadata/graphql'; export const DEFAULT_RECORD_ACTIONS_CONFIG: Record< | NoSelectionRecordActionKeys diff --git a/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/components/AddToFavoritesSingleRecordAction.tsx b/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/components/AddToFavoritesSingleRecordAction.tsx index bfbc5ba636..93a36a1528 100644 --- a/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/components/AddToFavoritesSingleRecordAction.tsx +++ b/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/components/AddToFavoritesSingleRecordAction.tsx @@ -7,7 +7,7 @@ import { recordStoreFamilyState } from '@/object-record/record-store/states/reco import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled'; import { useRecoilValue } from 'recoil'; import { isDefined } from 'twenty-shared/utils'; -import { FeatureFlagKey } from '~/generated/graphql'; +import { FeatureFlagKey } from '~/generated-metadata/graphql'; export const AddToFavoritesSingleRecordAction = () => { const { objectMetadataItem } = useContextStoreObjectMetadataItemOrThrow(); diff --git a/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/components/DeleteSingleRecordAction.tsx b/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/components/DeleteSingleRecordAction.tsx index 2c78c7d8b0..32b8bb74bf 100644 --- a/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/components/DeleteSingleRecordAction.tsx +++ b/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/components/DeleteSingleRecordAction.tsx @@ -10,7 +10,7 @@ import { useRecordIndexIdFromCurrentContextStore } from '@/object-record/record- import { useResetTableRowSelection } from '@/object-record/record-table/hooks/internal/useResetTableRowSelection'; import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled'; import { isDefined } from 'twenty-shared/utils'; -import { FeatureFlagKey } from '~/generated/graphql'; +import { FeatureFlagKey } from '~/generated-metadata/graphql'; export const DeleteSingleRecordAction = () => { const { recordIndexId, objectMetadataItem } = diff --git a/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/components/RemoveFromFavoritesSingleRecordAction.tsx b/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/components/RemoveFromFavoritesSingleRecordAction.tsx index 30ee938443..afe61abbe4 100644 --- a/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/components/RemoveFromFavoritesSingleRecordAction.tsx +++ b/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/components/RemoveFromFavoritesSingleRecordAction.tsx @@ -7,7 +7,7 @@ import { useDeleteNavigationMenuItem } from '@/navigation-menu-item/hooks/useDel import { usePrefetchedNavigationMenuItemsData } from '@/navigation-menu-item/hooks/usePrefetchedNavigationMenuItemsData'; import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled'; import { isDefined } from 'twenty-shared/utils'; -import { FeatureFlagKey } from '~/generated/graphql'; +import { FeatureFlagKey } from '~/generated-metadata/graphql'; export const RemoveFromFavoritesSingleRecordAction = () => { const recordId = useSelectedRecordIdOrThrow(); diff --git a/packages/twenty-front/src/modules/action-menu/actions/record-agnostic-actions/hooks/useRecordAgnosticActions.ts b/packages/twenty-front/src/modules/action-menu/actions/record-agnostic-actions/hooks/useRecordAgnosticActions.ts index ad972ec128..8c59c27692 100644 --- a/packages/twenty-front/src/modules/action-menu/actions/record-agnostic-actions/hooks/useRecordAgnosticActions.ts +++ b/packages/twenty-front/src/modules/action-menu/actions/record-agnostic-actions/hooks/useRecordAgnosticActions.ts @@ -2,7 +2,7 @@ import { RECORD_AGNOSTIC_ACTIONS_CONFIG } from '@/action-menu/actions/record-agn import { RecordAgnosticActionsKeys } from '@/action-menu/actions/record-agnostic-actions/types/RecordAgnosticActionsKeys'; import { type ActionConfig } from '@/action-menu/actions/types/ActionConfig'; import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled'; -import { FeatureFlagKey } from '~/generated/graphql'; +import { FeatureFlagKey } from '~/generated-metadata/graphql'; export const useRecordAgnosticActions = () => { const isAiEnabled = useIsFeatureEnabled(FeatureFlagKey.IS_AI_ENABLED); diff --git a/packages/twenty-front/src/modules/action-menu/actions/types/ShouldBeRegisteredFunctionParams.ts b/packages/twenty-front/src/modules/action-menu/actions/types/ShouldBeRegisteredFunctionParams.ts index 3f9cb59a9d..c58696275d 100644 --- a/packages/twenty-front/src/modules/action-menu/actions/types/ShouldBeRegisteredFunctionParams.ts +++ b/packages/twenty-front/src/modules/action-menu/actions/types/ShouldBeRegisteredFunctionParams.ts @@ -4,7 +4,7 @@ import { type RecordFilter } from '@/object-record/record-filter/types/RecordFil import { type ObjectRecord } from '@/object-record/types/ObjectRecord'; import { type WorkflowWithCurrentVersion } from '@/workflow/types/Workflow'; import { type ObjectPermissions } from 'twenty-shared/types'; -import { type FeatureFlagKey } from '~/generated/graphql'; +import { type FeatureFlagKey } from '~/generated-metadata/graphql'; export type ShouldBeRegisteredFunctionParams = { objectMetadataItem?: ObjectMetadataItem; diff --git a/packages/twenty-front/src/modules/action-menu/hooks/useShouldActionBeRegisteredParams.ts b/packages/twenty-front/src/modules/action-menu/hooks/useShouldActionBeRegisteredParams.ts index 34e9966240..2bc3746929 100644 --- a/packages/twenty-front/src/modules/action-menu/hooks/useShouldActionBeRegisteredParams.ts +++ b/packages/twenty-front/src/modules/action-menu/hooks/useShouldActionBeRegisteredParams.ts @@ -20,7 +20,7 @@ import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled'; import { useContext, useMemo } from 'react'; import { useRecoilCallback, useRecoilValue } from 'recoil'; import { isDefined } from 'twenty-shared/utils'; -import { FeatureFlagKey } from '~/generated/graphql'; +import { FeatureFlagKey } from '~/generated-metadata/graphql'; export const useShouldActionBeRegisteredParams = ({ objectMetadataItem, diff --git a/packages/twenty-front/src/modules/activities/calendar/components/CalendarEventParticipantsAvatarGroup.tsx b/packages/twenty-front/src/modules/activities/calendar/components/CalendarEventParticipantsAvatarGroup.tsx index 770ee9ea72..a8ff11d646 100644 --- a/packages/twenty-front/src/modules/activities/calendar/components/CalendarEventParticipantsAvatarGroup.tsx +++ b/packages/twenty-front/src/modules/activities/calendar/components/CalendarEventParticipantsAvatarGroup.tsx @@ -2,7 +2,7 @@ import { type CalendarEventParticipant } from '@/activities/calendar/types/Calen import { isTimelineCalendarEventParticipant } from '@/activities/calendar/types/guards/IsTimelineCalendarEventParticipant'; import { isDefined } from 'twenty-shared/utils'; import { Avatar, AvatarGroup } from 'twenty-ui/display'; -import { type TimelineCalendarEventParticipant } from '~/generated-metadata/graphql'; +import { type TimelineCalendarEventParticipant } from '~/generated/graphql'; type CalendarEventParticipantsAvatarGroupProps = { participants: CalendarEventParticipant[] | TimelineCalendarEventParticipant[]; diff --git a/packages/twenty-front/src/modules/activities/calendar/components/CalendarEventRow.tsx b/packages/twenty-front/src/modules/activities/calendar/components/CalendarEventRow.tsx index 71e1218fe0..9e72fede5a 100644 --- a/packages/twenty-front/src/modules/activities/calendar/components/CalendarEventRow.tsx +++ b/packages/twenty-front/src/modules/activities/calendar/components/CalendarEventRow.tsx @@ -3,6 +3,10 @@ import styled from '@emotion/styled'; import { t } from '@lingui/core/macro'; import { format } from 'date-fns'; import { useRecoilValue } from 'recoil'; +import { + CalendarChannelVisibility, + type TimelineCalendarEvent, +} from '~/generated/graphql'; import { CalendarEventNotSharedContent } from '@/activities/calendar/components/CalendarEventNotSharedContent'; import { CalendarEventParticipantsAvatarGroup } from '@/activities/calendar/components/CalendarEventParticipantsAvatarGroup'; @@ -12,10 +16,6 @@ import { hasCalendarEventEnded } from '@/activities/calendar/utils/hasCalendarEv import { currentWorkspaceMemberState } from '@/auth/states/currentWorkspaceMemberState'; import { useOpenCalendarEventInCommandMenu } from '@/command-menu/hooks/useOpenCalendarEventInCommandMenu'; import { IconArrowRight } from 'twenty-ui/display'; -import { - CalendarChannelVisibility, - type TimelineCalendarEvent, -} from '~/generated-metadata/graphql'; type CalendarEventRowProps = { calendarEvent: TimelineCalendarEvent; diff --git a/packages/twenty-front/src/modules/activities/calendar/components/__stories__/Calendar.stories.tsx b/packages/twenty-front/src/modules/activities/calendar/components/__stories__/Calendar.stories.tsx index 1b25109cf5..d1c6e08681 100644 --- a/packages/twenty-front/src/modules/activities/calendar/components/__stories__/Calendar.stories.tsx +++ b/packages/twenty-front/src/modules/activities/calendar/components/__stories__/Calendar.stories.tsx @@ -7,7 +7,7 @@ import { getTimelineCalendarEventsFromCompanyId } from '@/activities/calendar/gr import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular'; import { LayoutRenderingProvider } from '@/ui/layout/contexts/LayoutRenderingContext'; import { ComponentDecorator } from 'twenty-ui/testing'; -import { PageLayoutType } from '~/generated/graphql'; +import { PageLayoutType } from '~/generated-metadata/graphql'; import { ObjectMetadataItemsDecorator } from '~/testing/decorators/ObjectMetadataItemsDecorator'; import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator'; import { graphqlMocks } from '~/testing/graphqlMocks'; diff --git a/packages/twenty-front/src/modules/activities/calendar/types/guards/IsTimelineCalendarEventParticipant.ts b/packages/twenty-front/src/modules/activities/calendar/types/guards/IsTimelineCalendarEventParticipant.ts index 58d35384e4..282a27276a 100644 --- a/packages/twenty-front/src/modules/activities/calendar/types/guards/IsTimelineCalendarEventParticipant.ts +++ b/packages/twenty-front/src/modules/activities/calendar/types/guards/IsTimelineCalendarEventParticipant.ts @@ -1,5 +1,5 @@ import { type CalendarEventParticipant } from '@/activities/calendar/types/CalendarEventParticipant'; -import { type TimelineCalendarEventParticipant } from '~/generated-metadata/graphql'; +import { type TimelineCalendarEventParticipant } from '~/generated/graphql'; export const isTimelineCalendarEventParticipant = ( participant: CalendarEventParticipant | TimelineCalendarEventParticipant, diff --git a/packages/twenty-front/src/modules/activities/components/ActivityRichTextEditor.tsx b/packages/twenty-front/src/modules/activities/components/ActivityRichTextEditor.tsx index db0f29f3fb..eb69a2c820 100644 --- a/packages/twenty-front/src/modules/activities/components/ActivityRichTextEditor.tsx +++ b/packages/twenty-front/src/modules/activities/components/ActivityRichTextEditor.tsx @@ -42,7 +42,7 @@ import '@blocknote/mantine/style.css'; import { useCreateBlockNote } from '@blocknote/react'; import '@blocknote/react/style.css'; import { isDefined } from 'twenty-shared/utils'; -import { FeatureFlagKey } from '~/generated/graphql'; +import { FeatureFlagKey } from '~/generated-metadata/graphql'; type ActivityRichTextEditorProps = { activityId: string; diff --git a/packages/twenty-front/src/modules/activities/files/components/AttachmentList.tsx b/packages/twenty-front/src/modules/activities/files/components/AttachmentList.tsx index 2c80022b6b..59b22ebaca 100644 --- a/packages/twenty-front/src/modules/activities/files/components/AttachmentList.tsx +++ b/packages/twenty-front/src/modules/activities/files/components/AttachmentList.tsx @@ -20,8 +20,10 @@ import { ScrollWrapper } from '@/ui/utilities/scroll/components/ScrollWrapper'; import { assertIsDefinedOrThrow } from 'twenty-shared/utils'; import { IconDownload, IconX } from 'twenty-ui/display'; import { IconButton } from 'twenty-ui/input'; -import { PermissionFlagType } from '~/generated-metadata/graphql'; -import { FeatureFlagKey } from '~/generated/graphql'; +import { + PermissionFlagType, + FeatureFlagKey, +} from '~/generated-metadata/graphql'; import { AttachmentRow } from './AttachmentRow'; const DocumentViewer = lazy(() => diff --git a/packages/twenty-front/src/modules/activities/files/components/AttachmentRow.tsx b/packages/twenty-front/src/modules/activities/files/components/AttachmentRow.tsx index aa9ae7b7c8..bbdf40cd34 100644 --- a/packages/twenty-front/src/modules/activities/files/components/AttachmentRow.tsx +++ b/packages/twenty-front/src/modules/activities/files/components/AttachmentRow.tsx @@ -22,8 +22,10 @@ import { useHasPermissionFlag } from '@/settings/roles/hooks/useHasPermissionFla import { t } from '@lingui/core/macro'; import { IconCalendar, OverflowingTextWithTooltip } from 'twenty-ui/display'; import { isNavigationModifierPressed } from 'twenty-ui/utilities'; -import { PermissionFlagType } from '~/generated-metadata/graphql'; -import { FeatureFlagKey } from '~/generated/graphql'; +import { + PermissionFlagType, + FeatureFlagKey, +} from '~/generated-metadata/graphql'; import { formatToHumanReadableDate } from '~/utils/date-utils'; import { getFileNameAndExtension } from '~/utils/file/getFileNameAndExtension'; diff --git a/packages/twenty-front/src/modules/activities/files/hooks/useAttachments.tsx b/packages/twenty-front/src/modules/activities/files/hooks/useAttachments.tsx index 848bf8b9e5..5b77b8d4f4 100644 --- a/packages/twenty-front/src/modules/activities/files/hooks/useAttachments.tsx +++ b/packages/twenty-front/src/modules/activities/files/hooks/useAttachments.tsx @@ -4,7 +4,7 @@ import { getActivityTargetObjectFieldIdName } from '@/activities/utils/getActivi import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular'; import { useFindManyRecords } from '@/object-record/hooks/useFindManyRecords'; import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled'; -import { FeatureFlagKey } from '~/generated/graphql'; +import { FeatureFlagKey } from '~/generated-metadata/graphql'; export const useAttachments = (targetableObject: ActivityTargetableObject) => { const isAttachmentMigrated = useIsFeatureEnabled( diff --git a/packages/twenty-front/src/modules/activities/files/hooks/useUploadAttachmentFile.tsx b/packages/twenty-front/src/modules/activities/files/hooks/useUploadAttachmentFile.tsx index 6dd05ecd8c..fddf7930d6 100644 --- a/packages/twenty-front/src/modules/activities/files/hooks/useUploadAttachmentFile.tsx +++ b/packages/twenty-front/src/modules/activities/files/hooks/useUploadAttachmentFile.tsx @@ -13,8 +13,9 @@ import { FileFolder, useUploadFileMutation, useUploadFilesFieldFileMutation, + FeatureFlagKey, + FieldMetadataType, } from '~/generated-metadata/graphql'; -import { FeatureFlagKey, FieldMetadataType } from '~/generated/graphql'; export const useUploadAttachmentFile = () => { const coreClient = useApolloCoreClient(); diff --git a/packages/twenty-front/src/modules/activities/hooks/useActivityTargetsForTargetableObjects.ts b/packages/twenty-front/src/modules/activities/hooks/useActivityTargetsForTargetableObjects.ts index 1e9ff0e4ba..85ec4f6882 100644 --- a/packages/twenty-front/src/modules/activities/hooks/useActivityTargetsForTargetableObjects.ts +++ b/packages/twenty-front/src/modules/activities/hooks/useActivityTargetsForTargetableObjects.ts @@ -12,7 +12,7 @@ import { type ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataI import { useFindManyRecords } from '@/object-record/hooks/useFindManyRecords'; import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled'; -import { FeatureFlagKey } from '~/generated/graphql'; +import { FeatureFlagKey } from '~/generated-metadata/graphql'; export const useActivityTargetsForTargetableObjects = ({ objectNameSingular, diff --git a/packages/twenty-front/src/modules/activities/hooks/usePrepareFindManyActivitiesQuery.ts b/packages/twenty-front/src/modules/activities/hooks/usePrepareFindManyActivitiesQuery.ts index f34cb2684f..8915d56c5f 100644 --- a/packages/twenty-front/src/modules/activities/hooks/usePrepareFindManyActivitiesQuery.ts +++ b/packages/twenty-front/src/modules/activities/hooks/usePrepareFindManyActivitiesQuery.ts @@ -15,7 +15,7 @@ import { useObjectPermissions } from '@/object-record/hooks/useObjectPermissions import { type ObjectRecord } from '@/object-record/types/ObjectRecord'; import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled'; import { isDefined } from 'twenty-shared/utils'; -import { FeatureFlagKey } from '~/generated/graphql'; +import { FeatureFlagKey } from '~/generated-metadata/graphql'; import { sortByAscString } from '~/utils/array/sortByAscString'; export const usePrepareFindManyActivitiesQuery = ({ diff --git a/packages/twenty-front/src/modules/activities/inline-cell/hooks/useUpdateActivityTargetFromCell.ts b/packages/twenty-front/src/modules/activities/inline-cell/hooks/useUpdateActivityTargetFromCell.ts index 3cefaeeca6..301dabc7ea 100644 --- a/packages/twenty-front/src/modules/activities/inline-cell/hooks/useUpdateActivityTargetFromCell.ts +++ b/packages/twenty-front/src/modules/activities/inline-cell/hooks/useUpdateActivityTargetFromCell.ts @@ -15,7 +15,7 @@ import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled'; import { useRecoilCallback, useSetRecoilState } from 'recoil'; import { isDefined } from 'twenty-shared/utils'; import { v4 } from 'uuid'; -import { FeatureFlagKey } from '~/generated/graphql'; +import { FeatureFlagKey } from '~/generated-metadata/graphql'; type UpdateActivityTargetFromCellProps = { recordPickerInstanceId: string; diff --git a/packages/twenty-front/src/modules/activities/timeline-activities/components/__stories__/TimelineActivities.stories.tsx b/packages/twenty-front/src/modules/activities/timeline-activities/components/__stories__/TimelineActivities.stories.tsx index 46ae711ab7..abc643e76e 100644 --- a/packages/twenty-front/src/modules/activities/timeline-activities/components/__stories__/TimelineActivities.stories.tsx +++ b/packages/twenty-front/src/modules/activities/timeline-activities/components/__stories__/TimelineActivities.stories.tsx @@ -6,7 +6,7 @@ import { TimelineActivityContext } from '@/activities/timeline-activities/contex import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular'; import { LayoutRenderingProvider } from '@/ui/layout/contexts/LayoutRenderingContext'; import { ComponentDecorator } from 'twenty-ui/testing'; -import { PageLayoutType } from '~/generated/graphql'; +import { PageLayoutType } from '~/generated-metadata/graphql'; import { ObjectMetadataItemsDecorator } from '~/testing/decorators/ObjectMetadataItemsDecorator'; import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator'; import { mockedTimelineActivities } from '~/testing/mock-data/timeline-activities'; diff --git a/packages/twenty-front/src/modules/activities/timeline-activities/types/TimelineActivity.ts b/packages/twenty-front/src/modules/activities/timeline-activities/types/TimelineActivity.ts index 8f0beb6df9..96cc1bc0ce 100644 --- a/packages/twenty-front/src/modules/activities/timeline-activities/types/TimelineActivity.ts +++ b/packages/twenty-front/src/modules/activities/timeline-activities/types/TimelineActivity.ts @@ -1,5 +1,5 @@ import { isDefined } from 'twenty-shared/utils'; -import { type WorkspaceMember } from '~/generated/graphql'; +import { type WorkspaceMember } from '~/generated-metadata/graphql'; export type TimelineActivity = { id: string; diff --git a/packages/twenty-front/src/modules/ai/components/AgentChatProvider.tsx b/packages/twenty-front/src/modules/ai/components/AgentChatProvider.tsx index ac5810f849..c482a5c978 100644 --- a/packages/twenty-front/src/modules/ai/components/AgentChatProvider.tsx +++ b/packages/twenty-front/src/modules/ai/components/AgentChatProvider.tsx @@ -4,7 +4,7 @@ import { useAgentChat } from '@/ai/hooks/useAgentChat'; import { useAgentChatData } from '@/ai/hooks/useAgentChatData'; import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled'; import { Suspense } from 'react'; -import { FeatureFlagKey } from '~/generated/graphql'; +import { FeatureFlagKey } from '~/generated-metadata/graphql'; const AgentChatProviderContent = ({ children, diff --git a/packages/twenty-front/src/modules/ai/utils/mapDBMessagesToUIMessages.ts b/packages/twenty-front/src/modules/ai/utils/mapDBMessagesToUIMessages.ts index aaf65b4eb0..0d8395b44f 100644 --- a/packages/twenty-front/src/modules/ai/utils/mapDBMessagesToUIMessages.ts +++ b/packages/twenty-front/src/modules/ai/utils/mapDBMessagesToUIMessages.ts @@ -1,6 +1,6 @@ import { mapDBPartToUIMessagePart } from '@/ai/utils/mapDBPartToUIMessagePart'; import { type ExtendedUIMessage } from 'twenty-shared/ai'; -import { type AgentMessage } from '~/generated/graphql'; +import { type AgentMessage } from '~/generated-metadata/graphql'; export const mapDBMessagesToUIMessages = ( dbMessages: AgentMessage[], diff --git a/packages/twenty-front/src/modules/ai/utils/mapDBPartToUIMessagePart.ts b/packages/twenty-front/src/modules/ai/utils/mapDBPartToUIMessagePart.ts index 5bb6d60a0a..ccef19433f 100644 --- a/packages/twenty-front/src/modules/ai/utils/mapDBPartToUIMessagePart.ts +++ b/packages/twenty-front/src/modules/ai/utils/mapDBPartToUIMessagePart.ts @@ -1,6 +1,6 @@ import { type ReasoningUIPart, type ToolUIPart } from 'ai'; import { type ExtendedUIMessagePart } from 'twenty-shared/ai'; -import { type AgentMessagePart } from '~/generated/graphql'; +import { type AgentMessagePart } from '~/generated-metadata/graphql'; export const mapDBPartToUIMessagePart = ( part: AgentMessagePart, diff --git a/packages/twenty-front/src/modules/apollo/services/__tests__/apollo.factory.test.ts b/packages/twenty-front/src/modules/apollo/services/__tests__/apollo.factory.test.ts index 45d5c586b8..e60c23cfd1 100644 --- a/packages/twenty-front/src/modules/apollo/services/__tests__/apollo.factory.test.ts +++ b/packages/twenty-front/src/modules/apollo/services/__tests__/apollo.factory.test.ts @@ -5,7 +5,7 @@ import { DEFAULT_FAST_MODEL } from '@/ai/constants/DefaultFastModel'; import { DEFAULT_SMART_MODEL } from '@/ai/constants/DefaultSmartModel'; import { ApolloFactory, type Options } from '@/apollo/services/apollo.factory'; import { CUSTOM_WORKSPACE_APPLICATION_MOCK } from '@/object-metadata/hooks/__tests__/constants/CustomWorkspaceApplicationMock.test.constant'; -import { WorkspaceActivationStatus } from '~/generated/graphql'; +import { WorkspaceActivationStatus } from '~/generated-metadata/graphql'; enableFetchMocks(); diff --git a/packages/twenty-front/src/modules/apollo/services/apollo.factory.ts b/packages/twenty-front/src/modules/apollo/services/apollo.factory.ts index 02b934c907..8a0c5d29ff 100644 --- a/packages/twenty-front/src/modules/apollo/services/apollo.factory.ts +++ b/packages/twenty-front/src/modules/apollo/services/apollo.factory.ts @@ -18,7 +18,7 @@ import { createUploadLink } from 'apollo-upload-client'; import { renewToken } from '@/auth/services/AuthService'; import { type CurrentWorkspaceMember } from '@/auth/states/currentWorkspaceMemberState'; import { type CurrentWorkspace } from '@/auth/states/currentWorkspaceState'; -import { type AuthTokenPair } from '~/generated/graphql'; +import { type AuthTokenPair } from '~/generated-metadata/graphql'; import { logDebug } from '~/utils/logDebug'; import { REST_API_BASE_URL } from '@/apollo/constant/rest-api-base-url'; diff --git a/packages/twenty-front/src/modules/apollo/utils/getTokenPair.ts b/packages/twenty-front/src/modules/apollo/utils/getTokenPair.ts index 564caa4991..8a213e655f 100644 --- a/packages/twenty-front/src/modules/apollo/utils/getTokenPair.ts +++ b/packages/twenty-front/src/modules/apollo/utils/getTokenPair.ts @@ -1,5 +1,5 @@ import { isDefined } from 'twenty-shared/utils'; -import { type AuthTokenPair } from '~/generated/graphql'; +import { type AuthTokenPair } from '~/generated-metadata/graphql'; import { cookieStorage } from '~/utils/cookie-storage'; import { isValidAuthTokenPair } from './isValidAuthTokenPair'; diff --git a/packages/twenty-front/src/modules/apollo/utils/isValidAuthTokenPair.ts b/packages/twenty-front/src/modules/apollo/utils/isValidAuthTokenPair.ts index 43896d19c6..f9d742bb93 100644 --- a/packages/twenty-front/src/modules/apollo/utils/isValidAuthTokenPair.ts +++ b/packages/twenty-front/src/modules/apollo/utils/isValidAuthTokenPair.ts @@ -1,4 +1,4 @@ -import { type AuthTokenPair } from '~/generated/graphql'; +import { type AuthTokenPair } from '~/generated-metadata/graphql'; export const isValidAuthTokenPair = ( tokenPair: any, diff --git a/packages/twenty-front/src/modules/app/components/SettingsRoutes.tsx b/packages/twenty-front/src/modules/app/components/SettingsRoutes.tsx index 91bb70e77f..e26ca00539 100644 --- a/packages/twenty-front/src/modules/app/components/SettingsRoutes.tsx +++ b/packages/twenty-front/src/modules/app/components/SettingsRoutes.tsx @@ -5,7 +5,10 @@ import { SettingsProtectedRouteWrapper } from '@/settings/components/SettingsPro import { SettingsSkeletonLoader } from '@/settings/components/SettingsSkeletonLoader'; import { SettingPublicDomain } from '@/settings/domains/components/SettingPublicDomain'; import { SettingsPath } from 'twenty-shared/types'; -import { FeatureFlagKey, PermissionFlagType } from '~/generated/graphql'; +import { + FeatureFlagKey, + PermissionFlagType, +} from '~/generated-metadata/graphql'; const SettingsGraphQLPlayground = lazy(() => import( diff --git a/packages/twenty-front/src/modules/auth/hooks/__tests__/useAuth.test.tsx b/packages/twenty-front/src/modules/auth/hooks/__tests__/useAuth.test.tsx index 78e0afc9b5..6a0bcacd7c 100644 --- a/packages/twenty-front/src/modules/auth/hooks/__tests__/useAuth.test.tsx +++ b/packages/twenty-front/src/modules/auth/hooks/__tests__/useAuth.test.tsx @@ -21,7 +21,7 @@ import { isMultiWorkspaceEnabledState } from '@/client-config/states/isMultiWork import { SnackBarComponentInstanceContext } from '@/ui/feedback/snack-bar-manager/contexts/SnackBarComponentInstanceContext'; import { renderHook } from '@testing-library/react'; import { iconsState } from 'twenty-ui/display'; -import { SupportDriver } from '~/generated/graphql'; +import { SupportDriver } from '~/generated-metadata/graphql'; const redirectSpy = jest.fn(); diff --git a/packages/twenty-front/src/modules/auth/hooks/useAuth.ts b/packages/twenty-front/src/modules/auth/hooks/useAuth.ts index d754f082ef..6517ae5823 100644 --- a/packages/twenty-front/src/modules/auth/hooks/useAuth.ts +++ b/packages/twenty-front/src/modules/auth/hooks/useAuth.ts @@ -24,6 +24,7 @@ import { useVerifyEmailAndGetLoginTokenMutation, useVerifyEmailAndGetWorkspaceAgnosticTokenMutation, type AuthTokenPair, + type AuthToken, } from '~/generated-metadata/graphql'; import { tokenPairState } from '@/auth/states/tokenPairState'; @@ -67,7 +68,6 @@ import { useNavigate, useSearchParams } from 'react-router-dom'; import { SOURCE_LOCALE } from 'twenty-shared/translations'; import { isDefined } from 'twenty-shared/utils'; import { iconsState } from 'twenty-ui/display'; -import { type AuthToken } from '~/generated/graphql'; import { cookieStorage } from '~/utils/cookie-storage'; import { getWorkspaceUrl } from '~/utils/getWorkspaceUrl'; diff --git a/packages/twenty-front/src/modules/auth/sign-in-up/components/SignInUpGlobalScopeForm.tsx b/packages/twenty-front/src/modules/auth/sign-in-up/components/SignInUpGlobalScopeForm.tsx index bc6981ce0c..be12892345 100644 --- a/packages/twenty-front/src/modules/auth/sign-in-up/components/SignInUpGlobalScopeForm.tsx +++ b/packages/twenty-front/src/modules/auth/sign-in-up/components/SignInUpGlobalScopeForm.tsx @@ -27,7 +27,7 @@ import { IconChevronRight, IconPlus, } from 'twenty-ui/display'; -import { type AvailableWorkspace } from '~/generated/graphql'; +import { type AvailableWorkspace } from '~/generated-metadata/graphql'; import { getWorkspaceUrl } from '~/utils/getWorkspaceUrl'; const StyledContentContainer = styled(motion.div)` diff --git a/packages/twenty-front/src/modules/auth/sign-in-up/hooks/__tests__/useSignInWithGoogle.test.ts b/packages/twenty-front/src/modules/auth/sign-in-up/hooks/__tests__/useSignInWithGoogle.test.ts index faa494074f..48dfe7965f 100644 --- a/packages/twenty-front/src/modules/auth/sign-in-up/hooks/__tests__/useSignInWithGoogle.test.ts +++ b/packages/twenty-front/src/modules/auth/sign-in-up/hooks/__tests__/useSignInWithGoogle.test.ts @@ -2,7 +2,10 @@ import { useAuth } from '@/auth/hooks/useAuth'; import { useSignInWithGoogle } from '@/auth/sign-in-up/hooks/useSignInWithGoogle'; import { renderHook } from '@testing-library/react'; import { useParams, useSearchParams } from 'react-router-dom'; -import { BillingPlanKey, SubscriptionInterval } from '~/generated/graphql'; +import { + BillingPlanKey, + SubscriptionInterval, +} from '~/generated-metadata/graphql'; import { getJestMetadataAndApolloMocksWrapper } from '~/testing/jest/getJestMetadataAndApolloMocksWrapper'; jest.mock('react-router-dom', () => ({ diff --git a/packages/twenty-front/src/modules/auth/sign-in-up/hooks/useSignInWithGoogle.ts b/packages/twenty-front/src/modules/auth/sign-in-up/hooks/useSignInWithGoogle.ts index dd741cd037..a8ad23af78 100644 --- a/packages/twenty-front/src/modules/auth/sign-in-up/hooks/useSignInWithGoogle.ts +++ b/packages/twenty-front/src/modules/auth/sign-in-up/hooks/useSignInWithGoogle.ts @@ -3,8 +3,10 @@ import { useParams, useSearchParams } from 'react-router-dom'; import { useAuth } from '@/auth/hooks/useAuth'; import { type BillingCheckoutSession } from '@/auth/types/billingCheckoutSession.type'; import { type SocialSSOSignInUpActionType } from '@/auth/types/socialSSOSignInUp.type'; -import { BillingPlanKey } from '~/generated/graphql'; -import { SubscriptionInterval } from '~/generated-metadata/graphql'; +import { + BillingPlanKey, + SubscriptionInterval, +} from '~/generated-metadata/graphql'; export const useSignInWithGoogle = () => { const workspaceInviteHash = useParams().workspaceInviteHash; diff --git a/packages/twenty-front/src/modules/auth/states/availableWorkspacesState.ts b/packages/twenty-front/src/modules/auth/states/availableWorkspacesState.ts index 9a4a8d9358..0d17f2a47d 100644 --- a/packages/twenty-front/src/modules/auth/states/availableWorkspacesState.ts +++ b/packages/twenty-front/src/modules/auth/states/availableWorkspacesState.ts @@ -1,5 +1,5 @@ import { createState } from 'twenty-ui/utilities'; -import { type AvailableWorkspaces } from '~/generated/graphql'; +import { type AvailableWorkspaces } from '~/generated-metadata/graphql'; export const availableWorkspacesState = createState({ key: 'availableWorkspacesState', diff --git a/packages/twenty-front/src/modules/auth/states/currentUserState.ts b/packages/twenty-front/src/modules/auth/states/currentUserState.ts index 3ff6b14de0..2f7dd33de1 100644 --- a/packages/twenty-front/src/modules/auth/states/currentUserState.ts +++ b/packages/twenty-front/src/modules/auth/states/currentUserState.ts @@ -1,5 +1,5 @@ import { createState } from 'twenty-ui/utilities'; -import { type User } from '~/generated/graphql'; +import { type User } from '~/generated-metadata/graphql'; export type CurrentUser = Pick< User, diff --git a/packages/twenty-front/src/modules/auth/states/currentUserWorkspaceState.ts b/packages/twenty-front/src/modules/auth/states/currentUserWorkspaceState.ts index d3c1375529..954640a416 100644 --- a/packages/twenty-front/src/modules/auth/states/currentUserWorkspaceState.ts +++ b/packages/twenty-front/src/modules/auth/states/currentUserWorkspaceState.ts @@ -1,6 +1,6 @@ import { type ObjectPermissions } from 'twenty-shared/types'; import { createState } from 'twenty-ui/utilities'; -import { type UserWorkspace } from '~/generated/graphql'; +import { type UserWorkspace } from '~/generated-metadata/graphql'; export type CurrentUserWorkspace = Pick< UserWorkspace, diff --git a/packages/twenty-front/src/modules/auth/states/currentWorkspaceState.ts b/packages/twenty-front/src/modules/auth/states/currentWorkspaceState.ts index 5483ef84d0..8f0ba97998 100644 --- a/packages/twenty-front/src/modules/auth/states/currentWorkspaceState.ts +++ b/packages/twenty-front/src/modules/auth/states/currentWorkspaceState.ts @@ -3,7 +3,7 @@ import { type Application, type Role, type Workspace, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export type CurrentWorkspace = Pick< Workspace, diff --git a/packages/twenty-front/src/modules/auth/states/loginTokenState.ts b/packages/twenty-front/src/modules/auth/states/loginTokenState.ts index 46a05a2fde..25ec477fb3 100644 --- a/packages/twenty-front/src/modules/auth/states/loginTokenState.ts +++ b/packages/twenty-front/src/modules/auth/states/loginTokenState.ts @@ -1,5 +1,5 @@ import { createState } from 'twenty-ui/utilities'; -import { type AuthToken } from '~/generated/graphql'; +import { type AuthToken } from '~/generated-metadata/graphql'; export const loginTokenState = createState({ key: 'loginTokenState', diff --git a/packages/twenty-front/src/modules/auth/states/tokenPairState.ts b/packages/twenty-front/src/modules/auth/states/tokenPairState.ts index 35addfdcfb..ac9a4beda4 100644 --- a/packages/twenty-front/src/modules/auth/states/tokenPairState.ts +++ b/packages/twenty-front/src/modules/auth/states/tokenPairState.ts @@ -1,5 +1,5 @@ import { createState } from 'twenty-ui/utilities'; -import { type AuthTokenPair } from '~/generated/graphql'; +import { type AuthTokenPair } from '~/generated-metadata/graphql'; import { cookieStorageEffect } from '~/utils/recoil/cookieStorageEffect'; export const tokenPairState = createState({ diff --git a/packages/twenty-front/src/modules/auth/states/workspacePublicDataState.ts b/packages/twenty-front/src/modules/auth/states/workspacePublicDataState.ts index 0e76b4528c..18c182c0ac 100644 --- a/packages/twenty-front/src/modules/auth/states/workspacePublicDataState.ts +++ b/packages/twenty-front/src/modules/auth/states/workspacePublicDataState.ts @@ -1,4 +1,4 @@ -import { type PublicWorkspaceDataOutput } from '~/generated/graphql'; +import { type PublicWorkspaceDataOutput } from '~/generated-metadata/graphql'; import { createState } from 'twenty-ui/utilities'; export const workspacePublicDataState = diff --git a/packages/twenty-front/src/modules/auth/types/billingCheckoutSession.type.ts b/packages/twenty-front/src/modules/auth/types/billingCheckoutSession.type.ts index 375190c62d..777fcd71ca 100644 --- a/packages/twenty-front/src/modules/auth/types/billingCheckoutSession.type.ts +++ b/packages/twenty-front/src/modules/auth/types/billingCheckoutSession.type.ts @@ -1,5 +1,7 @@ -import { type SubscriptionInterval } from '~/generated-metadata/graphql'; -import { type BillingPlanKey } from '~/generated/graphql'; +import { + type SubscriptionInterval, + type BillingPlanKey, +} from '~/generated-metadata/graphql'; export type BillingCheckoutSession = { plan: BillingPlanKey; diff --git a/packages/twenty-front/src/modules/auth/utils/__tests__/availableWorkspacesUtils.test.ts b/packages/twenty-front/src/modules/auth/utils/__tests__/availableWorkspacesUtils.test.ts index ae599dd6d2..0a3c7ddf5d 100644 --- a/packages/twenty-front/src/modules/auth/utils/__tests__/availableWorkspacesUtils.test.ts +++ b/packages/twenty-front/src/modules/auth/utils/__tests__/availableWorkspacesUtils.test.ts @@ -2,7 +2,7 @@ import { AppPath } from 'twenty-shared/types'; import { type AvailableWorkspace, type AvailableWorkspaces, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; import { countAvailableWorkspaces, getAvailableWorkspacePathAndSearchParams, diff --git a/packages/twenty-front/src/modules/auth/utils/availableWorkspacesUtils.ts b/packages/twenty-front/src/modules/auth/utils/availableWorkspacesUtils.ts index 0443e47414..e10356e491 100644 --- a/packages/twenty-front/src/modules/auth/utils/availableWorkspacesUtils.ts +++ b/packages/twenty-front/src/modules/auth/utils/availableWorkspacesUtils.ts @@ -4,7 +4,7 @@ import { isDefined } from 'twenty-shared/utils'; import { type AvailableWorkspace, type AvailableWorkspaces, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export const countAvailableWorkspaces = ({ availableWorkspacesForSignIn, diff --git a/packages/twenty-front/src/modules/billing/components/SettingsBillingCreditsSection.tsx b/packages/twenty-front/src/modules/billing/components/SettingsBillingCreditsSection.tsx index 892f48d65b..21ce641689 100644 --- a/packages/twenty-front/src/modules/billing/components/SettingsBillingCreditsSection.tsx +++ b/packages/twenty-front/src/modules/billing/components/SettingsBillingCreditsSection.tsx @@ -15,7 +15,7 @@ import { formatToShortNumber } from 'twenty-shared/utils'; import { H2Title } from 'twenty-ui/display'; import { ProgressBar } from 'twenty-ui/feedback'; import { Section } from 'twenty-ui/layout'; -import { SubscriptionStatus } from '~/generated/graphql'; +import { SubscriptionStatus } from '~/generated-metadata/graphql'; const StyledLineSeparator = styled.div` width: 100%; diff --git a/packages/twenty-front/src/modules/billing/components/SettingsBillingSubscriptionInfo.tsx b/packages/twenty-front/src/modules/billing/components/SettingsBillingSubscriptionInfo.tsx index ea1f095efd..e4a7f35080 100644 --- a/packages/twenty-front/src/modules/billing/components/SettingsBillingSubscriptionInfo.tsx +++ b/packages/twenty-front/src/modules/billing/components/SettingsBillingSubscriptionInfo.tsx @@ -55,8 +55,8 @@ import { useCancelSwitchMeteredPriceMutation, useSwitchBillingPlanMutation, useSwitchSubscriptionIntervalMutation, + SubscriptionStatus, } from '~/generated-metadata/graphql'; -import { SubscriptionStatus } from '~/generated/graphql'; import { beautifyExactDate } from '~/utils/date-utils'; const SWITCH_BILLING_INTERVAL_TO_MONTHLY_MODAL_ID = diff --git a/packages/twenty-front/src/modules/billing/components/internal/MeteredPriceSelector.tsx b/packages/twenty-front/src/modules/billing/components/internal/MeteredPriceSelector.tsx index b0afbeecef..bcbb10b174 100644 --- a/packages/twenty-front/src/modules/billing/components/internal/MeteredPriceSelector.tsx +++ b/packages/twenty-front/src/modules/billing/components/internal/MeteredPriceSelector.tsx @@ -18,8 +18,10 @@ import { useRecoilState } from 'recoil'; import { findOrThrow, isDefined } from 'twenty-shared/utils'; import { H2Title } from 'twenty-ui/display'; import { Button } from 'twenty-ui/input'; -import { useSetMeteredSubscriptionPriceMutation } from '~/generated-metadata/graphql'; -import { SubscriptionInterval } from '~/generated/graphql'; +import { + useSetMeteredSubscriptionPriceMutation, + SubscriptionInterval, +} from '~/generated-metadata/graphql'; const StyledRow = styled.div` align-items: flex-end; diff --git a/packages/twenty-front/src/modules/billing/hooks/useAllBillingPrices.ts b/packages/twenty-front/src/modules/billing/hooks/useAllBillingPrices.ts index 11c189c16d..ddc84f070e 100644 --- a/packages/twenty-front/src/modules/billing/hooks/useAllBillingPrices.ts +++ b/packages/twenty-front/src/modules/billing/hooks/useAllBillingPrices.ts @@ -2,7 +2,7 @@ import { usePlans } from '@/billing/hooks/usePlans'; import { type BillingPriceLicensed, type BillingPriceMetered, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export const useAllBillingPrices = () => { const { listPlans } = usePlans(); diff --git a/packages/twenty-front/src/modules/billing/hooks/useBaseLicensedPriceByPlanKeyAndInterval.ts b/packages/twenty-front/src/modules/billing/hooks/useBaseLicensedPriceByPlanKeyAndInterval.ts index 978d5f31db..861b73b40a 100644 --- a/packages/twenty-front/src/modules/billing/hooks/useBaseLicensedPriceByPlanKeyAndInterval.ts +++ b/packages/twenty-front/src/modules/billing/hooks/useBaseLicensedPriceByPlanKeyAndInterval.ts @@ -1,5 +1,7 @@ -import { type SubscriptionInterval } from '~/generated-metadata/graphql'; -import { type BillingPlanKey } from '~/generated/graphql'; +import { + type SubscriptionInterval, + type BillingPlanKey, +} from '~/generated-metadata/graphql'; import { findOrThrow } from 'twenty-shared/utils'; import { useBaseProductByPlanKey } from '@/billing/hooks/useBaseProductByPlanKey'; diff --git a/packages/twenty-front/src/modules/billing/hooks/useBaseProductByPlanKey.ts b/packages/twenty-front/src/modules/billing/hooks/useBaseProductByPlanKey.ts index 76cedf48f4..9e7ef45bc3 100644 --- a/packages/twenty-front/src/modules/billing/hooks/useBaseProductByPlanKey.ts +++ b/packages/twenty-front/src/modules/billing/hooks/useBaseProductByPlanKey.ts @@ -1,4 +1,7 @@ -import { BillingProductKey, type BillingPlanKey } from '~/generated/graphql'; +import { + BillingProductKey, + type BillingPlanKey, +} from '~/generated-metadata/graphql'; import { findOrThrow } from 'twenty-shared/utils'; import { usePlanByPlanKey } from '@/billing/hooks/usePlanByPlanKey'; diff --git a/packages/twenty-front/src/modules/billing/hooks/useCurrentBillingFlags.ts b/packages/twenty-front/src/modules/billing/hooks/useCurrentBillingFlags.ts index 2188bc1c52..0417fdb34c 100644 --- a/packages/twenty-front/src/modules/billing/hooks/useCurrentBillingFlags.ts +++ b/packages/twenty-front/src/modules/billing/hooks/useCurrentBillingFlags.ts @@ -1,5 +1,7 @@ -import { SubscriptionInterval } from '~/generated-metadata/graphql'; -import { BillingPlanKey } from '~/generated/graphql'; +import { + SubscriptionInterval, + BillingPlanKey, +} from '~/generated-metadata/graphql'; import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState'; import { useRecoilValue } from 'recoil'; import { assertIsDefinedOrThrow } from 'twenty-shared/utils'; diff --git a/packages/twenty-front/src/modules/billing/hooks/useCurrentMetered.ts b/packages/twenty-front/src/modules/billing/hooks/useCurrentMetered.ts index 4d03908d5b..b2f868bdd2 100644 --- a/packages/twenty-front/src/modules/billing/hooks/useCurrentMetered.ts +++ b/packages/twenty-front/src/modules/billing/hooks/useCurrentMetered.ts @@ -1,10 +1,12 @@ -import { type SubscriptionInterval } from '~/generated-metadata/graphql'; -import { BillingProductKey } from '~/generated/graphql'; -import { assertIsDefinedOrThrow, findOrThrow } from 'twenty-shared/utils'; -import type { MeteredBillingPrice } from '@/billing/types/billing-price-tiers.type'; -import { useCurrentPlan } from '@/billing/hooks/useCurrentPlan'; import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState'; +import { useCurrentPlan } from '@/billing/hooks/useCurrentPlan'; +import type { MeteredBillingPrice } from '@/billing/types/billing-price-tiers.type'; import { useRecoilValue } from 'recoil'; +import { assertIsDefinedOrThrow, findOrThrow } from 'twenty-shared/utils'; +import { + BillingProductKey, + type SubscriptionInterval, +} from '~/generated-metadata/graphql'; export const useCurrentMetered = () => { const { currentPlan } = useCurrentPlan(); diff --git a/packages/twenty-front/src/modules/billing/hooks/useCurrentPlan.ts b/packages/twenty-front/src/modules/billing/hooks/useCurrentPlan.ts index d4e55c4790..9bb08280f9 100644 --- a/packages/twenty-front/src/modules/billing/hooks/useCurrentPlan.ts +++ b/packages/twenty-front/src/modules/billing/hooks/useCurrentPlan.ts @@ -1,4 +1,4 @@ -import { BillingPlanKey } from '~/generated/graphql'; +import { BillingPlanKey } from '~/generated-metadata/graphql'; import { assertIsDefinedOrThrow, findOrThrow } from 'twenty-shared/utils'; import { usePlans } from './usePlans'; import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState'; diff --git a/packages/twenty-front/src/modules/billing/hooks/useFormatPrices.ts b/packages/twenty-front/src/modules/billing/hooks/useFormatPrices.ts index 999dd80c84..d8cd8448ec 100644 --- a/packages/twenty-front/src/modules/billing/hooks/useFormatPrices.ts +++ b/packages/twenty-front/src/modules/billing/hooks/useFormatPrices.ts @@ -1,4 +1,7 @@ -import { BillingPlanKey, SubscriptionInterval } from '~/generated/graphql'; +import { + BillingPlanKey, + SubscriptionInterval, +} from '~/generated-metadata/graphql'; import { useBaseLicensedPriceByPlanKeyAndInterval } from '@/billing/hooks/useBaseLicensedPriceByPlanKeyAndInterval'; export const useFormatPrices = () => { diff --git a/packages/twenty-front/src/modules/billing/hooks/usePlanByPlanKey.ts b/packages/twenty-front/src/modules/billing/hooks/usePlanByPlanKey.ts index 74e0241069..0f6a848741 100644 --- a/packages/twenty-front/src/modules/billing/hooks/usePlanByPlanKey.ts +++ b/packages/twenty-front/src/modules/billing/hooks/usePlanByPlanKey.ts @@ -1,4 +1,4 @@ -import { type BillingPlanKey } from '~/generated/graphql'; +import { type BillingPlanKey } from '~/generated-metadata/graphql'; import { findOrThrow } from 'twenty-shared/utils'; import { usePlans } from './usePlans'; diff --git a/packages/twenty-front/src/modules/billing/hooks/usePriceAndBillingUsageByPriceId.ts b/packages/twenty-front/src/modules/billing/hooks/usePriceAndBillingUsageByPriceId.ts index 90b64dfc19..d6947600a4 100644 --- a/packages/twenty-front/src/modules/billing/hooks/usePriceAndBillingUsageByPriceId.ts +++ b/packages/twenty-front/src/modules/billing/hooks/usePriceAndBillingUsageByPriceId.ts @@ -3,7 +3,7 @@ import { type BillingPriceLicensed, type BillingPriceMetered, BillingUsageType, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; import { useAllBillingPrices } from './useAllBillingPrices'; export const usePriceAndBillingUsageByPriceId = () => { diff --git a/packages/twenty-front/src/modules/billing/hooks/useSplitPhaseItemsInPrices.ts b/packages/twenty-front/src/modules/billing/hooks/useSplitPhaseItemsInPrices.ts index f8ff7f1ef5..9a9139fcc3 100644 --- a/packages/twenty-front/src/modules/billing/hooks/useSplitPhaseItemsInPrices.ts +++ b/packages/twenty-front/src/modules/billing/hooks/useSplitPhaseItemsInPrices.ts @@ -2,9 +2,9 @@ import { useNextBillingPhase } from '@/billing/hooks/useNextBillingPhase'; import { usePriceAndBillingUsageByPriceId } from '@/billing/hooks/usePriceAndBillingUsageByPriceId'; import { type MeteredBillingPrice } from '@/billing/types/billing-price-tiers.type'; import { - type BillingPriceLicensed, BillingUsageType, -} from '~/generated/graphql'; + type BillingPriceLicensed, +} from '~/generated-metadata/graphql'; export const useSplitPhaseItemsInPrices = () => { const { nextBillingPhase } = useNextBillingPhase(); diff --git a/packages/twenty-front/src/modules/billing/types/billing-price-tiers.type.ts b/packages/twenty-front/src/modules/billing/types/billing-price-tiers.type.ts index 64cbd7d0fb..96d345588f 100644 --- a/packages/twenty-front/src/modules/billing/types/billing-price-tiers.type.ts +++ b/packages/twenty-front/src/modules/billing/types/billing-price-tiers.type.ts @@ -1,4 +1,4 @@ -import type { BillingPriceMetered } from '~/generated/graphql'; +import type { BillingPriceMetered } from '~/generated-metadata/graphql'; export type BillingPriceTiers = [ { diff --git a/packages/twenty-front/src/modules/captcha/components/CaptchaProviderScriptLoaderEffect.tsx b/packages/twenty-front/src/modules/captcha/components/CaptchaProviderScriptLoaderEffect.tsx index 65b8350a78..e58972d07b 100644 --- a/packages/twenty-front/src/modules/captcha/components/CaptchaProviderScriptLoaderEffect.tsx +++ b/packages/twenty-front/src/modules/captcha/components/CaptchaProviderScriptLoaderEffect.tsx @@ -9,7 +9,7 @@ import { isCaptchaRequiredForPath } from '@/captcha/utils/isCaptchaRequiredForPa import { useCaptcha } from '@/client-config/hooks/useCaptcha'; import { captchaState } from '@/client-config/states/captchaState'; import { assertIsDefinedOrThrow } from 'twenty-shared/utils'; -import { CaptchaDriverType } from '~/generated/graphql'; +import { CaptchaDriverType } from '~/generated-metadata/graphql'; export const CaptchaProviderScriptLoaderEffect = () => { const captcha = useRecoilValue(captchaState); diff --git a/packages/twenty-front/src/modules/captcha/utils/__tests__/getCaptchaUrlByProvider.test.ts b/packages/twenty-front/src/modules/captcha/utils/__tests__/getCaptchaUrlByProvider.test.ts index 486791edae..099e6681eb 100644 --- a/packages/twenty-front/src/modules/captcha/utils/__tests__/getCaptchaUrlByProvider.test.ts +++ b/packages/twenty-front/src/modules/captcha/utils/__tests__/getCaptchaUrlByProvider.test.ts @@ -1,4 +1,4 @@ -import { CaptchaDriverType } from '~/generated/graphql'; +import { CaptchaDriverType } from '~/generated-metadata/graphql'; import { getCaptchaUrlByProvider } from '@/captcha/utils/getCaptchaUrlByProvider'; diff --git a/packages/twenty-front/src/modules/client-config/states/apiConfigState.ts b/packages/twenty-front/src/modules/client-config/states/apiConfigState.ts index 6ddfd3ae07..64108c2a89 100644 --- a/packages/twenty-front/src/modules/client-config/states/apiConfigState.ts +++ b/packages/twenty-front/src/modules/client-config/states/apiConfigState.ts @@ -1,4 +1,4 @@ -import { type ApiConfig } from '~/generated/graphql'; +import { type ApiConfig } from '~/generated-metadata/graphql'; import { createState } from 'twenty-ui/utilities'; export const apiConfigState = createState({ diff --git a/packages/twenty-front/src/modules/client-config/states/authProvidersState.ts b/packages/twenty-front/src/modules/client-config/states/authProvidersState.ts index 0e794b4e55..52b9620f61 100644 --- a/packages/twenty-front/src/modules/client-config/states/authProvidersState.ts +++ b/packages/twenty-front/src/modules/client-config/states/authProvidersState.ts @@ -1,4 +1,4 @@ -import { type AuthProviders } from '~/generated/graphql'; +import { type AuthProviders } from '~/generated-metadata/graphql'; import { createState } from 'twenty-ui/utilities'; export const authProvidersState = createState({ diff --git a/packages/twenty-front/src/modules/client-config/states/billingState.ts b/packages/twenty-front/src/modules/client-config/states/billingState.ts index 3022552c7f..e691bcfed2 100644 --- a/packages/twenty-front/src/modules/client-config/states/billingState.ts +++ b/packages/twenty-front/src/modules/client-config/states/billingState.ts @@ -1,4 +1,4 @@ -import { type Billing } from '~/generated/graphql'; +import { type Billing } from '~/generated-metadata/graphql'; import { createState } from 'twenty-ui/utilities'; export const billingState = createState({ diff --git a/packages/twenty-front/src/modules/client-config/states/captchaState.ts b/packages/twenty-front/src/modules/client-config/states/captchaState.ts index d8f5f89430..ef0b2d88d6 100644 --- a/packages/twenty-front/src/modules/client-config/states/captchaState.ts +++ b/packages/twenty-front/src/modules/client-config/states/captchaState.ts @@ -1,4 +1,4 @@ -import { type Captcha } from '~/generated/graphql'; +import { type Captcha } from '~/generated-metadata/graphql'; import { createState } from 'twenty-ui/utilities'; export const captchaState = createState({ diff --git a/packages/twenty-front/src/modules/client-config/states/labPublicFeatureFlagsState.ts b/packages/twenty-front/src/modules/client-config/states/labPublicFeatureFlagsState.ts index d080717835..3c130a022e 100644 --- a/packages/twenty-front/src/modules/client-config/states/labPublicFeatureFlagsState.ts +++ b/packages/twenty-front/src/modules/client-config/states/labPublicFeatureFlagsState.ts @@ -1,5 +1,5 @@ import { atom } from 'recoil'; -import { type PublicFeatureFlag } from '~/generated/graphql'; +import { type PublicFeatureFlag } from '~/generated-metadata/graphql'; export const labPublicFeatureFlagsState = atom({ key: 'labPublicFeatureFlagsState', diff --git a/packages/twenty-front/src/modules/client-config/states/sentryConfigState.ts b/packages/twenty-front/src/modules/client-config/states/sentryConfigState.ts index be06f969ae..e9077724c0 100644 --- a/packages/twenty-front/src/modules/client-config/states/sentryConfigState.ts +++ b/packages/twenty-front/src/modules/client-config/states/sentryConfigState.ts @@ -1,4 +1,4 @@ -import { type Sentry } from '~/generated/graphql'; +import { type Sentry } from '~/generated-metadata/graphql'; import { createState } from 'twenty-ui/utilities'; export const sentryConfigState = createState({ diff --git a/packages/twenty-front/src/modules/client-config/states/supportChatState.ts b/packages/twenty-front/src/modules/client-config/states/supportChatState.ts index b99a36af05..cbadb9625d 100644 --- a/packages/twenty-front/src/modules/client-config/states/supportChatState.ts +++ b/packages/twenty-front/src/modules/client-config/states/supportChatState.ts @@ -1,5 +1,5 @@ import { createState } from 'twenty-ui/utilities'; -import { type Support, SupportDriver } from '~/generated/graphql'; +import { type Support, SupportDriver } from '~/generated-metadata/graphql'; export const supportChatState = createState({ key: 'supportChatState', diff --git a/packages/twenty-front/src/modules/command-menu-item/hooks/useCommandMenuItemFrontComponentActions.tsx b/packages/twenty-front/src/modules/command-menu-item/hooks/useCommandMenuItemFrontComponentActions.tsx index 731a6221ce..60b806b098 100644 --- a/packages/twenty-front/src/modules/command-menu-item/hooks/useCommandMenuItemFrontComponentActions.tsx +++ b/packages/twenty-front/src/modules/command-menu-item/hooks/useCommandMenuItemFrontComponentActions.tsx @@ -16,9 +16,9 @@ import { COMMAND_MENU_DEFAULT_ICON } from '@/workflow/workflow-trigger/constants import { type CommandMenuItemFieldsFragment, CommandMenuItemAvailabilityType, + FeatureFlagKey, useFindManyCommandMenuItemsQuery, } from '~/generated-metadata/graphql'; -import { FeatureFlagKey } from '~/generated/graphql'; type CommandMenuItemWithFrontComponent = CommandMenuItemFieldsFragment & { frontComponentId: string; diff --git a/packages/twenty-front/src/modules/command-menu/components/CommandMenuTopBarRightCornerIcon.tsx b/packages/twenty-front/src/modules/command-menu/components/CommandMenuTopBarRightCornerIcon.tsx index 65d819bcee..68759dee45 100644 --- a/packages/twenty-front/src/modules/command-menu/components/CommandMenuTopBarRightCornerIcon.tsx +++ b/packages/twenty-front/src/modules/command-menu/components/CommandMenuTopBarRightCornerIcon.tsx @@ -8,7 +8,7 @@ import { useRecoilValue } from 'recoil'; import { IconEdit, IconSparkles } from 'twenty-ui/display'; import { IconButton } from 'twenty-ui/input'; import { useIsMobile } from 'twenty-ui/utilities'; -import { FeatureFlagKey } from '~/generated/graphql'; +import { FeatureFlagKey } from '~/generated-metadata/graphql'; import { useCreateNewAIChatThread } from '@/ai/hooks/useCreateNewAIChatThread'; diff --git a/packages/twenty-front/src/modules/command-menu/hooks/useCommandMenuHotKeys.ts b/packages/twenty-front/src/modules/command-menu/hooks/useCommandMenuHotKeys.ts index 5336f47409..5b42cf9870 100644 --- a/packages/twenty-front/src/modules/command-menu/hooks/useCommandMenuHotKeys.ts +++ b/packages/twenty-front/src/modules/command-menu/hooks/useCommandMenuHotKeys.ts @@ -17,7 +17,7 @@ import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled'; import { isNonEmptyString } from '@sniptt/guards'; import { useRecoilValue } from 'recoil'; import { Key } from 'ts-key-enum'; -import { FeatureFlagKey } from '~/generated/graphql'; +import { FeatureFlagKey } from '~/generated-metadata/graphql'; export const useCommandMenuHotKeys = () => { const { toggleCommandMenu } = useCommandMenu(); diff --git a/packages/twenty-front/src/modules/command-menu/pages/calendar-event/components/CommandMenuCalendarEventPage.tsx b/packages/twenty-front/src/modules/command-menu/pages/calendar-event/components/CommandMenuCalendarEventPage.tsx index 71d7563209..0f4f411145 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/calendar-event/components/CommandMenuCalendarEventPage.tsx +++ b/packages/twenty-front/src/modules/command-menu/pages/calendar-event/components/CommandMenuCalendarEventPage.tsx @@ -8,7 +8,7 @@ import { useFindOneRecord } from '@/object-record/hooks/useFindOneRecord'; import { useUpsertRecordsInStore } from '@/object-record/record-store/hooks/useUpsertRecordsInStore'; import { LayoutRenderingProvider } from '@/ui/layout/contexts/LayoutRenderingContext'; import { useRecoilComponentValue } from '@/ui/utilities/state/component-state/hooks/useRecoilComponentValue'; -import { PageLayoutType } from '~/generated/graphql'; +import { PageLayoutType } from '~/generated-metadata/graphql'; export const CommandMenuCalendarEventPage = () => { const { upsertRecordsInStore } = useUpsertRecordsInStore(); diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/ChartLimitInfoBanner.tsx b/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/ChartLimitInfoBanner.tsx index 8a9f5fe4bb..f03067ba7c 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/ChartLimitInfoBanner.tsx +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/ChartLimitInfoBanner.tsx @@ -1,7 +1,7 @@ import { getChartLimitMessage } from '@/command-menu/pages/page-layout/utils/getChartLimitMessage'; import { t } from '@lingui/core/macro'; import { SidePanelInformationBanner } from 'twenty-ui/display'; -import { type WidgetConfigurationType } from '~/generated/graphql'; +import { type WidgetConfigurationType } from '~/generated-metadata/graphql'; type ChartLimitInfoBannerProps = { widgetConfigurationType: WidgetConfigurationType; diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/CommandMenuPageLayoutIframeSettings.tsx b/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/CommandMenuPageLayoutIframeSettings.tsx index 0e3cba156f..804b96f7db 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/CommandMenuPageLayoutIframeSettings.tsx +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/CommandMenuPageLayoutIframeSettings.tsx @@ -8,7 +8,7 @@ import { t } from '@lingui/core/macro'; import { isNonEmptyString, isString } from '@sniptt/guards'; import { useState } from 'react'; import { isDefined, isValidUrl } from 'twenty-shared/utils'; -import { WidgetConfigurationType } from '~/generated/graphql'; +import { WidgetConfigurationType } from '~/generated-metadata/graphql'; const StyledOuterContainer = styled.div` display: flex; diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/CommandMenuPageLayoutWidgetTypeSelect.tsx b/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/CommandMenuPageLayoutWidgetTypeSelect.tsx index 3445fb6b54..daa26ae9e7 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/CommandMenuPageLayoutWidgetTypeSelect.tsx +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/CommandMenuPageLayoutWidgetTypeSelect.tsx @@ -33,7 +33,7 @@ import { FeatureFlagKey, type FrontComponent, WidgetType, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export const CommandMenuPageLayoutWidgetTypeSelect = () => { const { pageLayoutId } = usePageLayoutIdFromContextStoreTargetedRecord(); diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartAxisNameSelectionDropdownContent.tsx b/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartAxisNameSelectionDropdownContent.tsx index 5085052d13..0d715e082c 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartAxisNameSelectionDropdownContent.tsx +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartAxisNameSelectionDropdownContent.tsx @@ -12,7 +12,7 @@ import { selectedItemIdComponentState } from '@/ui/layout/selectable-list/states import { useAvailableComponentInstanceIdOrThrow } from '@/ui/utilities/state/component-state/hooks/useAvailableComponentInstanceIdOrThrow'; import { useRecoilComponentValue } from '@/ui/utilities/state/component-state/hooks/useRecoilComponentValue'; import { MenuItemSelect } from 'twenty-ui/navigation'; -import { AxisNameDisplay } from '~/generated/graphql'; +import { AxisNameDisplay } from '~/generated-metadata/graphql'; export const ChartAxisNameSelectionDropdownContent = () => { const { pageLayoutId } = usePageLayoutIdFromContextStoreTargetedRecord(); diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartDataSourceDropdownContent.tsx b/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartDataSourceDropdownContent.tsx index 4f8a7c78fc..e5292532c5 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartDataSourceDropdownContent.tsx +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartDataSourceDropdownContent.tsx @@ -91,17 +91,17 @@ export const ChartDataSourceDropdownContent = () => { updateCurrentWidgetConfig({ objectMetadataId: newObjectMetadataItemId, configToUpdate: { - aggregateFieldMetadataId: null, - primaryAxisGroupByFieldMetadataId: null, - primaryAxisGroupBySubFieldName: null, - secondaryAxisGroupByFieldMetadataId: null, - secondaryAxisGroupBySubFieldName: null, - primaryAxisOrderBy: null, - secondaryAxisOrderBy: null, - groupByFieldMetadataId: null, - groupBySubFieldName: null, + aggregateFieldMetadataId: undefined, + primaryAxisGroupByFieldMetadataId: undefined, + primaryAxisGroupBySubFieldName: undefined, + secondaryAxisGroupByFieldMetadataId: undefined, + secondaryAxisGroupBySubFieldName: undefined, + primaryAxisOrderBy: undefined, + secondaryAxisOrderBy: undefined, + groupByFieldMetadataId: undefined, + groupBySubFieldName: undefined, filter: {}, - ratioAggregateConfig: null, + ratioAggregateConfig: undefined, }, }); diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartDateGranularitySelectionDropdownContent.tsx b/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartDateGranularitySelectionDropdownContent.tsx index ba93fede8c..541843d282 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartDateGranularitySelectionDropdownContent.tsx +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartDateGranularitySelectionDropdownContent.tsx @@ -17,7 +17,7 @@ import { useRecoilComponentValue } from '@/ui/utilities/state/component-state/ho import { ObjectRecordGroupByDateGranularity } from 'twenty-shared/types'; import { isDefined } from 'twenty-shared/utils'; import { MenuItemSelect } from 'twenty-ui/navigation'; -import { type WidgetConfiguration } from '~/generated/graphql'; +import { type WidgetConfiguration } from '~/generated-metadata/graphql'; type ChartDateGranularitySelectionDropdownContentProps = { axis?: 'primary' | 'secondary'; diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartGroupByFieldSelectionDropdownContentBase.tsx b/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartGroupByFieldSelectionDropdownContentBase.tsx index c15001734c..29a838eea3 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartGroupByFieldSelectionDropdownContentBase.tsx +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartGroupByFieldSelectionDropdownContentBase.tsx @@ -24,7 +24,7 @@ import { useMemo, useState } from 'react'; import { isDefined } from 'twenty-shared/utils'; import { useIcons } from 'twenty-ui/display'; import { MenuItemSelect } from 'twenty-ui/navigation'; -import { RelationType } from '~/generated/graphql'; +import { RelationType } from '~/generated-metadata/graphql'; import { filterBySearchQuery } from '~/utils/filterBySearchQuery'; type ChartGroupByFieldSelectionDropdownContentBaseProps< diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartManualSortSubMenuContent.tsx b/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartManualSortSubMenuContent.tsx index 913347c442..9eee99f2d3 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartManualSortSubMenuContent.tsx +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartManualSortSubMenuContent.tsx @@ -18,7 +18,7 @@ import { isDefined } from 'twenty-shared/utils'; import { Tag } from 'twenty-ui/components'; import { IconChevronLeft } from 'twenty-ui/display'; import { MenuItemDraggable } from 'twenty-ui/navigation'; -import { type WidgetConfiguration } from '~/generated/graphql'; +import { type WidgetConfiguration } from '~/generated-metadata/graphql'; import { moveArrayItem } from '~/utils/array/moveArrayItem'; type ChartManualSortSubMenuContentProps = { diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartRatioOptionBooleanSelectableListItem.tsx b/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartRatioOptionBooleanSelectableListItem.tsx index b63a606720..13bac6f0ba 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartRatioOptionBooleanSelectableListItem.tsx +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartRatioOptionBooleanSelectableListItem.tsx @@ -10,7 +10,7 @@ import { useAvailableComponentInstanceIdOrThrow } from '@/ui/utilities/state/com import { useRecoilComponentValue } from '@/ui/utilities/state/component-state/hooks/useRecoilComponentValue'; import { IconCheck, IconX } from 'twenty-ui/display'; import { MenuItemSelect } from 'twenty-ui/navigation'; -import { AggregateOperations } from '~/generated/graphql'; +import { AggregateOperations } from '~/generated-metadata/graphql'; export const ChartRatioOptionBooleanSelectableListItem = ({ optionValue, diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartRatioOptionSelectSelectableListItem.tsx b/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartRatioOptionSelectSelectableListItem.tsx index 0d6f825603..496542f3f4 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartRatioOptionSelectSelectableListItem.tsx +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartRatioOptionSelectSelectableListItem.tsx @@ -10,7 +10,7 @@ import { useAvailableComponentInstanceIdOrThrow } from '@/ui/utilities/state/com import { useRecoilComponentValue } from '@/ui/utilities/state/component-state/hooks/useRecoilComponentValue'; import { MenuItemSelectTag } from 'twenty-ui/navigation'; import { type ThemeColor } from 'twenty-ui/theme'; -import { AggregateOperations } from '~/generated/graphql'; +import { AggregateOperations } from '~/generated-metadata/graphql'; export const ChartRatioOptionSelectSelectableListItem = ({ optionValue, diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartSortByGroupByFieldDropdownContent.tsx b/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartSortByGroupByFieldDropdownContent.tsx index cf79593b2f..7e0575c3a1 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartSortByGroupByFieldDropdownContent.tsx +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartSortByGroupByFieldDropdownContent.tsx @@ -22,9 +22,9 @@ import { useRecoilComponentValue } from '@/ui/utilities/state/component-state/ho import { isDefined } from 'twenty-shared/utils'; import { MenuItemSelect } from 'twenty-ui/navigation'; import { - GraphOrderBy, - type GraphOrderBy as GraphOrderByType, -} from '~/generated/graphql'; + type GraphOrderBy, + GraphOrderBy as GraphOrderByEnum, +} from '~/generated-metadata/graphql'; export const ChartSortByGroupByFieldDropdownContent = () => { const [isSubMenuOpen, setIsSubMenuOpen] = useState(false); @@ -74,12 +74,12 @@ export const ChartSortByGroupByFieldDropdownContent = () => { return null; } - const handleSelectSortOption = (orderBy: GraphOrderByType) => { + const handleSelectSortOption = (orderBy: GraphOrderBy) => { const configToUpdate: Record = { secondaryAxisOrderBy: orderBy, }; - if (orderBy === GraphOrderBy.MANUAL) { + if (orderBy === GraphOrderByEnum.MANUAL) { const existingManualSortOrder = configuration.secondaryAxisManualSortOrder; @@ -94,7 +94,7 @@ export const ChartSortByGroupByFieldDropdownContent = () => { return; } - if (configuration.secondaryAxisOrderBy === GraphOrderBy.MANUAL) { + if (configuration.secondaryAxisOrderBy === GraphOrderByEnum.MANUAL) { configToUpdate.secondaryAxisManualSortOrder = null; } @@ -125,7 +125,7 @@ export const ChartSortByGroupByFieldDropdownContent = () => { selectableItemIdArray={availableOptions.map((option) => option.value)} > {availableOptions.map((sortOption) => { - const isManualOption = sortOption.value === GraphOrderBy.MANUAL; + const isManualOption = sortOption.value === GraphOrderByEnum.MANUAL; return ( { { const [isSubMenuOpen, setIsSubMenuOpen] = useState(false); diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/constants/AggregateSortByOptions.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/constants/AggregateSortByOptions.ts index f4fab91b47..ef34b3d701 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/constants/AggregateSortByOptions.ts +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/constants/AggregateSortByOptions.ts @@ -3,7 +3,7 @@ import { IconSortAscending, IconSortDescending, } from 'twenty-ui/display'; -import { GraphOrderBy } from '~/generated/graphql'; +import { GraphOrderBy } from '~/generated-metadata/graphql'; export const AGGREGATE_SORT_BY_OPTIONS = [ { diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/constants/GraphConfigurationTypeToConfigTypename.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/constants/GraphConfigurationTypeToConfigTypename.ts index 18caa5ca71..355430404c 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/constants/GraphConfigurationTypeToConfigTypename.ts +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/constants/GraphConfigurationTypeToConfigTypename.ts @@ -1,4 +1,4 @@ -import { WidgetConfigurationType } from '~/generated/graphql'; +import { WidgetConfigurationType } from '~/generated-metadata/graphql'; export const GRAPH_CONFIGURATION_TYPE_TO_CONFIG_TYPENAME: Partial< Record diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/constants/GraphTypeInformation.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/constants/GraphTypeInformation.ts index 0b27e82186..64169cd867 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/constants/GraphTypeInformation.ts +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/constants/GraphTypeInformation.ts @@ -16,7 +16,7 @@ import { IconGauge, IconSum, } from 'twenty-ui/display'; -import { BarChartLayout } from '~/generated/graphql'; +import { BarChartLayout } from '~/generated-metadata/graphql'; export const GRAPH_TYPE_INFORMATION: Record< GraphType, diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/constants/XSortByOptions.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/constants/XSortByOptions.ts index 1c4abba768..4a897a5a01 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/constants/XSortByOptions.ts +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/constants/XSortByOptions.ts @@ -6,7 +6,7 @@ import { IconTrendingDown, IconTrendingUp, } from 'twenty-ui/display'; -import { GraphOrderBy } from '~/generated/graphql'; +import { GraphOrderBy } from '~/generated-metadata/graphql'; type XSortByOption = { value: GraphOrderBy; diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/hooks/useChartSettingsValues.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/hooks/useChartSettingsValues.ts index 3f8cf30579..82f84e4515 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/hooks/useChartSettingsValues.ts +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/hooks/useChartSettingsValues.ts @@ -61,8 +61,10 @@ export const useChartSettingsValues = ({ let groupByOrderBy: GraphOrderBy | undefined | null; if (isBarOrLineChart) { - groupByFieldXId = configuration.primaryAxisGroupByFieldMetadataId; - groupByFieldYId = configuration.secondaryAxisGroupByFieldMetadataId; + groupByFieldXId = + configuration.primaryAxisGroupByFieldMetadataId ?? undefined; + groupByFieldYId = + configuration.secondaryAxisGroupByFieldMetadataId ?? undefined; groupBySubFieldNameX = configuration.primaryAxisGroupBySubFieldName as | CompositeFieldSubFieldName | undefined; diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/hooks/useGraphGroupBySortOptionLabels.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/hooks/useGraphGroupBySortOptionLabels.ts index 9ee90cf9fd..1e43f39d2f 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/hooks/useGraphGroupBySortOptionLabels.ts +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/hooks/useGraphGroupBySortOptionLabels.ts @@ -5,7 +5,7 @@ import { t } from '@lingui/core/macro'; import { useRecoilValue } from 'recoil'; import { type CompositeFieldSubFieldName } from 'twenty-shared/types'; import { assertUnreachable } from 'twenty-shared/utils'; -import { GraphOrderBy } from '~/generated/graphql'; +import { GraphOrderBy } from '~/generated-metadata/graphql'; export const useGraphGroupBySortOptionLabels = ({ objectMetadataId, diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/hooks/useGraphXSortOptionLabels.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/hooks/useGraphXSortOptionLabels.ts index 142d98373b..28674c34ee 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/hooks/useGraphXSortOptionLabels.ts +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/hooks/useGraphXSortOptionLabels.ts @@ -7,7 +7,7 @@ import { t } from '@lingui/core/macro'; import { useRecoilValue } from 'recoil'; import { type CompositeFieldSubFieldName } from 'twenty-shared/types'; import { assertUnreachable, isDefined } from 'twenty-shared/utils'; -import { GraphOrderBy } from '~/generated/graphql'; +import { GraphOrderBy } from '~/generated-metadata/graphql'; export const useGraphXSortOptionLabels = ({ objectMetadataId, diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/hooks/useUpdateChartSettingToggle.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/hooks/useUpdateChartSettingToggle.ts index 33386d1b7c..b54662f4f7 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/hooks/useUpdateChartSettingToggle.ts +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/hooks/useUpdateChartSettingToggle.ts @@ -1,7 +1,7 @@ import { type ChartConfiguration } from '@/command-menu/pages/page-layout/types/ChartConfiguration'; import { CHART_CONFIGURATION_SETTING_IDS } from '@/command-menu/pages/page-layout/types/ChartConfigurationSettingIds'; import { getConfigKeyFromSettingId } from '@/command-menu/pages/page-layout/utils/getConfigKeyFromSettingId'; -import { BarChartGroupMode } from '~/generated/graphql'; +import { BarChartGroupMode } from '~/generated-metadata/graphql'; import { useChartSettingsValues } from './useChartSettingsValues'; import { useUpdateCurrentWidgetConfig } from './useUpdateCurrentWidgetConfig'; diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/hooks/useUpdateGraphTypeConfig.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/hooks/useUpdateGraphTypeConfig.ts index 8c5e02fec6..6832ae15be 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/hooks/useUpdateGraphTypeConfig.ts +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/hooks/useUpdateGraphTypeConfig.ts @@ -18,7 +18,7 @@ import { activeTabIdComponentState } from '@/ui/layout/tab-list/states/activeTab import { useRecoilComponentCallbackState } from '@/ui/utilities/state/component-state/hooks/useRecoilComponentCallbackState'; import { useRecoilCallback } from 'recoil'; import { isDefined } from 'twenty-shared/utils'; -import { BarChartLayout } from '~/generated/graphql'; +import { BarChartLayout } from '~/generated-metadata/graphql'; export const useGetConfigToUpdateAfterGraphTypeChange = ({ pageLayoutId, diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/BarLineChartConvertibleFields.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/BarLineChartConvertibleFields.ts index 24254a1dd2..82438e7133 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/BarLineChartConvertibleFields.ts +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/BarLineChartConvertibleFields.ts @@ -1,7 +1,7 @@ import { type GraphOrderBy, type ObjectRecordGroupByDateGranularity, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export type BarLineChartConvertibleFields = { primaryAxisGroupByFieldMetadataId?: string; diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/ChartWidget.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/ChartWidget.ts index 251867f300..5ecb12c618 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/ChartWidget.ts +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/ChartWidget.ts @@ -1,7 +1,7 @@ import { type ChartWidgetConfiguration } from '@/command-menu/pages/page-layout/types/ChartWidgetConfiguration'; import { type PageLayoutWidget } from '@/page-layout/types/PageLayoutWidget'; import { type ModifiedProperties } from 'twenty-shared/types'; -import { type WidgetType } from '~/generated/graphql'; +import { type WidgetType } from '~/generated-metadata/graphql'; export type ChartWidget = ModifiedProperties< PageLayoutWidget, diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/PieChartConvertibleFields.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/PieChartConvertibleFields.ts index 097cb61950..71e029762c 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/PieChartConvertibleFields.ts +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/PieChartConvertibleFields.ts @@ -1,7 +1,7 @@ import { type GraphOrderBy, type ObjectRecordGroupByDateGranularity, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export type PieChartConvertibleFields = { groupByFieldMetadataId?: string; diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/TypedAggregateChartConfiguration.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/TypedAggregateChartConfiguration.ts index 3e97ce2755..c487bdc0c7 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/TypedAggregateChartConfiguration.ts +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/TypedAggregateChartConfiguration.ts @@ -1,7 +1,7 @@ import { type AggregateChartConfiguration, type WidgetConfigurationType, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export type TypedAggregateChartConfiguration = AggregateChartConfiguration & { configurationType: WidgetConfigurationType.AGGREGATE_CHART; diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/TypedBarChartConfiguration.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/TypedBarChartConfiguration.ts index 3204c323a4..517ebd7b2d 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/TypedBarChartConfiguration.ts +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/TypedBarChartConfiguration.ts @@ -1,7 +1,7 @@ import { type BarChartConfiguration, type WidgetConfigurationType, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export type TypedBarChartConfiguration = BarChartConfiguration & { configurationType: WidgetConfigurationType.BAR_CHART; diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/TypedGaugeChartConfiguration.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/TypedGaugeChartConfiguration.ts index 308065644d..3ba4123bcf 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/TypedGaugeChartConfiguration.ts +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/TypedGaugeChartConfiguration.ts @@ -1,7 +1,7 @@ import { type GaugeChartConfiguration, type WidgetConfigurationType, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export type TypedGaugeChartConfiguration = GaugeChartConfiguration & { configurationType: WidgetConfigurationType.GAUGE_CHART; diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/TypedLineChartConfiguration.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/TypedLineChartConfiguration.ts index 3ab40c6ae4..00ee5ae9f1 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/TypedLineChartConfiguration.ts +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/TypedLineChartConfiguration.ts @@ -1,7 +1,7 @@ import { type LineChartConfiguration, type WidgetConfigurationType, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export type TypedLineChartConfiguration = LineChartConfiguration & { configurationType: WidgetConfigurationType.LINE_CHART; diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/TypedPieChartConfiguration.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/TypedPieChartConfiguration.ts index a89445f55f..03c25e17d6 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/TypedPieChartConfiguration.ts +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/TypedPieChartConfiguration.ts @@ -1,7 +1,7 @@ import { type PieChartConfiguration, type WidgetConfigurationType, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export type TypedPieChartConfiguration = PieChartConfiguration & { configurationType: WidgetConfigurationType.PIE_CHART; diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/buildChartGroupByFieldConfigUpdate.test.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/buildChartGroupByFieldConfigUpdate.test.ts index bf71573c2e..262cd2f28a 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/buildChartGroupByFieldConfigUpdate.test.ts +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/buildChartGroupByFieldConfigUpdate.test.ts @@ -6,7 +6,7 @@ import { BarChartGroupMode, GraphOrderBy, WidgetConfigurationType, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; describe('buildChartGroupByFieldConfigUpdate', () => { it('sets default orderBy and dateGranularity for primary axis', () => { diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/convertBarOrLineChartConfigToPieChart.test.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/convertBarOrLineChartConfigToPieChart.test.ts index 91ba529448..d13967a9eb 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/convertBarOrLineChartConfigToPieChart.test.ts +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/convertBarOrLineChartConfigToPieChart.test.ts @@ -1,5 +1,5 @@ import { convertBarOrLineChartConfigToPieChart } from '@/command-menu/pages/page-layout/utils/convertBarOrLineChartConfigToPieChart'; -import { type BarChartConfiguration } from '~/generated/graphql'; +import { type BarChartConfiguration } from '~/generated-metadata/graphql'; import { TEST_BAR_CHART_CONFIGURATION, TEST_LINE_CHART_CONFIGURATION, diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/convertPieChartConfigToBarOrLineChart.test.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/convertPieChartConfigToBarOrLineChart.test.ts index 4154ac3dee..66714158c3 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/convertPieChartConfigToBarOrLineChart.test.ts +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/convertPieChartConfigToBarOrLineChart.test.ts @@ -1,5 +1,5 @@ import { convertPieChartConfigToBarOrLineChart } from '@/command-menu/pages/page-layout/utils/convertPieChartConfigToBarOrLineChart'; -import { type PieChartConfiguration } from '~/generated/graphql'; +import { type PieChartConfiguration } from '~/generated-metadata/graphql'; import { TEST_BAR_CHART_CONFIGURATION, TEST_PIE_CHART_CONFIGURATION, diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/filterSortOptionsByFieldType.test.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/filterSortOptionsByFieldType.test.ts index f88a86bb0f..a7084e721c 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/filterSortOptionsByFieldType.test.ts +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/filterSortOptionsByFieldType.test.ts @@ -1,7 +1,7 @@ import { FieldMetadataType } from 'twenty-shared/types'; import { filterSortOptionsByFieldType } from '@/command-menu/pages/page-layout/utils/filterSortOptionsByFieldType'; -import { GraphOrderBy } from '~/generated/graphql'; +import { GraphOrderBy } from '~/generated-metadata/graphql'; describe('filterSortOptionsByFieldType', () => { const allOptions = [ diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getBarChartSettings.test.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getBarChartSettings.test.ts index 9775f7f83a..4e5a0271c8 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getBarChartSettings.test.ts +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getBarChartSettings.test.ts @@ -19,7 +19,7 @@ import { SORT_BY_GROUP_BY_FIELD_SETTING } from '@/command-menu/pages/page-layout import { STACKED_BARS_SETTING } from '@/command-menu/pages/page-layout/constants/settings/StackedBarsSetting'; import { getBarChartSettings } from '@/command-menu/pages/page-layout/utils/getBarChartSettings'; import { IconAxisX, IconAxisY } from 'twenty-ui/display'; -import { BarChartLayout } from '~/generated/graphql'; +import { BarChartLayout } from '~/generated-metadata/graphql'; describe('getBarChartSettings', () => { describe('Vertical bar chart', () => { diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getChartDefaultOrderByForFieldType.test.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getChartDefaultOrderByForFieldType.test.ts index 0bdb9ab2cd..6a70f7b12f 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getChartDefaultOrderByForFieldType.test.ts +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getChartDefaultOrderByForFieldType.test.ts @@ -1,7 +1,7 @@ import { FieldMetadataType } from 'twenty-shared/types'; import { getChartDefaultOrderByForFieldType } from '@/command-menu/pages/page-layout/utils/getChartDefaultOrderByForFieldType'; -import { GraphOrderBy } from '~/generated/graphql'; +import { GraphOrderBy } from '~/generated-metadata/graphql'; describe('getChartDefaultOrderByForFieldType', () => { it('should return FIELD_POSITION_ASC for SELECT field type', () => { diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getChartLimitMessage.test.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getChartLimitMessage.test.ts index 79666de152..04fb4228f9 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getChartLimitMessage.test.ts +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getChartLimitMessage.test.ts @@ -1,6 +1,6 @@ import { getChartLimitMessage } from '@/command-menu/pages/page-layout/utils/getChartLimitMessage'; import { ObjectRecordGroupByDateGranularity } from 'twenty-shared/types'; -import { WidgetConfigurationType } from '~/generated/graphql'; +import { WidgetConfigurationType } from '~/generated-metadata/graphql'; describe('getChartLimitMessage', () => { it('returns date-based message for bar chart with date axis', () => { diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getConfigurationTypeFromGraphType.test.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getConfigurationTypeFromGraphType.test.ts index 42579ce48c..ceda91f3f1 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getConfigurationTypeFromGraphType.test.ts +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getConfigurationTypeFromGraphType.test.ts @@ -1,6 +1,6 @@ import { GraphType } from '@/command-menu/pages/page-layout/types/GraphType'; import { getConfigurationTypeFromGraphType } from '@/command-menu/pages/page-layout/utils/getConfigurationTypeFromGraphType'; -import { WidgetConfigurationType } from '~/generated/graphql'; +import { WidgetConfigurationType } from '~/generated-metadata/graphql'; describe('getConfigurationTypeFromGraphType', () => { it('returns BAR_CHART for VERTICAL_BAR', () => { diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getManualSortOrderFromConfig.test.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getManualSortOrderFromConfig.test.ts index 6311415d48..98d637a9e4 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getManualSortOrderFromConfig.test.ts +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getManualSortOrderFromConfig.test.ts @@ -4,7 +4,7 @@ import { type BarChartConfiguration, type LineChartConfiguration, type PieChartConfiguration, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; describe('getManualSortOrderFromConfig', () => { describe('pie chart configuration', () => { diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getSortIconForFieldType.test.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getSortIconForFieldType.test.ts index 6ea922ca98..4c9e2e8e78 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getSortIconForFieldType.test.ts +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getSortIconForFieldType.test.ts @@ -9,7 +9,7 @@ import { } from 'twenty-ui/display'; import { getSortIconForFieldType } from '@/command-menu/pages/page-layout/utils/getSortIconForFieldType'; -import { GraphOrderBy } from '~/generated/graphql'; +import { GraphOrderBy } from '~/generated-metadata/graphql'; describe('getSortIconForFieldType', () => { describe('position sort', () => { diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getSortLabelSuffixForFieldType.test.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getSortLabelSuffixForFieldType.test.ts index cc154ee0c7..2ae9c01073 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getSortLabelSuffixForFieldType.test.ts +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getSortLabelSuffixForFieldType.test.ts @@ -1,6 +1,6 @@ import { getSortLabelSuffixForFieldType } from '@/command-menu/pages/page-layout/utils/getSortLabelSuffixForFieldType'; import { FieldMetadataType } from 'twenty-shared/types'; -import { GraphOrderBy } from '~/generated/graphql'; +import { GraphOrderBy } from '~/generated-metadata/graphql'; describe('getSortLabelSuffixForFieldType', () => { it('returns alphabetical for TEXT field with FIELD_ASC', () => { diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/isMinMaxRangeValid.test.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/isMinMaxRangeValid.test.ts index 9e8adbc28b..283e3a6ef6 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/isMinMaxRangeValid.test.ts +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/isMinMaxRangeValid.test.ts @@ -1,7 +1,10 @@ import { type ChartConfiguration } from '@/command-menu/pages/page-layout/types/ChartConfiguration'; import { CHART_CONFIGURATION_SETTING_IDS } from '@/command-menu/pages/page-layout/types/ChartConfigurationSettingIds'; import { isMinMaxRangeValid } from '@/command-menu/pages/page-layout/utils/isMinMaxRangeValid'; -import { BarChartLayout, WidgetConfigurationType } from '~/generated/graphql'; +import { + BarChartLayout, + WidgetConfigurationType, +} from '~/generated-metadata/graphql'; describe('isMinMaxRangeValid', () => { const mockConfiguration = { diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/buildChartGroupByFieldConfigUpdate.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/buildChartGroupByFieldConfigUpdate.ts index ee7aad1752..58ea650120 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/buildChartGroupByFieldConfigUpdate.ts +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/buildChartGroupByFieldConfigUpdate.ts @@ -5,7 +5,7 @@ import { isWidgetConfigurationOfType } from '@/command-menu/pages/page-layout/ut import { type ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem'; import { ObjectRecordGroupByDateGranularity } from 'twenty-shared/types'; import { isDefined } from 'twenty-shared/utils'; -import { BarChartGroupMode, GraphOrderBy } from '~/generated/graphql'; +import { BarChartGroupMode, GraphOrderBy } from '~/generated-metadata/graphql'; type BuildChartGroupByFieldConfigUpdateArgs = { configuration: T; diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/convertBarOrLineChartConfigToPieChart.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/convertBarOrLineChartConfigToPieChart.ts index cd6934c6fc..9101a25588 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/convertBarOrLineChartConfigToPieChart.ts +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/convertBarOrLineChartConfigToPieChart.ts @@ -2,7 +2,7 @@ import { type PieChartConvertibleFields } from '@/command-menu/pages/page-layout import { type BarChartConfiguration, type LineChartConfiguration, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export const convertBarOrLineChartConfigToPieChart = ( configuration: BarChartConfiguration | LineChartConfiguration, diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/convertPieChartConfigToBarOrLineChart.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/convertPieChartConfigToBarOrLineChart.ts index 8d94272cea..2af8cc985e 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/convertPieChartConfigToBarOrLineChart.ts +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/convertPieChartConfigToBarOrLineChart.ts @@ -1,6 +1,6 @@ import { type BarLineChartConvertibleFields } from '@/command-menu/pages/page-layout/types/BarLineChartConvertibleFields'; import { isWidgetConfigurationOfType } from '@/command-menu/pages/page-layout/utils/isWidgetConfigurationOfType'; -import { type PieChartConfiguration } from '~/generated/graphql'; +import { type PieChartConfiguration } from '~/generated-metadata/graphql'; export const convertPieChartConfigToBarOrLineChart = ( configuration: PieChartConfiguration, diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/filterSortOptionsByFieldType.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/filterSortOptionsByFieldType.ts index 456b4a2128..b075e5a20a 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/filterSortOptionsByFieldType.ts +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/filterSortOptionsByFieldType.ts @@ -4,7 +4,7 @@ import { isFieldMetadataSelectKind, } from 'twenty-shared/utils'; import { type IconComponent } from 'twenty-ui/display'; -import { GraphOrderBy } from '~/generated/graphql'; +import { GraphOrderBy } from '~/generated-metadata/graphql'; export type SortOption = { value: GraphOrderBy; diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getBarChartSettings.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getBarChartSettings.ts index 4918a07c2c..e52b8ee9d6 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getBarChartSettings.ts +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getBarChartSettings.ts @@ -19,7 +19,7 @@ import { SORT_BY_GROUP_BY_FIELD_SETTING } from '@/command-menu/pages/page-layout import { STACKED_BARS_SETTING } from '@/command-menu/pages/page-layout/constants/settings/StackedBarsSetting'; import { type ChartSettingsGroup } from '@/command-menu/pages/page-layout/types/ChartSettingsGroup'; import { IconAxisX, IconAxisY } from 'twenty-ui/display'; -import { BarChartLayout } from '~/generated/graphql'; +import { BarChartLayout } from '~/generated-metadata/graphql'; export const getBarChartSettings = ( layout: BarChartLayout, diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getChartAxisNameDisplayOptions.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getChartAxisNameDisplayOptions.ts index 6aed2c464b..42dac40c8e 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getChartAxisNameDisplayOptions.ts +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getChartAxisNameDisplayOptions.ts @@ -1,6 +1,6 @@ import { t } from '@lingui/core/macro'; import { assertUnreachable } from 'twenty-shared/utils'; -import { AxisNameDisplay } from '~/generated/graphql'; +import { AxisNameDisplay } from '~/generated-metadata/graphql'; export const getChartAxisNameDisplayOptions = (option: AxisNameDisplay) => { switch (option) { diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getChartDefaultOrderByForFieldType.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getChartDefaultOrderByForFieldType.ts index 2ff797d6ff..3d7826cdba 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getChartDefaultOrderByForFieldType.ts +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getChartDefaultOrderByForFieldType.ts @@ -1,5 +1,5 @@ import { FieldMetadataType } from 'twenty-shared/types'; -import { GraphOrderBy } from '~/generated/graphql'; +import { GraphOrderBy } from '~/generated-metadata/graphql'; export const getChartDefaultOrderByForFieldType = ( fieldType: FieldMetadataType, diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getChartLimitMessage.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getChartLimitMessage.ts index 5878fb2021..d53e2510a7 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getChartLimitMessage.ts +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getChartLimitMessage.ts @@ -5,7 +5,7 @@ import { PIE_CHART_MAXIMUM_NUMBER_OF_SLICES } from '@/page-layout/widgets/graph/ import { t } from '@lingui/core/macro'; import { type ObjectRecordGroupByDateGranularity } from 'twenty-shared/types'; import { isDefined } from 'twenty-shared/utils'; -import { WidgetConfigurationType } from '~/generated/graphql'; +import { WidgetConfigurationType } from '~/generated-metadata/graphql'; type GetChartLimitMessageParams = { widgetConfigurationType: WidgetConfigurationType; diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getConfigurationTypeFromGraphType.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getConfigurationTypeFromGraphType.ts index 11276533d3..68e958ea9c 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getConfigurationTypeFromGraphType.ts +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getConfigurationTypeFromGraphType.ts @@ -1,6 +1,6 @@ import { GraphType } from '@/command-menu/pages/page-layout/types/GraphType'; import { assertUnreachable } from 'twenty-shared/utils'; -import { WidgetConfigurationType } from '~/generated/graphql'; +import { WidgetConfigurationType } from '~/generated-metadata/graphql'; export const getConfigurationTypeFromGraphType = ( graphType: GraphType, diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getCurrentGraphTypeFromConfig.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getCurrentGraphTypeFromConfig.ts index 1200226b88..69cda0cce3 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getCurrentGraphTypeFromConfig.ts +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getCurrentGraphTypeFromConfig.ts @@ -2,7 +2,7 @@ import { type ChartConfiguration } from '@/command-menu/pages/page-layout/types/ import { GraphType } from '@/command-menu/pages/page-layout/types/GraphType'; import { isWidgetConfigurationOfType } from '@/command-menu/pages/page-layout/utils/isWidgetConfigurationOfType'; import { t } from '@lingui/core/macro'; -import { BarChartLayout } from '~/generated/graphql'; +import { BarChartLayout } from '~/generated-metadata/graphql'; export const getCurrentGraphTypeFromConfig = ( configuration: ChartConfiguration, diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getManualSortOrderFromConfig.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getManualSortOrderFromConfig.ts index 076bc718a5..f3f9ff7960 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getManualSortOrderFromConfig.ts +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getManualSortOrderFromConfig.ts @@ -1,6 +1,6 @@ import { isWidgetConfigurationOfType } from '@/command-menu/pages/page-layout/utils/isWidgetConfigurationOfType'; import { isDefined } from 'twenty-shared/utils'; -import { type WidgetConfiguration } from '~/generated/graphql'; +import { type WidgetConfiguration } from '~/generated-metadata/graphql'; export const getManualSortOrderFromConfig = ( configuration: WidgetConfiguration, diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getSortIconForFieldType.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getSortIconForFieldType.ts index d4eaa635b7..d1aec08039 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getSortIconForFieldType.ts +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getSortIconForFieldType.ts @@ -12,7 +12,7 @@ import { IconSortDescendingLetters, IconSortDescendingNumbers, } from 'twenty-ui/display'; -import { GraphOrderBy } from '~/generated/graphql'; +import { GraphOrderBy } from '~/generated-metadata/graphql'; export const getSortIconForFieldType = ({ fieldType, diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getSortLabelSuffixForFieldType.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getSortLabelSuffixForFieldType.ts index 5be5b01d54..c079d3a35b 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getSortLabelSuffixForFieldType.ts +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getSortLabelSuffixForFieldType.ts @@ -6,7 +6,7 @@ import { isFieldMetadataTextKind, } from 'twenty-shared/utils'; -import { GraphOrderBy } from '~/generated/graphql'; +import { GraphOrderBy } from '~/generated-metadata/graphql'; export const getSortLabelSuffixForFieldType = ({ fieldType, diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/isChartWidget.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/isChartWidget.ts index c9955387aa..351e88bcde 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/isChartWidget.ts +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/isChartWidget.ts @@ -1,7 +1,7 @@ import { type ChartWidget } from '@/command-menu/pages/page-layout/types/ChartWidget'; import { isWidgetConfigurationOfTypeGraph } from '@/command-menu/pages/page-layout/utils/isWidgetConfigurationOfTypeGraph'; import { type PageLayoutWidget } from '@/page-layout/types/PageLayoutWidget'; -import { type WidgetConfiguration } from '~/generated/graphql'; +import { type WidgetConfiguration } from '~/generated-metadata/graphql'; export const isChartWidget = ( pageLayoutWidget: PageLayoutWidget, diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/isExistingWidgetMissingOrDifferentType.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/isExistingWidgetMissingOrDifferentType.ts index 68ecfd170d..1545d3d7fe 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/isExistingWidgetMissingOrDifferentType.ts +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/isExistingWidgetMissingOrDifferentType.ts @@ -1,4 +1,4 @@ -import { type WidgetType } from '~/generated/graphql'; +import { type WidgetType } from '~/generated-metadata/graphql'; export const isExistingWidgetMissingOrDifferentType = ( existingWidgetType: WidgetType | undefined, diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/isWidgetConfigurationOfType.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/isWidgetConfigurationOfType.ts index 789fcf1e89..c85de34a17 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/isWidgetConfigurationOfType.ts +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/isWidgetConfigurationOfType.ts @@ -22,7 +22,7 @@ import { type WorkflowConfiguration, type WorkflowRunConfiguration, type WorkflowVersionConfiguration, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; type WidgetConfigurationTypenameMap = { AggregateChartConfiguration: Omit< diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/isWidgetConfigurationOfTypeGraph.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/isWidgetConfigurationOfTypeGraph.ts index 9e66e4034b..d600af3836 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/isWidgetConfigurationOfTypeGraph.ts +++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/isWidgetConfigurationOfTypeGraph.ts @@ -2,7 +2,7 @@ import { type ChartConfiguration } from '@/command-menu/pages/page-layout/types/ import { isWidgetConfigurationOfType } from '@/command-menu/pages/page-layout/utils/isWidgetConfigurationOfType'; import { type FieldConfiguration } from '@/page-layout/types/FieldConfiguration'; import { type FieldsConfiguration } from '@/page-layout/types/FieldsConfiguration'; -import { type WidgetConfiguration } from '~/generated/graphql'; +import { type WidgetConfiguration } from '~/generated-metadata/graphql'; export const isWidgetConfigurationOfTypeGraph = ( configuration: diff --git a/packages/twenty-front/src/modules/command-menu/pages/workflow/action/components/CommandMenuWorkflowSelectAction.tsx b/packages/twenty-front/src/modules/command-menu/pages/workflow/action/components/CommandMenuWorkflowSelectAction.tsx index 8d3a6fa747..f853365be0 100644 --- a/packages/twenty-front/src/modules/command-menu/pages/workflow/action/components/CommandMenuWorkflowSelectAction.tsx +++ b/packages/twenty-front/src/modules/command-menu/pages/workflow/action/components/CommandMenuWorkflowSelectAction.tsx @@ -15,7 +15,7 @@ import { useLingui } from '@lingui/react/macro'; import { useRecoilValue } from 'recoil'; import { IconFunction } from 'twenty-ui/display'; import { MenuItem } from 'twenty-ui/navigation'; -import { FeatureFlagKey } from '~/generated/graphql'; +import { FeatureFlagKey } from '~/generated-metadata/graphql'; export type WorkflowActionSelection = { type: WorkflowActionType; diff --git a/packages/twenty-front/src/modules/localization/utils/format-preferences/__tests__/getDateFormatFromWorkspaceDateFormat.test.ts b/packages/twenty-front/src/modules/localization/utils/format-preferences/__tests__/getDateFormatFromWorkspaceDateFormat.test.ts index 3509e62151..cf94617885 100644 --- a/packages/twenty-front/src/modules/localization/utils/format-preferences/__tests__/getDateFormatFromWorkspaceDateFormat.test.ts +++ b/packages/twenty-front/src/modules/localization/utils/format-preferences/__tests__/getDateFormatFromWorkspaceDateFormat.test.ts @@ -1,6 +1,6 @@ import { DateFormat } from '@/localization/constants/DateFormat'; import { getDateFormatFromWorkspaceDateFormat } from '@/localization/utils/format-preferences/getDateFormatFromWorkspaceDateFormat'; -import { WorkspaceMemberDateFormatEnum } from '~/generated/graphql'; +import { WorkspaceMemberDateFormatEnum } from '~/generated-metadata/graphql'; // Mock detectDateFormat jest.mock('@/localization/utils/detection/detectDateFormat', () => ({ diff --git a/packages/twenty-front/src/modules/localization/utils/format-preferences/__tests__/getTimeFormatFromWorkspaceTimeFormat.test.ts b/packages/twenty-front/src/modules/localization/utils/format-preferences/__tests__/getTimeFormatFromWorkspaceTimeFormat.test.ts index 0581ee78c7..9e1c9d3239 100644 --- a/packages/twenty-front/src/modules/localization/utils/format-preferences/__tests__/getTimeFormatFromWorkspaceTimeFormat.test.ts +++ b/packages/twenty-front/src/modules/localization/utils/format-preferences/__tests__/getTimeFormatFromWorkspaceTimeFormat.test.ts @@ -1,6 +1,6 @@ import { TimeFormat } from '@/localization/constants/TimeFormat'; import { getTimeFormatFromWorkspaceTimeFormat } from '@/localization/utils/format-preferences/getTimeFormatFromWorkspaceTimeFormat'; -import { WorkspaceMemberTimeFormatEnum } from '~/generated/graphql'; +import { WorkspaceMemberTimeFormatEnum } from '~/generated-metadata/graphql'; // Mock detectTimeFormat jest.mock('@/localization/utils/detection/detectTimeFormat', () => ({ diff --git a/packages/twenty-front/src/modules/localization/utils/format-preferences/getDateFormatFromWorkspaceDateFormat.ts b/packages/twenty-front/src/modules/localization/utils/format-preferences/getDateFormatFromWorkspaceDateFormat.ts index 86dfdc6738..910c5c497f 100644 --- a/packages/twenty-front/src/modules/localization/utils/format-preferences/getDateFormatFromWorkspaceDateFormat.ts +++ b/packages/twenty-front/src/modules/localization/utils/format-preferences/getDateFormatFromWorkspaceDateFormat.ts @@ -1,6 +1,6 @@ import { DateFormat } from '@/localization/constants/DateFormat'; import { detectDateFormat } from '@/localization/utils/detection/detectDateFormat'; -import { WorkspaceMemberDateFormatEnum } from '~/generated/graphql'; +import { WorkspaceMemberDateFormatEnum } from '~/generated-metadata/graphql'; export const getDateFormatFromWorkspaceDateFormat = ( workspaceDateFormat: WorkspaceMemberDateFormatEnum, diff --git a/packages/twenty-front/src/modules/localization/utils/format-preferences/getDateFormatFromWorkspaceMember.ts b/packages/twenty-front/src/modules/localization/utils/format-preferences/getDateFormatFromWorkspaceMember.ts index 638c591126..6cdf4a92df 100644 --- a/packages/twenty-front/src/modules/localization/utils/format-preferences/getDateFormatFromWorkspaceMember.ts +++ b/packages/twenty-front/src/modules/localization/utils/format-preferences/getDateFormatFromWorkspaceMember.ts @@ -2,7 +2,7 @@ import { type CurrentWorkspaceMember } from '@/auth/states/currentWorkspaceMembe import { DateFormat } from '@/localization/constants/DateFormat'; import { detectDateFormat } from '@/localization/utils/detection/detectDateFormat'; import { type WorkspaceMember } from '@/workspace-member/types/WorkspaceMember'; -import { WorkspaceMemberDateFormatEnum } from '~/generated/graphql'; +import { WorkspaceMemberDateFormatEnum } from '~/generated-metadata/graphql'; export const getDateFormatFromWorkspaceMember = ( workspaceMember: WorkspaceMember | CurrentWorkspaceMember, diff --git a/packages/twenty-front/src/modules/localization/utils/format-preferences/getNumberFormatFromWorkspaceMember.ts b/packages/twenty-front/src/modules/localization/utils/format-preferences/getNumberFormatFromWorkspaceMember.ts index 052af2a7c4..07f5c4a0f2 100644 --- a/packages/twenty-front/src/modules/localization/utils/format-preferences/getNumberFormatFromWorkspaceMember.ts +++ b/packages/twenty-front/src/modules/localization/utils/format-preferences/getNumberFormatFromWorkspaceMember.ts @@ -2,7 +2,7 @@ import { type CurrentWorkspaceMember } from '@/auth/states/currentWorkspaceMembe import { NumberFormat } from '@/localization/constants/NumberFormat'; import { detectNumberFormat } from '@/localization/utils/detection/detectNumberFormat'; import { type WorkspaceMember } from '@/workspace-member/types/WorkspaceMember'; -import { WorkspaceMemberNumberFormatEnum } from '~/generated/graphql'; +import { WorkspaceMemberNumberFormatEnum } from '~/generated-metadata/graphql'; export const getNumberFormatFromWorkspaceMember = ( workspaceMember: WorkspaceMember | CurrentWorkspaceMember, diff --git a/packages/twenty-front/src/modules/localization/utils/format-preferences/getNumberFormatFromWorkspaceNumberFormat.ts b/packages/twenty-front/src/modules/localization/utils/format-preferences/getNumberFormatFromWorkspaceNumberFormat.ts index 92521670c1..a0897a56ec 100644 --- a/packages/twenty-front/src/modules/localization/utils/format-preferences/getNumberFormatFromWorkspaceNumberFormat.ts +++ b/packages/twenty-front/src/modules/localization/utils/format-preferences/getNumberFormatFromWorkspaceNumberFormat.ts @@ -1,6 +1,6 @@ import { NumberFormat } from '@/localization/constants/NumberFormat'; import { detectNumberFormat } from '@/localization/utils/detection/detectNumberFormat'; -import { WorkspaceMemberNumberFormatEnum } from '~/generated/graphql'; +import { WorkspaceMemberNumberFormatEnum } from '~/generated-metadata/graphql'; export const getNumberFormatFromWorkspaceNumberFormat = ( numberFormat: WorkspaceMemberNumberFormatEnum, diff --git a/packages/twenty-front/src/modules/localization/utils/format-preferences/getTimeFormatFromWorkspaceMember.ts b/packages/twenty-front/src/modules/localization/utils/format-preferences/getTimeFormatFromWorkspaceMember.ts index 883523d9fd..2c0202c29d 100644 --- a/packages/twenty-front/src/modules/localization/utils/format-preferences/getTimeFormatFromWorkspaceMember.ts +++ b/packages/twenty-front/src/modules/localization/utils/format-preferences/getTimeFormatFromWorkspaceMember.ts @@ -2,7 +2,7 @@ import { type CurrentWorkspaceMember } from '@/auth/states/currentWorkspaceMembe import { TimeFormat } from '@/localization/constants/TimeFormat'; import { detectTimeFormat } from '@/localization/utils/detection/detectTimeFormat'; import { type WorkspaceMember } from '@/workspace-member/types/WorkspaceMember'; -import { WorkspaceMemberTimeFormatEnum } from '~/generated/graphql'; +import { WorkspaceMemberTimeFormatEnum } from '~/generated-metadata/graphql'; export const getTimeFormatFromWorkspaceMember = ( workspaceMember: WorkspaceMember | CurrentWorkspaceMember, diff --git a/packages/twenty-front/src/modules/localization/utils/format-preferences/getTimeFormatFromWorkspaceTimeFormat.ts b/packages/twenty-front/src/modules/localization/utils/format-preferences/getTimeFormatFromWorkspaceTimeFormat.ts index bf51187c82..f744bd21a3 100644 --- a/packages/twenty-front/src/modules/localization/utils/format-preferences/getTimeFormatFromWorkspaceTimeFormat.ts +++ b/packages/twenty-front/src/modules/localization/utils/format-preferences/getTimeFormatFromWorkspaceTimeFormat.ts @@ -1,6 +1,6 @@ import { TimeFormat } from '@/localization/constants/TimeFormat'; import { detectTimeFormat } from '@/localization/utils/detection/detectTimeFormat'; -import { WorkspaceMemberTimeFormatEnum } from '~/generated/graphql'; +import { WorkspaceMemberTimeFormatEnum } from '~/generated-metadata/graphql'; export const getTimeFormatFromWorkspaceTimeFormat = ( workspaceTimeFormat: WorkspaceMemberTimeFormatEnum, diff --git a/packages/twenty-front/src/modules/localization/utils/format-preferences/getWorkspaceDateFormatFromDateFormat.ts b/packages/twenty-front/src/modules/localization/utils/format-preferences/getWorkspaceDateFormatFromDateFormat.ts index 4f319267ca..794e5d203f 100644 --- a/packages/twenty-front/src/modules/localization/utils/format-preferences/getWorkspaceDateFormatFromDateFormat.ts +++ b/packages/twenty-front/src/modules/localization/utils/format-preferences/getWorkspaceDateFormatFromDateFormat.ts @@ -1,5 +1,5 @@ import { DateFormat } from '@/localization/constants/DateFormat'; -import { WorkspaceMemberDateFormatEnum } from '~/generated/graphql'; +import { WorkspaceMemberDateFormatEnum } from '~/generated-metadata/graphql'; export const getWorkspaceDateFormatFromDateFormat = ( dateFormat: DateFormat, diff --git a/packages/twenty-front/src/modules/localization/utils/format-preferences/getWorkspaceNumberFormatFromNumberFormat.ts b/packages/twenty-front/src/modules/localization/utils/format-preferences/getWorkspaceNumberFormatFromNumberFormat.ts index 1f04817dcd..0c7029452f 100644 --- a/packages/twenty-front/src/modules/localization/utils/format-preferences/getWorkspaceNumberFormatFromNumberFormat.ts +++ b/packages/twenty-front/src/modules/localization/utils/format-preferences/getWorkspaceNumberFormatFromNumberFormat.ts @@ -1,5 +1,5 @@ import { NumberFormat } from '@/localization/constants/NumberFormat'; -import { WorkspaceMemberNumberFormatEnum } from '~/generated/graphql'; +import { WorkspaceMemberNumberFormatEnum } from '~/generated-metadata/graphql'; export const getWorkspaceNumberFormatFromNumberFormat = ( numberFormat: NumberFormat, diff --git a/packages/twenty-front/src/modules/localization/utils/format-preferences/getWorkspaceTimeFormatFromTimeFormat.ts b/packages/twenty-front/src/modules/localization/utils/format-preferences/getWorkspaceTimeFormatFromTimeFormat.ts index 8655ae605a..4afd112704 100644 --- a/packages/twenty-front/src/modules/localization/utils/format-preferences/getWorkspaceTimeFormatFromTimeFormat.ts +++ b/packages/twenty-front/src/modules/localization/utils/format-preferences/getWorkspaceTimeFormatFromTimeFormat.ts @@ -1,5 +1,5 @@ import { TimeFormat } from '@/localization/constants/TimeFormat'; -import { WorkspaceMemberTimeFormatEnum } from '~/generated/graphql'; +import { WorkspaceMemberTimeFormatEnum } from '~/generated-metadata/graphql'; export const getWorkspaceTimeFormatFromTimeFormat = ( timeFormat: TimeFormat, diff --git a/packages/twenty-front/src/modules/navigation-menu-item/components/CurrentWorkspaceMemberNavigationMenuItemFoldersDispatcher.tsx b/packages/twenty-front/src/modules/navigation-menu-item/components/CurrentWorkspaceMemberNavigationMenuItemFoldersDispatcher.tsx index 40e9345566..179372b5ee 100644 --- a/packages/twenty-front/src/modules/navigation-menu-item/components/CurrentWorkspaceMemberNavigationMenuItemFoldersDispatcher.tsx +++ b/packages/twenty-front/src/modules/navigation-menu-item/components/CurrentWorkspaceMemberNavigationMenuItemFoldersDispatcher.tsx @@ -1,4 +1,4 @@ -import { FeatureFlagKey } from '~/generated/graphql'; +import { FeatureFlagKey } from '~/generated-metadata/graphql'; import { CurrentWorkspaceMemberFavoritesFolders } from '@/favorites/components/CurrentWorkspaceMemberFavoritesFolders'; import { CurrentWorkspaceMemberNavigationMenuItemFolders } from '@/navigation-menu-item/components/CurrentWorkspaceMemberNavigationMenuItemFolders'; diff --git a/packages/twenty-front/src/modules/navigation-menu-item/components/NavigationMenuEditModeBar.tsx b/packages/twenty-front/src/modules/navigation-menu-item/components/NavigationMenuEditModeBar.tsx index 314b5b1395..906cbd643a 100644 --- a/packages/twenty-front/src/modules/navigation-menu-item/components/NavigationMenuEditModeBar.tsx +++ b/packages/twenty-front/src/modules/navigation-menu-item/components/NavigationMenuEditModeBar.tsx @@ -14,7 +14,7 @@ import { selectedNavigationMenuItemInEditModeState } from '@/navigation-menu-ite import { SaveAndCancelButtons } from '@/settings/components/SaveAndCancelButtons/SaveAndCancelButtons'; import { useSnackBar } from '@/ui/feedback/snack-bar-manager/hooks/useSnackBar'; import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled'; -import { FeatureFlagKey } from '~/generated/graphql'; +import { FeatureFlagKey } from '~/generated-metadata/graphql'; const StyledContainer = styled.div` align-items: center; diff --git a/packages/twenty-front/src/modules/navigation-menu-item/components/NavigationMenuItemFolderContentDispatcher.tsx b/packages/twenty-front/src/modules/navigation-menu-item/components/NavigationMenuItemFolderContentDispatcher.tsx index 2be2a8f947..ca4bb7e7bc 100644 --- a/packages/twenty-front/src/modules/navigation-menu-item/components/NavigationMenuItemFolderContentDispatcher.tsx +++ b/packages/twenty-front/src/modules/navigation-menu-item/components/NavigationMenuItemFolderContentDispatcher.tsx @@ -1,5 +1,5 @@ import { isDefined } from 'twenty-shared/utils'; -import { FeatureFlagKey } from '~/generated/graphql'; +import { FeatureFlagKey } from '~/generated-metadata/graphql'; import { FavoritesFolderContent } from '@/favorites/components/FavoritesFolderContent'; import { type ProcessedFavorite } from '@/favorites/utils/sortFavorites'; diff --git a/packages/twenty-front/src/modules/navigation-menu-item/components/WorkspaceNavigationMenuItemsDispatcher.tsx b/packages/twenty-front/src/modules/navigation-menu-item/components/WorkspaceNavigationMenuItemsDispatcher.tsx index d8b8e22e11..ad862615ec 100644 --- a/packages/twenty-front/src/modules/navigation-menu-item/components/WorkspaceNavigationMenuItemsDispatcher.tsx +++ b/packages/twenty-front/src/modules/navigation-menu-item/components/WorkspaceNavigationMenuItemsDispatcher.tsx @@ -1,4 +1,4 @@ -import { FeatureFlagKey } from '~/generated/graphql'; +import { FeatureFlagKey } from '~/generated-metadata/graphql'; import { WorkspaceFavorites } from '@/favorites/components/WorkspaceFavorites'; import { WorkspaceNavigationMenuItems } from '@/navigation-menu-item/components/WorkspaceNavigationMenuItems'; diff --git a/packages/twenty-front/src/modules/navigation/components/MainNavigationDrawer.tsx b/packages/twenty-front/src/modules/navigation/components/MainNavigationDrawer.tsx index f60f934cb4..867e9839ce 100644 --- a/packages/twenty-front/src/modules/navigation/components/MainNavigationDrawer.tsx +++ b/packages/twenty-front/src/modules/navigation/components/MainNavigationDrawer.tsx @@ -13,7 +13,7 @@ import { NavigationDrawerScrollableContent } from '@/ui/navigation/navigation-dr import { currentFavoriteFolderIdState } from '@/ui/navigation/navigation-drawer/states/currentFavoriteFolderIdState'; import { currentNavigationMenuItemFolderIdState } from '@/ui/navigation/navigation-drawer/states/currentNavigationMenuItemFolderIdState'; import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled'; -import { FeatureFlagKey } from '~/generated/graphql'; +import { FeatureFlagKey } from '~/generated-metadata/graphql'; const StyledScrollableContent = styled.div` height: 100%; diff --git a/packages/twenty-front/src/modules/navigation/components/MainNavigationDrawerFixedItems.tsx b/packages/twenty-front/src/modules/navigation/components/MainNavigationDrawerFixedItems.tsx index 8399f4114f..78abcbd17b 100644 --- a/packages/twenty-front/src/modules/navigation/components/MainNavigationDrawerFixedItems.tsx +++ b/packages/twenty-front/src/modules/navigation/components/MainNavigationDrawerFixedItems.tsx @@ -12,7 +12,7 @@ import { SettingsPath } from 'twenty-shared/types'; import { getSettingsPath } from 'twenty-shared/utils'; import { IconSearch, IconSettings, IconSparkles } from 'twenty-ui/display'; import { useIsMobile } from 'twenty-ui/utilities'; -import { FeatureFlagKey } from '~/generated/graphql'; +import { FeatureFlagKey } from '~/generated-metadata/graphql'; export const MainNavigationDrawerFixedItems = () => { const isMobile = useIsMobile(); diff --git a/packages/twenty-front/src/modules/navigation/hooks/__tests__/useDefaultHomePagePath.test.ts b/packages/twenty-front/src/modules/navigation/hooks/__tests__/useDefaultHomePagePath.test.ts index 3af06f1c7a..99c525d9c5 100644 --- a/packages/twenty-front/src/modules/navigation/hooks/__tests__/useDefaultHomePagePath.test.ts +++ b/packages/twenty-front/src/modules/navigation/hooks/__tests__/useDefaultHomePagePath.test.ts @@ -13,7 +13,7 @@ import { ViewOpenRecordIn, ViewType, ViewVisibility, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; import { getMockCompanyObjectMetadataItem } from '~/testing/mock-data/companies'; import { mockedUserData } from '~/testing/mock-data/users'; import { generatedMockObjectMetadataItems } from '~/testing/utils/generatedMockObjectMetadataItems'; diff --git a/packages/twenty-front/src/modules/object-metadata/components/NavigationDrawerOpenedSection.tsx b/packages/twenty-front/src/modules/object-metadata/components/NavigationDrawerOpenedSection.tsx index c943e3b07a..be1bd61fca 100644 --- a/packages/twenty-front/src/modules/object-metadata/components/NavigationDrawerOpenedSection.tsx +++ b/packages/twenty-front/src/modules/object-metadata/components/NavigationDrawerOpenedSection.tsx @@ -9,7 +9,7 @@ import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSi import { useIsPrefetchLoading } from '@/prefetch/hooks/useIsPrefetchLoading'; import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled'; import { useLingui } from '@lingui/react/macro'; -import { FeatureFlagKey } from '~/generated/graphql'; +import { FeatureFlagKey } from '~/generated-metadata/graphql'; const WORKFLOW_OBJECTS_IN_SIDEBAR = [ CoreObjectNameSingular.Workflow, diff --git a/packages/twenty-front/src/modules/object-metadata/components/PreComputedChipGeneratorsProvider.tsx b/packages/twenty-front/src/modules/object-metadata/components/PreComputedChipGeneratorsProvider.tsx index 330c04d443..f2c9445a24 100644 --- a/packages/twenty-front/src/modules/object-metadata/components/PreComputedChipGeneratorsProvider.tsx +++ b/packages/twenty-front/src/modules/object-metadata/components/PreComputedChipGeneratorsProvider.tsx @@ -6,7 +6,7 @@ import { PreComputedChipGeneratorsContext } from '@/object-metadata/contexts/Pre import { objectMetadataItemsState } from '@/object-metadata/states/objectMetadataItemsState'; import { getRecordChipGenerators } from '@/object-record/utils/getRecordChipGenerators'; import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled'; -import { FeatureFlagKey } from '~/generated/graphql'; +import { FeatureFlagKey } from '~/generated-metadata/graphql'; export const PreComputedChipGeneratorsProvider = ({ children, diff --git a/packages/twenty-front/src/modules/object-metadata/hooks/__mocks__/useFieldMetadataItem.ts b/packages/twenty-front/src/modules/object-metadata/hooks/__mocks__/useFieldMetadataItem.ts index 563829e196..850bce9174 100644 --- a/packages/twenty-front/src/modules/object-metadata/hooks/__mocks__/useFieldMetadataItem.ts +++ b/packages/twenty-front/src/modules/object-metadata/hooks/__mocks__/useFieldMetadataItem.ts @@ -1,5 +1,5 @@ import { gql } from '@apollo/client'; -import { FieldMetadataType } from '~/generated/graphql'; +import { FieldMetadataType } from '~/generated-metadata/graphql'; export const FIELD_METADATA_ID = '2c43466a-fe9e-4005-8d08-c5836067aa6c'; export const FIELD_RELATION_METADATA_ID = diff --git a/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/constants/CustomWorkspaceApplicationMock.test.constant.ts b/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/constants/CustomWorkspaceApplicationMock.test.constant.ts index 3f6bb09893..fcd217ead4 100644 --- a/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/constants/CustomWorkspaceApplicationMock.test.constant.ts +++ b/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/constants/CustomWorkspaceApplicationMock.test.constant.ts @@ -1,4 +1,4 @@ -import { type Application } from '~/generated/graphql'; +import { type Application } from '~/generated-metadata/graphql'; export const CUSTOM_WORKSPACE_APPLICATION_MOCK = { id: 'dc75f982-35a2-4c1b-a63d-bd1131215377', diff --git a/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/useColumnDefinitionsFromObjectMetadata.test.ts b/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/useColumnDefinitionsFromObjectMetadata.test.ts index 9ca1755059..87dc30a2a1 100644 --- a/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/useColumnDefinitionsFromObjectMetadata.test.ts +++ b/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/useColumnDefinitionsFromObjectMetadata.test.ts @@ -10,7 +10,7 @@ import { SubscriptionInterval, SubscriptionStatus, WorkspaceActivationStatus, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; import { getJestMetadataAndApolloMocksAndActionMenuWrapper } from '~/testing/jest/getJestMetadataAndApolloMocksAndActionMenuWrapper'; import { generatedMockObjectMetadataItems } from '~/testing/utils/generatedMockObjectMetadataItems'; diff --git a/packages/twenty-front/src/modules/object-metadata/validation-schemas/fieldMetadataItemSchema.ts b/packages/twenty-front/src/modules/object-metadata/validation-schemas/fieldMetadataItemSchema.ts index 53ad5a073a..09675a70b6 100644 --- a/packages/twenty-front/src/modules/object-metadata/validation-schemas/fieldMetadataItemSchema.ts +++ b/packages/twenty-front/src/modules/object-metadata/validation-schemas/fieldMetadataItemSchema.ts @@ -2,7 +2,7 @@ import { z } from 'zod'; import { metadataLabelSchema } from '@/object-metadata/validation-schemas/metadataLabelSchema'; import { themeColorSchema } from 'twenty-ui/theme'; -import { FieldMetadataType, RelationType } from '~/generated/graphql'; +import { FieldMetadataType, RelationType } from '~/generated-metadata/graphql'; import { camelCaseStringSchema } from '~/utils/validation-schemas/camelCaseStringSchema'; export const fieldMetadataItemSchema = (existingLabels?: string[]) => { diff --git a/packages/twenty-front/src/modules/object-metadata/validation-schemas/indexMetadataItemSchema.ts b/packages/twenty-front/src/modules/object-metadata/validation-schemas/indexMetadataItemSchema.ts index a569753945..f88c31d828 100644 --- a/packages/twenty-front/src/modules/object-metadata/validation-schemas/indexMetadataItemSchema.ts +++ b/packages/twenty-front/src/modules/object-metadata/validation-schemas/indexMetadataItemSchema.ts @@ -2,7 +2,7 @@ import { z } from 'zod'; import { type IndexMetadataItem } from '@/object-metadata/types/IndexMetadataItem'; import { indexFieldMetadataItemSchema } from '@/object-metadata/validation-schemas/indexFieldMetadataItemSchema'; -import { IndexType } from '~/generated/graphql'; +import { IndexType } from '~/generated-metadata/graphql'; export const indexMetadataItemSchema = z.object({ __typename: z.literal('Index'), diff --git a/packages/twenty-front/src/modules/object-record/hooks/useDeleteManyRecords.ts b/packages/twenty-front/src/modules/object-record/hooks/useDeleteManyRecords.ts index 82043378d7..4ce3aee4c6 100644 --- a/packages/twenty-front/src/modules/object-record/hooks/useDeleteManyRecords.ts +++ b/packages/twenty-front/src/modules/object-record/hooks/useDeleteManyRecords.ts @@ -20,7 +20,7 @@ import { getDeleteManyRecordsMutationResponseField } from '@/object-record/utils import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled'; import { useRecoilValue } from 'recoil'; import { isDefined } from 'twenty-shared/utils'; -import { FeatureFlagKey } from '~/generated/graphql'; +import { FeatureFlagKey } from '~/generated-metadata/graphql'; import { sleep } from '~/utils/sleep'; type useDeleteManyRecordProps = { diff --git a/packages/twenty-front/src/modules/object-record/hooks/useDestroyManyRecords.ts b/packages/twenty-front/src/modules/object-record/hooks/useDestroyManyRecords.ts index aa20e56e20..54615ea54d 100644 --- a/packages/twenty-front/src/modules/object-record/hooks/useDestroyManyRecords.ts +++ b/packages/twenty-front/src/modules/object-record/hooks/useDestroyManyRecords.ts @@ -16,7 +16,7 @@ import { getDestroyManyRecordsMutationResponseField } from '@/object-record/util import { useRemoveNavigationMenuItemByTargetRecordId } from '@/navigation-menu-item/hooks/useRemoveNavigationMenuItemByTargetRecordId'; import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled'; import { useRecoilValue } from 'recoil'; -import { FeatureFlagKey } from '~/generated/graphql'; +import { FeatureFlagKey } from '~/generated-metadata/graphql'; import { capitalize, isDefined } from 'twenty-shared/utils'; import { sleep } from '~/utils/sleep'; diff --git a/packages/twenty-front/src/modules/object-record/hooks/useIncrementalDeleteManyRecords.ts b/packages/twenty-front/src/modules/object-record/hooks/useIncrementalDeleteManyRecords.ts index 6729d74ff1..e4127d55d0 100644 --- a/packages/twenty-front/src/modules/object-record/hooks/useIncrementalDeleteManyRecords.ts +++ b/packages/twenty-front/src/modules/object-record/hooks/useIncrementalDeleteManyRecords.ts @@ -20,7 +20,7 @@ import { dispatchObjectRecordOperationBrowserEvent } from '@/object-record/utils import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled'; import { useCallback } from 'react'; import { isDefined } from 'twenty-shared/utils'; -import { FeatureFlagKey } from '~/generated/graphql'; +import { FeatureFlagKey } from '~/generated-metadata/graphql'; import { sleep } from '~/utils/sleep'; const DEFAULT_DELAY_BETWEEN_MUTATIONS_MS = 50; diff --git a/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownCustomView.tsx b/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownCustomView.tsx index dc997edb0f..a24b3e18c2 100644 --- a/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownCustomView.tsx +++ b/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownCustomView.tsx @@ -31,7 +31,7 @@ import { IconTrash, } from 'twenty-ui/display'; import { MenuItem } from 'twenty-ui/navigation'; -import { ViewCalendarLayout } from '~/generated/graphql'; +import { ViewCalendarLayout } from '~/generated-metadata/graphql'; interface ObjectOptionsDropdownCustomViewProps { onBackToDefault?: () => void; diff --git a/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownLayoutContent.tsx b/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownLayoutContent.tsx index aadc4c577a..779ee3df4f 100644 --- a/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownLayoutContent.tsx +++ b/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownLayoutContent.tsx @@ -37,7 +37,7 @@ import { OverflowingTextWithTooltip, } from 'twenty-ui/display'; import { MenuItem, MenuItemSelect, MenuItemToggle } from 'twenty-ui/navigation'; -import { ViewCalendarLayout } from '~/generated/graphql'; +import { ViewCalendarLayout } from '~/generated-metadata/graphql'; export const ObjectOptionsDropdownLayoutContent = () => { const { t } = useLingui(); diff --git a/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownVisibilityContent.tsx b/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownVisibilityContent.tsx index 8d9c9a7e08..1a8404d0f0 100644 --- a/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownVisibilityContent.tsx +++ b/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownVisibilityContent.tsx @@ -26,8 +26,10 @@ import { IconCopy, } from 'twenty-ui/display'; import { MenuItem, MenuItemSelect } from 'twenty-ui/navigation'; -import { ViewVisibility } from '~/generated-metadata/graphql'; -import { PermissionFlagType } from '~/generated/graphql'; +import { + ViewVisibility, + PermissionFlagType, +} from '~/generated-metadata/graphql'; export const ObjectOptionsDropdownVisibilityContent = () => { const { t } = useLingui(); diff --git a/packages/twenty-front/src/modules/object-record/object-options-dropdown/hooks/useSetViewTypeFromLayoutOptionsMenu.ts b/packages/twenty-front/src/modules/object-record/object-options-dropdown/hooks/useSetViewTypeFromLayoutOptionsMenu.ts index 8c0016dcfb..e1eb9b3dde 100644 --- a/packages/twenty-front/src/modules/object-record/object-options-dropdown/hooks/useSetViewTypeFromLayoutOptionsMenu.ts +++ b/packages/twenty-front/src/modules/object-record/object-options-dropdown/hooks/useSetViewTypeFromLayoutOptionsMenu.ts @@ -14,7 +14,7 @@ import { useGetAvailableFieldsForCalendar } from '@/views/view-picker/hooks/useG import { useGetAvailableFieldsToGroupRecordsBy } from '@/views/view-picker/hooks/useGetAvailableFieldsToGroupRecordsBy'; import { useRecoilCallback, useSetRecoilState } from 'recoil'; import { assertUnreachable, isDefined } from 'twenty-shared/utils'; -import { ViewCalendarLayout } from '~/generated/graphql'; +import { ViewCalendarLayout } from '~/generated-metadata/graphql'; export const useSetViewTypeFromLayoutOptionsMenu = () => { const { updateCurrentView } = useUpdateCurrentView(); diff --git a/packages/twenty-front/src/modules/object-record/object-sort-dropdown/components/ObjectSortDropdownButton.tsx b/packages/twenty-front/src/modules/object-record/object-sort-dropdown/components/ObjectSortDropdownButton.tsx index adb8c88235..78f85c980e 100644 --- a/packages/twenty-front/src/modules/object-record/object-sort-dropdown/components/ObjectSortDropdownButton.tsx +++ b/packages/twenty-front/src/modules/object-record/object-sort-dropdown/components/ObjectSortDropdownButton.tsx @@ -34,7 +34,7 @@ import { findByProperty } from 'twenty-shared/utils'; import { IconX, useIcons } from 'twenty-ui/display'; import { MenuItem } from 'twenty-ui/navigation'; import { v4 } from 'uuid'; -import { ViewSortDirection } from '~/generated/graphql'; +import { ViewSortDirection } from '~/generated-metadata/graphql'; export const ObjectSortDropdownButton = () => { const { resetRecordSortDropdownSearchInput } = diff --git a/packages/twenty-front/src/modules/object-record/object-sort-dropdown/hooks/useResetSortDropdown.ts b/packages/twenty-front/src/modules/object-record/object-sort-dropdown/hooks/useResetSortDropdown.ts index 8ab37fc425..0b4e99fe0a 100644 --- a/packages/twenty-front/src/modules/object-record/object-sort-dropdown/hooks/useResetSortDropdown.ts +++ b/packages/twenty-front/src/modules/object-record/object-sort-dropdown/hooks/useResetSortDropdown.ts @@ -1,7 +1,7 @@ import { isRecordSortDirectionDropdownMenuUnfoldedComponentState } from '@/object-record/object-sort-dropdown/states/isRecordSortDirectionDropdownMenuUnfoldedComponentState'; import { selectedRecordSortDirectionComponentState } from '@/object-record/object-sort-dropdown/states/selectedRecordSortDirectionComponentState'; import { useSetRecoilComponentState } from '@/ui/utilities/state/component-state/hooks/useSetRecoilComponentState'; -import { ViewSortDirection } from '~/generated/graphql'; +import { ViewSortDirection } from '~/generated-metadata/graphql'; export const useResetSortDropdown = () => { const setIsRecordSortDirectionDropdownMenuUnfolded = diff --git a/packages/twenty-front/src/modules/object-record/object-sort-dropdown/states/selectedRecordSortDirectionComponentState.ts b/packages/twenty-front/src/modules/object-record/object-sort-dropdown/states/selectedRecordSortDirectionComponentState.ts index 29b0077a6e..16ba281903 100644 --- a/packages/twenty-front/src/modules/object-record/object-sort-dropdown/states/selectedRecordSortDirectionComponentState.ts +++ b/packages/twenty-front/src/modules/object-record/object-sort-dropdown/states/selectedRecordSortDirectionComponentState.ts @@ -1,6 +1,6 @@ import { ObjectSortDropdownComponentInstanceContext } from '@/object-record/object-sort-dropdown/states/context/ObjectSortDropdownComponentInstanceContext'; import { createComponentState } from '@/ui/utilities/state/component-state/utils/createComponentState'; -import { ViewSortDirection } from '~/generated/graphql'; +import { ViewSortDirection } from '~/generated-metadata/graphql'; export const selectedRecordSortDirectionComponentState = createComponentState({ diff --git a/packages/twenty-front/src/modules/object-record/object-sort-dropdown/utils/turnSortsIntoOrderBy.ts b/packages/twenty-front/src/modules/object-record/object-sort-dropdown/utils/turnSortsIntoOrderBy.ts index 16c71c66df..720e2f2962 100644 --- a/packages/twenty-front/src/modules/object-record/object-sort-dropdown/utils/turnSortsIntoOrderBy.ts +++ b/packages/twenty-front/src/modules/object-record/object-sort-dropdown/utils/turnSortsIntoOrderBy.ts @@ -14,7 +14,10 @@ import { import { hasObjectMetadataItemPositionField } from '@/object-metadata/utils/hasObjectMetadataItemPositionField'; import { type RecordSort } from '@/object-record/record-sort/types/RecordSort'; import { isDefined } from 'twenty-shared/utils'; -import { FieldMetadataType, ViewSortDirection } from '~/generated/graphql'; +import { + FieldMetadataType, + ViewSortDirection, +} from '~/generated-metadata/graphql'; export const turnSortsIntoOrderBy = ( objectMetadataItem: ObjectMetadataItem, diff --git a/packages/twenty-front/src/modules/object-record/read-only/utils/internal/isFieldMetadataReadOnlyByPermissions.ts b/packages/twenty-front/src/modules/object-record/read-only/utils/internal/isFieldMetadataReadOnlyByPermissions.ts index d3857a4e93..7bd5bbc66e 100644 --- a/packages/twenty-front/src/modules/object-record/read-only/utils/internal/isFieldMetadataReadOnlyByPermissions.ts +++ b/packages/twenty-front/src/modules/object-record/read-only/utils/internal/isFieldMetadataReadOnlyByPermissions.ts @@ -1,4 +1,4 @@ -import { type ObjectPermission } from '~/generated/graphql'; +import { type ObjectPermission } from '~/generated-metadata/graphql'; type IsFieldMetadataReadOnlyByPermissionParams = { objectPermissions: ObjectPermission; diff --git a/packages/twenty-front/src/modules/object-record/read-only/utils/isObjectMetadataReadOnly.ts b/packages/twenty-front/src/modules/object-record/read-only/utils/isObjectMetadataReadOnly.ts index 254e6da5b4..cf17c00784 100644 --- a/packages/twenty-front/src/modules/object-record/read-only/utils/isObjectMetadataReadOnly.ts +++ b/packages/twenty-front/src/modules/object-record/read-only/utils/isObjectMetadataReadOnly.ts @@ -1,5 +1,5 @@ import { type ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem'; -import { type ObjectPermission } from '~/generated/graphql'; +import { type ObjectPermission } from '~/generated-metadata/graphql'; import { isDefined } from 'twenty-shared/utils'; type IsObjectMetadataReadOnlyParams = { diff --git a/packages/twenty-front/src/modules/object-record/read-only/utils/isRecordFieldReadOnly.ts b/packages/twenty-front/src/modules/object-record/read-only/utils/isRecordFieldReadOnly.ts index e913b03143..64ae9ce0db 100644 --- a/packages/twenty-front/src/modules/object-record/read-only/utils/isRecordFieldReadOnly.ts +++ b/packages/twenty-front/src/modules/object-record/read-only/utils/isRecordFieldReadOnly.ts @@ -1,6 +1,6 @@ import { type FieldMetadataItem } from '@/object-metadata/types/FieldMetadataItem'; import { isFieldMetadataReadOnlyByPermissions } from '@/object-record/read-only/utils/internal/isFieldMetadataReadOnlyByPermissions'; -import { type ObjectPermission } from '~/generated/graphql'; +import { type ObjectPermission } from '~/generated-metadata/graphql'; type IsRecordFieldReadOnlyParams = { isRecordReadOnly: boolean; diff --git a/packages/twenty-front/src/modules/object-record/read-only/utils/isRecordReadOnly.ts b/packages/twenty-front/src/modules/object-record/read-only/utils/isRecordReadOnly.ts index 029506ba62..93c4b30b56 100644 --- a/packages/twenty-front/src/modules/object-record/read-only/utils/isRecordReadOnly.ts +++ b/packages/twenty-front/src/modules/object-record/read-only/utils/isRecordReadOnly.ts @@ -1,6 +1,6 @@ import { type ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem'; import { isObjectMetadataReadOnly } from '@/object-record/read-only/utils/isObjectMetadataReadOnly'; -import { type ObjectPermission } from '~/generated/graphql'; +import { type ObjectPermission } from '~/generated-metadata/graphql'; export type IsObjectReadOnlyParams = { objectPermissions: ObjectPermission; diff --git a/packages/twenty-front/src/modules/object-record/record-board/contexts/RecordBoardContext.ts b/packages/twenty-front/src/modules/object-record/record-board/contexts/RecordBoardContext.ts index 668cc9daf0..44b4c084b5 100644 --- a/packages/twenty-front/src/modules/object-record/record-board/contexts/RecordBoardContext.ts +++ b/packages/twenty-front/src/modules/object-record/record-board/contexts/RecordBoardContext.ts @@ -3,7 +3,7 @@ import { createContext } from 'react'; import { type FieldMetadataItem } from '@/object-metadata/types/FieldMetadataItem'; import { type ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem'; import { type ObjectRecord } from '@/object-record/types/ObjectRecord'; -import { type ObjectPermission } from '~/generated/graphql'; +import { type ObjectPermission } from '~/generated-metadata/graphql'; type RecordBoardContextProps = { objectMetadataItem: ObjectMetadataItem; diff --git a/packages/twenty-front/src/modules/object-record/record-calendar/contexts/RecordCalendarContext.ts b/packages/twenty-front/src/modules/object-record/record-calendar/contexts/RecordCalendarContext.ts index 64febe8c8f..0451e3c838 100644 --- a/packages/twenty-front/src/modules/object-record/record-calendar/contexts/RecordCalendarContext.ts +++ b/packages/twenty-front/src/modules/object-record/record-calendar/contexts/RecordCalendarContext.ts @@ -1,6 +1,6 @@ import { type ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem'; import { type RecordField } from '@/object-record/record-field/types/RecordField'; -import { type ObjectPermission } from '~/generated/graphql'; +import { type ObjectPermission } from '~/generated-metadata/graphql'; import { createRequiredContext } from '~/utils/createRequiredContext'; type RecordCalendarContextValue = { diff --git a/packages/twenty-front/src/modules/object-record/record-field-list/hooks/useFieldListFieldMetadataItems.ts b/packages/twenty-front/src/modules/object-record/record-field-list/hooks/useFieldListFieldMetadataItems.ts index 7c6bee0009..725e3375c7 100644 --- a/packages/twenty-front/src/modules/object-record/record-field-list/hooks/useFieldListFieldMetadataItems.ts +++ b/packages/twenty-front/src/modules/object-record/record-field-list/hooks/useFieldListFieldMetadataItems.ts @@ -7,7 +7,7 @@ import { isFieldCellSupported } from '@/object-record/utils/isFieldCellSupported import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled'; import groupBy from 'lodash.groupby'; import { FieldMetadataType } from 'twenty-shared/types'; -import { FeatureFlagKey } from '~/generated/graphql'; +import { FeatureFlagKey } from '~/generated-metadata/graphql'; type UseFieldListFieldMetadataItemsProps = { objectNameSingular: string; diff --git a/packages/twenty-front/src/modules/object-record/record-field-list/record-detail-section/components/RecordDetailRecordsListItemContainer.tsx b/packages/twenty-front/src/modules/object-record/record-field-list/record-detail-section/components/RecordDetailRecordsListItemContainer.tsx index f0f0807f81..11ce48f2c2 100644 --- a/packages/twenty-front/src/modules/object-record/record-field-list/record-detail-section/components/RecordDetailRecordsListItemContainer.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field-list/record-detail-section/components/RecordDetailRecordsListItemContainer.tsx @@ -1,7 +1,7 @@ import { useLayoutRenderingContext } from '@/ui/layout/contexts/LayoutRenderingContext'; import isPropValid from '@emotion/is-prop-valid'; import styled from '@emotion/styled'; -import { PageLayoutType } from '~/generated/graphql'; +import { PageLayoutType } from '~/generated-metadata/graphql'; const StyledListItem = styled('div', { shouldForwardProp: (prop) => diff --git a/packages/twenty-front/src/modules/object-record/record-field-list/record-detail-section/duplicate/components/__stories__/RecordDetailDuplicatesSection.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field-list/record-detail-section/duplicate/components/__stories__/RecordDetailDuplicatesSection.stories.tsx index d1d3c32ee4..328e0b26d3 100644 --- a/packages/twenty-front/src/modules/object-record/record-field-list/record-detail-section/duplicate/components/__stories__/RecordDetailDuplicatesSection.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field-list/record-detail-section/duplicate/components/__stories__/RecordDetailDuplicatesSection.stories.tsx @@ -10,7 +10,7 @@ import { getCompaniesMock } from '~/testing/mock-data/companies'; import { RecordDetailDuplicatesSection } from '@/object-record/record-field-list/record-detail-section/duplicate/components/RecordDetailDuplicatesSection'; import { ComponentDecorator } from 'twenty-ui/testing'; -import { PageLayoutType } from '~/generated/graphql'; +import { PageLayoutType } from '~/generated-metadata/graphql'; const companiesMock = getCompaniesMock(); diff --git a/packages/twenty-front/src/modules/object-record/record-field-list/record-detail-section/relation/components/__stories__/RecordDetailRelationSection.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field-list/record-detail-section/relation/components/__stories__/RecordDetailRelationSection.stories.tsx index 01de52e994..8dd39e29b0 100644 --- a/packages/twenty-front/src/modules/object-record/record-field-list/record-detail-section/relation/components/__stories__/RecordDetailRelationSection.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field-list/record-detail-section/relation/components/__stories__/RecordDetailRelationSection.stories.tsx @@ -14,7 +14,7 @@ import { RecordFieldsScopeContextProvider } from '@/object-record/record-field-l import { RecordDetailRelationSection } from '@/object-record/record-field-list/record-detail-section/relation/components/RecordDetailRelationSection'; import { LayoutRenderingProvider } from '@/ui/layout/contexts/LayoutRenderingContext'; import { ComponentDecorator } from 'twenty-ui/testing'; -import { PageLayoutType } from '~/generated/graphql'; +import { PageLayoutType } from '~/generated-metadata/graphql'; import { RightDrawerDecorator } from '~/testing/decorators/RightDrawerDecorator'; import { allMockPersonRecords } from '~/testing/mock-data/people'; import { generatedMockObjectMetadataItems } from '~/testing/utils/generatedMockObjectMetadataItems'; diff --git a/packages/twenty-front/src/modules/object-record/record-field/hooks/useRecordsFieldVisibleGqlFields.ts b/packages/twenty-front/src/modules/object-record/record-field/hooks/useRecordsFieldVisibleGqlFields.ts index 7866c609f8..7066c72bc0 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/hooks/useRecordsFieldVisibleGqlFields.ts +++ b/packages/twenty-front/src/modules/object-record/record-field/hooks/useRecordsFieldVisibleGqlFields.ts @@ -11,7 +11,7 @@ import { useRecordIndexContextOrThrow } from '@/object-record/record-index/conte import { useRecoilComponentValue } from '@/ui/utilities/state/component-state/hooks/useRecoilComponentValue'; import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled'; import { isDefined } from 'twenty-shared/utils'; -import { FeatureFlagKey } from '~/generated/graphql'; +import { FeatureFlagKey } from '~/generated-metadata/graphql'; type UseRecordsFieldVisibleGqlFields = { objectMetadataItem: ObjectMetadataItem; diff --git a/packages/twenty-front/src/modules/object-record/record-field/types/RecordField.ts b/packages/twenty-front/src/modules/object-record/record-field/types/RecordField.ts index 55abe5c69e..1522d167e9 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/types/RecordField.ts +++ b/packages/twenty-front/src/modules/object-record/record-field/types/RecordField.ts @@ -1,4 +1,4 @@ -import { type AggregateOperations } from '~/generated/graphql'; +import { type AggregateOperations } from '~/generated-metadata/graphql'; export type RecordField = { id: string; diff --git a/packages/twenty-front/src/modules/object-record/record-group/hooks/useRecordGroupActions.ts b/packages/twenty-front/src/modules/object-record/record-group/hooks/useRecordGroupActions.ts index db8f659b79..436c371546 100644 --- a/packages/twenty-front/src/modules/object-record/record-group/hooks/useRecordGroupActions.ts +++ b/packages/twenty-front/src/modules/object-record/record-group/hooks/useRecordGroupActions.ts @@ -25,7 +25,7 @@ import { IconEyeOff, IconSettings, } from 'twenty-ui/display'; -import { PermissionFlagType } from '~/generated/graphql'; +import { PermissionFlagType } from '~/generated-metadata/graphql'; import { useNavigateSettings } from '~/hooks/useNavigateSettings'; type UseRecordGroupActionsParams = { diff --git a/packages/twenty-front/src/modules/object-record/record-index/hooks/useAggregateGqlFieldsFromRecordIndexGroupAggregates.ts b/packages/twenty-front/src/modules/object-record/record-index/hooks/useAggregateGqlFieldsFromRecordIndexGroupAggregates.ts index 151133aa40..271d187f88 100644 --- a/packages/twenty-front/src/modules/object-record/record-index/hooks/useAggregateGqlFieldsFromRecordIndexGroupAggregates.ts +++ b/packages/twenty-front/src/modules/object-record/record-index/hooks/useAggregateGqlFieldsFromRecordIndexGroupAggregates.ts @@ -5,7 +5,7 @@ import { getAvailableAggregationsFromObjectFields } from '@/object-record/utils/ import { useMemo } from 'react'; import { type Nullable } from 'twenty-shared/types'; import { isDefined } from 'twenty-shared/utils'; -import { AggregateOperations } from '~/generated/graphql'; +import { AggregateOperations } from '~/generated-metadata/graphql'; export const useAggregateGqlFieldsFromRecordIndexGroupAggregates = ({ objectMetadataItem, diff --git a/packages/twenty-front/src/modules/object-record/record-index/hooks/useHandleRecordGroupField.ts b/packages/twenty-front/src/modules/object-record/record-index/hooks/useHandleRecordGroupField.ts index 473a62d728..949ce65a18 100644 --- a/packages/twenty-front/src/modules/object-record/record-index/hooks/useHandleRecordGroupField.ts +++ b/packages/twenty-front/src/modules/object-record/record-index/hooks/useHandleRecordGroupField.ts @@ -12,7 +12,7 @@ import { convertCoreViewToView } from '@/views/utils/convertCoreViewToView'; import { useRecoilCallback } from 'recoil'; import { isDefined } from 'twenty-shared/utils'; import { v4 } from 'uuid'; -import { type CoreView } from '~/generated/graphql'; +import { type CoreView } from '~/generated-metadata/graphql'; import { isUndefinedOrNull } from '~/utils/isUndefinedOrNull'; export const useHandleRecordGroupField = () => { diff --git a/packages/twenty-front/src/modules/object-record/record-index/hooks/useHandleToggleColumnSort.ts b/packages/twenty-front/src/modules/object-record/record-index/hooks/useHandleToggleColumnSort.ts index 399f118510..21d0c09814 100644 --- a/packages/twenty-front/src/modules/object-record/record-index/hooks/useHandleToggleColumnSort.ts +++ b/packages/twenty-front/src/modules/object-record/record-index/hooks/useHandleToggleColumnSort.ts @@ -8,7 +8,7 @@ import { getSnapshotValue } from '@/ui/utilities/state/utils/getSnapshotValue'; import { useRecoilCallback } from 'recoil'; import { isDefined } from 'twenty-shared/utils'; import { v4 } from 'uuid'; -import { ViewSortDirection } from '~/generated/graphql'; +import { ViewSortDirection } from '~/generated-metadata/graphql'; type UseHandleToggleColumnSortProps = { objectMetadataItemId: string; diff --git a/packages/twenty-front/src/modules/object-record/record-index/hooks/useRecordIndexGroupsRecordsLazyGroupBy.ts b/packages/twenty-front/src/modules/object-record/record-index/hooks/useRecordIndexGroupsRecordsLazyGroupBy.ts index a2aa2d21cf..2335a0dbd0 100644 --- a/packages/twenty-front/src/modules/object-record/record-index/hooks/useRecordIndexGroupsRecordsLazyGroupBy.ts +++ b/packages/twenty-front/src/modules/object-record/record-index/hooks/useRecordIndexGroupsRecordsLazyGroupBy.ts @@ -10,7 +10,7 @@ import { buildGroupByFieldObject } from '@/page-layout/widgets/graph/utils/build import { useLazyQuery } from '@apollo/client'; import { type Nullable } from 'twenty-shared/types'; import { isDefined } from 'twenty-shared/utils'; -import { type PageInfo } from '~/generated/graphql'; +import { type PageInfo } from '~/generated-metadata/graphql'; export type GroupsRecordsGroupByLazyResult = { [queryGqlFieldName: string]: Array<{ diff --git a/packages/twenty-front/src/modules/object-record/record-index/utils/getRecordndexAggregateDisplayLabel.ts b/packages/twenty-front/src/modules/object-record/record-index/utils/getRecordndexAggregateDisplayLabel.ts index 614d041e1c..6a0b109d45 100644 --- a/packages/twenty-front/src/modules/object-record/record-index/utils/getRecordndexAggregateDisplayLabel.ts +++ b/packages/twenty-front/src/modules/object-record/record-index/utils/getRecordndexAggregateDisplayLabel.ts @@ -3,7 +3,7 @@ import { getAggregateLabelWithFieldName } from '@/object-record/record-aggregate import { getAggregateOperationLabel } from '@/object-record/record-board/record-board-column/utils/getAggregateOperationLabel'; import { type ExtendedAggregateOperations } from '@/object-record/record-table/types/ExtendedAggregateOperations'; import { isDefined } from 'twenty-shared/utils'; -import { AggregateOperations } from '~/generated/graphql'; +import { AggregateOperations } from '~/generated-metadata/graphql'; type GetRecordIndexAggregateDisplayLabelParams = { aggregateOperation: ExtendedAggregateOperations; diff --git a/packages/twenty-front/src/modules/object-record/record-inline-cell/property-box/components/PropertyBox.tsx b/packages/twenty-front/src/modules/object-record/record-inline-cell/property-box/components/PropertyBox.tsx index eebbbb0491..126e91831d 100644 --- a/packages/twenty-front/src/modules/object-record/record-inline-cell/property-box/components/PropertyBox.tsx +++ b/packages/twenty-front/src/modules/object-record/record-inline-cell/property-box/components/PropertyBox.tsx @@ -1,7 +1,7 @@ import { useLayoutRenderingContext } from '@/ui/layout/contexts/LayoutRenderingContext'; import isPropValid from '@emotion/is-prop-valid'; import styled from '@emotion/styled'; -import { PageLayoutType } from '~/generated/graphql'; +import { PageLayoutType } from '~/generated-metadata/graphql'; interface PropertyBoxProps { children: React.ReactNode; diff --git a/packages/twenty-front/src/modules/object-record/record-merge/components/MergePreviewTab.tsx b/packages/twenty-front/src/modules/object-record/record-merge/components/MergePreviewTab.tsx index 2025be24ef..d4cfdca1bd 100644 --- a/packages/twenty-front/src/modules/object-record/record-merge/components/MergePreviewTab.tsx +++ b/packages/twenty-front/src/modules/object-record/record-merge/components/MergePreviewTab.tsx @@ -5,7 +5,7 @@ import { getCardComponent } from '@/object-record/record-show/utils/getCardCompo import { LayoutRenderingProvider } from '@/ui/layout/contexts/LayoutRenderingContext'; import { isDefined } from 'twenty-shared/utils'; import { Section } from 'twenty-ui/layout'; -import { PageLayoutType } from '~/generated/graphql'; +import { PageLayoutType } from '~/generated-metadata/graphql'; type MergePreviewTabProps = { objectNameSingular: string; diff --git a/packages/twenty-front/src/modules/object-record/record-merge/components/MergeRecordTab.tsx b/packages/twenty-front/src/modules/object-record/record-merge/components/MergeRecordTab.tsx index d55b602431..c085d15c72 100644 --- a/packages/twenty-front/src/modules/object-record/record-merge/components/MergeRecordTab.tsx +++ b/packages/twenty-front/src/modules/object-record/record-merge/components/MergeRecordTab.tsx @@ -3,7 +3,7 @@ import { CardType } from '@/object-record/record-show/types/CardType'; import { getCardComponent } from '@/object-record/record-show/utils/getCardComponent'; import { LayoutRenderingProvider } from '@/ui/layout/contexts/LayoutRenderingContext'; import { Section } from 'twenty-ui/layout'; -import { PageLayoutType } from '~/generated/graphql'; +import { PageLayoutType } from '~/generated-metadata/graphql'; type MergeRecordTabProps = { isInRightDrawer?: boolean; diff --git a/packages/twenty-front/src/modules/object-record/record-picker/multiple-record-picker/components/MultipleRecordPickerMenuItemContent.tsx b/packages/twenty-front/src/modules/object-record/record-picker/multiple-record-picker/components/MultipleRecordPickerMenuItemContent.tsx index 0d91892b94..69898e0c3e 100644 --- a/packages/twenty-front/src/modules/object-record/record-picker/multiple-record-picker/components/MultipleRecordPickerMenuItemContent.tsx +++ b/packages/twenty-front/src/modules/object-record/record-picker/multiple-record-picker/components/MultipleRecordPickerMenuItemContent.tsx @@ -17,7 +17,7 @@ import { Avatar } from 'twenty-ui/display'; import { MenuItemMultiSelectAvatar } from 'twenty-ui/navigation'; import { multipleRecordPickerSearchableObjectMetadataItemsComponentState } from '@/object-record/record-picker/multiple-record-picker/states/multipleRecordPickerSearchableObjectMetadataItemsComponentState'; -import { type SearchRecord } from '~/generated-metadata/graphql'; +import { type SearchRecord } from '~/generated/graphql'; export const StyledSelectableItem = styled(SelectableListItem)` height: 100%; diff --git a/packages/twenty-front/src/modules/object-record/record-picker/multiple-record-picker/hooks/useMultipleRecordPickerPerformSearch.ts b/packages/twenty-front/src/modules/object-record/record-picker/multiple-record-picker/hooks/useMultipleRecordPickerPerformSearch.ts index 2e1d9f823a..df631c9a11 100644 --- a/packages/twenty-front/src/modules/object-record/record-picker/multiple-record-picker/hooks/useMultipleRecordPickerPerformSearch.ts +++ b/packages/twenty-front/src/modules/object-record/record-picker/multiple-record-picker/hooks/useMultipleRecordPickerPerformSearch.ts @@ -16,8 +16,7 @@ import { type ApolloClient } from '@apollo/client'; import { isNonEmptyArray } from '@sniptt/guards'; import { useRecoilCallback } from 'recoil'; import { capitalize, isDefined } from 'twenty-shared/utils'; -import { type SearchRecord } from '~/generated-metadata/graphql'; -import { type SearchResultEdge } from '~/generated/graphql'; +import { type SearchRecord, type SearchResultEdge } from '~/generated/graphql'; const MULTIPLE_RECORD_PICKER_PAGE_SIZE = 30; diff --git a/packages/twenty-front/src/modules/object-record/record-picker/multiple-record-picker/states/searchRecordStoreComponentFamilyState.ts b/packages/twenty-front/src/modules/object-record/record-picker/multiple-record-picker/states/searchRecordStoreComponentFamilyState.ts index d524798e2c..4b31531af0 100644 --- a/packages/twenty-front/src/modules/object-record/record-picker/multiple-record-picker/states/searchRecordStoreComponentFamilyState.ts +++ b/packages/twenty-front/src/modules/object-record/record-picker/multiple-record-picker/states/searchRecordStoreComponentFamilyState.ts @@ -1,6 +1,6 @@ import { type ObjectRecord } from '@/object-record/types/ObjectRecord'; import { createFamilyState } from '@/ui/utilities/state/utils/createFamilyState'; -import { type SearchRecord } from '~/generated-metadata/graphql'; +import { type SearchRecord } from '~/generated/graphql'; export const searchRecordStoreFamilyState = createFamilyState< (SearchRecord & { record?: ObjectRecord }) | undefined, diff --git a/packages/twenty-front/src/modules/object-record/record-picker/multiple-record-picker/utils/__tests__/sortMorphItems.test.ts b/packages/twenty-front/src/modules/object-record/record-picker/multiple-record-picker/utils/__tests__/sortMorphItems.test.ts index 042aa2c828..a4a1ecb827 100644 --- a/packages/twenty-front/src/modules/object-record/record-picker/multiple-record-picker/utils/__tests__/sortMorphItems.test.ts +++ b/packages/twenty-front/src/modules/object-record/record-picker/multiple-record-picker/utils/__tests__/sortMorphItems.test.ts @@ -1,5 +1,5 @@ import { type RecordPickerPickableMorphItem } from '@/object-record/record-picker/types/RecordPickerPickableMorphItem'; -import { type SearchRecord } from '~/generated-metadata/graphql'; +import { type SearchRecord } from '~/generated/graphql'; import { sortMorphItems } from '@/object-record/record-picker/multiple-record-picker/utils/sortMorphItems'; const createMorphItem = ( diff --git a/packages/twenty-front/src/modules/object-record/record-picker/multiple-record-picker/utils/sortMorphItems.ts b/packages/twenty-front/src/modules/object-record/record-picker/multiple-record-picker/utils/sortMorphItems.ts index e32571f280..c37b3a02ff 100644 --- a/packages/twenty-front/src/modules/object-record/record-picker/multiple-record-picker/utils/sortMorphItems.ts +++ b/packages/twenty-front/src/modules/object-record/record-picker/multiple-record-picker/utils/sortMorphItems.ts @@ -1,5 +1,5 @@ import { type RecordPickerPickableMorphItem } from '@/object-record/record-picker/types/RecordPickerPickableMorphItem'; -import { type SearchRecord } from '~/generated-metadata/graphql'; +import { type SearchRecord } from '~/generated/graphql'; export const sortMorphItems = ( morphItems: RecordPickerPickableMorphItem[], diff --git a/packages/twenty-front/src/modules/object-record/record-show/components/PageLayoutRecordPageRenderer.tsx b/packages/twenty-front/src/modules/object-record/record-show/components/PageLayoutRecordPageRenderer.tsx index bdf62929e3..55caf67890 100644 --- a/packages/twenty-front/src/modules/object-record/record-show/components/PageLayoutRecordPageRenderer.tsx +++ b/packages/twenty-front/src/modules/object-record/record-show/components/PageLayoutRecordPageRenderer.tsx @@ -13,7 +13,7 @@ import { RightDrawerFooter } from '@/ui/layout/right-drawer/components/RightDraw import styled from '@emotion/styled'; import { useRecoilValue } from 'recoil'; import { isDefined } from 'twenty-shared/utils'; -import { PageLayoutType } from '~/generated/graphql'; +import { PageLayoutType } from '~/generated-metadata/graphql'; const StyledShowPageBannerContainer = styled.div` z-index: 1; diff --git a/packages/twenty-front/src/modules/object-record/record-show/components/SummaryCard.tsx b/packages/twenty-front/src/modules/object-record/record-show/components/SummaryCard.tsx index 10ec9da8be..1c21f06ee4 100644 --- a/packages/twenty-front/src/modules/object-record/record-show/components/SummaryCard.tsx +++ b/packages/twenty-front/src/modules/object-record/record-show/components/SummaryCard.tsx @@ -16,8 +16,10 @@ import { useIsMobile } from '@/ui/utilities/responsive/hooks/useIsMobile'; import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled'; import { useRecoilValue } from 'recoil'; import { isDefined } from 'twenty-shared/utils'; -import { FieldMetadataType } from '~/generated-metadata/graphql'; -import { FeatureFlagKey } from '~/generated/graphql'; +import { + FieldMetadataType, + FeatureFlagKey, +} from '~/generated-metadata/graphql'; type SummaryCardProps = { objectNameSingular: string; diff --git a/packages/twenty-front/src/modules/object-record/record-show/hooks/usePersonAvatarUpload.ts b/packages/twenty-front/src/modules/object-record/record-show/hooks/usePersonAvatarUpload.ts index d92c125224..e39906a3ec 100644 --- a/packages/twenty-front/src/modules/object-record/record-show/hooks/usePersonAvatarUpload.ts +++ b/packages/twenty-front/src/modules/object-record/record-show/hooks/usePersonAvatarUpload.ts @@ -9,8 +9,9 @@ import { FileFolder, useUploadFilesFieldFileMutation, useUploadImageMutation, + FeatureFlagKey, + FieldMetadataType, } from '~/generated-metadata/graphql'; -import { FeatureFlagKey, FieldMetadataType } from '~/generated/graphql'; export const usePersonAvatarUpload = (personRecordId: string) => { const coreClient = useApolloCoreClient(); diff --git a/packages/twenty-front/src/modules/object-record/record-sort/types/RecordSort.ts b/packages/twenty-front/src/modules/object-record/record-sort/types/RecordSort.ts index f419ff05ee..4f3cdf3424 100644 --- a/packages/twenty-front/src/modules/object-record/record-sort/types/RecordSort.ts +++ b/packages/twenty-front/src/modules/object-record/record-sort/types/RecordSort.ts @@ -1,4 +1,4 @@ -import { type ViewSortDirection } from '~/generated/graphql'; +import { type ViewSortDirection } from '~/generated-metadata/graphql'; export type RecordSort = { id: string; diff --git a/packages/twenty-front/src/modules/object-record/record-table/contexts/RecordTableContext.ts b/packages/twenty-front/src/modules/object-record/record-table/contexts/RecordTableContext.ts index 8b2987e203..e8e74540bc 100644 --- a/packages/twenty-front/src/modules/object-record/record-table/contexts/RecordTableContext.ts +++ b/packages/twenty-front/src/modules/object-record/record-table/contexts/RecordTableContext.ts @@ -1,6 +1,6 @@ import { type ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem'; import { type RecordField } from '@/object-record/record-field/types/RecordField'; -import { type ObjectPermission } from '~/generated/graphql'; +import { type ObjectPermission } from '~/generated-metadata/graphql'; import { createRequiredContext } from '~/utils/createRequiredContext'; type RecordTableContextValue = { diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-row/components/RecordTableRow.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-row/components/RecordTableRow.tsx index cfc2a2c75a..4242a3619e 100644 --- a/packages/twenty-front/src/modules/object-record/record-table/record-table-row/components/RecordTableRow.tsx +++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-row/components/RecordTableRow.tsx @@ -16,7 +16,7 @@ import { getDefaultRecordFieldsToListen } from '@/sse-db-event/utils/getDefaultR import { useRecoilComponentFamilyValue } from '@/ui/utilities/state/component-state/hooks/useRecoilComponentFamilyValue'; import { useRecoilComponentValue } from '@/ui/utilities/state/component-state/hooks/useRecoilComponentValue'; import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled'; -import { FeatureFlagKey } from '~/generated/graphql'; +import { FeatureFlagKey } from '~/generated-metadata/graphql'; type RecordTableRowProps = { recordId: string; diff --git a/packages/twenty-front/src/modules/object-record/record-table/types/ExtendedAggregateOperations.ts b/packages/twenty-front/src/modules/object-record/record-table/types/ExtendedAggregateOperations.ts index 6ce8d0890b..2b32fc484f 100644 --- a/packages/twenty-front/src/modules/object-record/record-table/types/ExtendedAggregateOperations.ts +++ b/packages/twenty-front/src/modules/object-record/record-table/types/ExtendedAggregateOperations.ts @@ -1,5 +1,5 @@ import { type DateAggregateOperations } from '@/object-record/record-table/constants/DateAggregateOperations'; -import { type AggregateOperations } from '~/generated/graphql'; +import { type AggregateOperations } from '~/generated-metadata/graphql'; export type ExtendedAggregateOperations = | AggregateOperations diff --git a/packages/twenty-front/src/modules/object-record/spreadsheet-import/utils/__tests__/buildRecordFromImportedStructuredRow.test.ts b/packages/twenty-front/src/modules/object-record/spreadsheet-import/utils/__tests__/buildRecordFromImportedStructuredRow.test.ts index 5710c32803..7c3472c653 100644 --- a/packages/twenty-front/src/modules/object-record/spreadsheet-import/utils/__tests__/buildRecordFromImportedStructuredRow.test.ts +++ b/packages/twenty-front/src/modules/object-record/spreadsheet-import/utils/__tests__/buildRecordFromImportedStructuredRow.test.ts @@ -5,8 +5,7 @@ import { type ImportedStructuredRow, type SpreadsheetImportField, } from '@/spreadsheet-import/types'; -import { FieldMetadataType } from '~/generated-metadata/graphql'; -import { RelationType } from '~/generated/graphql'; +import { FieldMetadataType, RelationType } from '~/generated-metadata/graphql'; describe('buildRecordFromImportedStructuredRow', () => { const fields: FieldMetadataItem[] = [ diff --git a/packages/twenty-front/src/modules/object-record/utils/prefillRecord.ts b/packages/twenty-front/src/modules/object-record/utils/prefillRecord.ts index 198e9392c6..2ad96b0fdb 100644 --- a/packages/twenty-front/src/modules/object-record/utils/prefillRecord.ts +++ b/packages/twenty-front/src/modules/object-record/utils/prefillRecord.ts @@ -5,7 +5,7 @@ import { type ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataI import { type ObjectRecord } from '@/object-record/types/ObjectRecord'; import { generateEmptyFieldValue } from '@/object-record/utils/generateEmptyFieldValue'; import { computeMorphRelationFieldName, isDefined } from 'twenty-shared/utils'; -import { FieldMetadataType, RelationType } from '~/generated/graphql'; +import { FieldMetadataType, RelationType } from '~/generated-metadata/graphql'; type PrefillRecordArgs = { objectMetadataItem: ObjectMetadataItem; diff --git a/packages/twenty-front/src/modules/onboarding/hooks/__tests__/useOnboardingStatus.test.ts b/packages/twenty-front/src/modules/onboarding/hooks/__tests__/useOnboardingStatus.test.ts index 8514c50193..39f8986b78 100644 --- a/packages/twenty-front/src/modules/onboarding/hooks/__tests__/useOnboardingStatus.test.ts +++ b/packages/twenty-front/src/modules/onboarding/hooks/__tests__/useOnboardingStatus.test.ts @@ -8,7 +8,7 @@ import { } from '@/auth/states/currentUserState'; import { tokenPairState } from '@/auth/states/tokenPairState'; import { useOnboardingStatus } from '@/onboarding/hooks/useOnboardingStatus'; -import { OnboardingStatus } from '~/generated/graphql'; +import { OnboardingStatus } from '~/generated-metadata/graphql'; const tokenPair = { accessOrWorkspaceAgnosticToken: { diff --git a/packages/twenty-front/src/modules/onboarding/hooks/__tests__/useSetNextOnboardingStatus.test.ts b/packages/twenty-front/src/modules/onboarding/hooks/__tests__/useSetNextOnboardingStatus.test.ts index 2a76bb1c47..ffd9be1f9c 100644 --- a/packages/twenty-front/src/modules/onboarding/hooks/__tests__/useSetNextOnboardingStatus.test.ts +++ b/packages/twenty-front/src/modules/onboarding/hooks/__tests__/useSetNextOnboardingStatus.test.ts @@ -5,7 +5,10 @@ import { v4 } from 'uuid'; import { currentUserState } from '@/auth/states/currentUserState'; import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState'; import { useSetNextOnboardingStatus } from '@/onboarding/hooks/useSetNextOnboardingStatus'; -import { OnboardingStatus, SubscriptionStatus } from '~/generated/graphql'; +import { + OnboardingStatus, + SubscriptionStatus, +} from '~/generated-metadata/graphql'; import { mockCurrentWorkspace, mockedUserData, diff --git a/packages/twenty-front/src/modules/onboarding/hooks/useOnboardingStatus.ts b/packages/twenty-front/src/modules/onboarding/hooks/useOnboardingStatus.ts index 1fe6b89404..fb36541ed5 100644 --- a/packages/twenty-front/src/modules/onboarding/hooks/useOnboardingStatus.ts +++ b/packages/twenty-front/src/modules/onboarding/hooks/useOnboardingStatus.ts @@ -2,7 +2,7 @@ import { useRecoilValue } from 'recoil'; import { useIsLogged } from '@/auth/hooks/useIsLogged'; import { currentUserState } from '@/auth/states/currentUserState'; -import { type OnboardingStatus } from '~/generated/graphql'; +import { type OnboardingStatus } from '~/generated-metadata/graphql'; export const useOnboardingStatus = (): OnboardingStatus | null | undefined => { const currentUser = useRecoilValue(currentUserState); diff --git a/packages/twenty-front/src/modules/onboarding/hooks/useSetNextOnboardingStatus.ts b/packages/twenty-front/src/modules/onboarding/hooks/useSetNextOnboardingStatus.ts index 7a12ac3691..674899cdd2 100644 --- a/packages/twenty-front/src/modules/onboarding/hooks/useSetNextOnboardingStatus.ts +++ b/packages/twenty-front/src/modules/onboarding/hooks/useSetNextOnboardingStatus.ts @@ -10,7 +10,7 @@ import { } from '@/auth/states/currentWorkspaceState'; import { calendarBookingPageIdState } from '@/client-config/states/calendarBookingPageIdState'; import { isDefined } from 'twenty-shared/utils'; -import { OnboardingStatus } from '~/generated/graphql'; +import { OnboardingStatus } from '~/generated-metadata/graphql'; const getNextOnboardingStatus = ( currentUser: CurrentUser | null, diff --git a/packages/twenty-front/src/modules/page-layout/components/PageLayoutContent.tsx b/packages/twenty-front/src/modules/page-layout/components/PageLayoutContent.tsx index 9dff96dd7e..9369d78af0 100644 --- a/packages/twenty-front/src/modules/page-layout/components/PageLayoutContent.tsx +++ b/packages/twenty-front/src/modules/page-layout/components/PageLayoutContent.tsx @@ -8,7 +8,10 @@ import { usePageLayoutTabWithVisibleWidgetsOrThrow } from '@/page-layout/hooks/u import { useReorderPageLayoutWidgets } from '@/page-layout/hooks/useReorderPageLayoutWidgets'; import { isPageLayoutInEditModeComponentState } from '@/page-layout/states/isPageLayoutInEditModeComponentState'; import { useRecoilComponentValue } from '@/ui/utilities/state/component-state/hooks/useRecoilComponentValue'; -import { PageLayoutTabLayoutMode, PageLayoutType } from '~/generated/graphql'; +import { + PageLayoutTabLayoutMode, + PageLayoutType, +} from '~/generated-metadata/graphql'; export const PageLayoutContent = () => { const isPageLayoutInEditMode = useRecoilComponentValue( diff --git a/packages/twenty-front/src/modules/page-layout/components/PageLayoutLeftPanel.tsx b/packages/twenty-front/src/modules/page-layout/components/PageLayoutLeftPanel.tsx index 9c4e9888dc..e88d93ed89 100644 --- a/packages/twenty-front/src/modules/page-layout/components/PageLayoutLeftPanel.tsx +++ b/packages/twenty-front/src/modules/page-layout/components/PageLayoutLeftPanel.tsx @@ -8,7 +8,7 @@ import { useLayoutRenderingContext } from '@/ui/layout/contexts/LayoutRenderingC import { useTargetRecord } from '@/ui/layout/contexts/useTargetRecord'; import { ScrollWrapper } from '@/ui/utilities/scroll/components/ScrollWrapper'; import styled from '@emotion/styled'; -import { PageLayoutType } from '~/generated/graphql'; +import { PageLayoutType } from '~/generated-metadata/graphql'; const StyledContainer = styled.div` background: ${({ theme }) => theme.background.secondary}; diff --git a/packages/twenty-front/src/modules/page-layout/components/PageLayoutRelationWidgetsSyncEffect.tsx b/packages/twenty-front/src/modules/page-layout/components/PageLayoutRelationWidgetsSyncEffect.tsx index d31a1679d2..e2a020949d 100644 --- a/packages/twenty-front/src/modules/page-layout/components/PageLayoutRelationWidgetsSyncEffect.tsx +++ b/packages/twenty-front/src/modules/page-layout/components/PageLayoutRelationWidgetsSyncEffect.tsx @@ -14,7 +14,7 @@ import { getSnapshotValue } from '@/ui/utilities/state/utils/getSnapshotValue'; import { useEffect } from 'react'; import { useRecoilCallback } from 'recoil'; import { isDefined } from 'twenty-shared/utils'; -import { PageLayoutType } from '~/generated/graphql'; +import { PageLayoutType } from '~/generated-metadata/graphql'; import { isDeeplyEqual } from '~/utils/isDeeplyEqual'; type PageLayoutRelationWidgetsSyncEffectProps = { diff --git a/packages/twenty-front/src/modules/page-layout/components/PageLayoutRendererContent.tsx b/packages/twenty-front/src/modules/page-layout/components/PageLayoutRendererContent.tsx index a03a911629..fcd3f93ec9 100644 --- a/packages/twenty-front/src/modules/page-layout/components/PageLayoutRendererContent.tsx +++ b/packages/twenty-front/src/modules/page-layout/components/PageLayoutRendererContent.tsx @@ -121,7 +121,8 @@ export const PageLayoutRendererContent = () => { tabs={sortedTabs} componentInstanceId={tabListInstanceId} defaultTabToFocusOnMobileAndSidePanelId={ - currentPageLayout.defaultTabToFocusOnMobileAndSidePanelId + currentPageLayout.defaultTabToFocusOnMobileAndSidePanelId ?? + undefined } /> {(sortedTabs.length > 1 || isPageLayoutInEditMode) && ( diff --git a/packages/twenty-front/src/modules/page-layout/components/PageLayoutTabList.tsx b/packages/twenty-front/src/modules/page-layout/components/PageLayoutTabList.tsx index 4c7b80092e..977e636a43 100644 --- a/packages/twenty-front/src/modules/page-layout/components/PageLayoutTabList.tsx +++ b/packages/twenty-front/src/modules/page-layout/components/PageLayoutTabList.tsx @@ -43,7 +43,7 @@ import { type SingleTabProps } from '@/ui/layout/tab-list/types/SingleTabProps'; import { useAvailableComponentInstanceIdOrThrow } from '@/ui/utilities/state/component-state/hooks/useAvailableComponentInstanceIdOrThrow'; import { useRecoilComponentValue } from '@/ui/utilities/state/component-state/hooks/useRecoilComponentValue'; import { isDefined } from 'twenty-shared/utils'; -import { type PageLayoutType } from '~/generated/graphql'; +import { type PageLayoutType } from '~/generated-metadata/graphql'; const StyledContainer = styled.div` box-sizing: border-box; diff --git a/packages/twenty-front/src/modules/page-layout/components/PageLayoutTabListReorderableOverflowDropdown.tsx b/packages/twenty-front/src/modules/page-layout/components/PageLayoutTabListReorderableOverflowDropdown.tsx index 8a0a7f5580..81799dc596 100644 --- a/packages/twenty-front/src/modules/page-layout/components/PageLayoutTabListReorderableOverflowDropdown.tsx +++ b/packages/twenty-front/src/modules/page-layout/components/PageLayoutTabListReorderableOverflowDropdown.tsx @@ -29,7 +29,7 @@ import { useAvailableComponentInstanceIdOrThrow } from '@/ui/utilities/state/com import { useRecoilComponentValue } from '@/ui/utilities/state/component-state/hooks/useRecoilComponentValue'; import { useSetRecoilComponentState } from '@/ui/utilities/state/component-state/hooks/useSetRecoilComponentState'; import { useContext } from 'react'; -import { type PageLayoutType } from '~/generated/graphql'; +import { type PageLayoutType } from '~/generated-metadata/graphql'; const StyledOverflowDropdownListDraggableWrapper = styled.div` display: flex; diff --git a/packages/twenty-front/src/modules/page-layout/components/__stories__/PageLayoutRenderer.stories.tsx b/packages/twenty-front/src/modules/page-layout/components/__stories__/PageLayoutRenderer.stories.tsx index 3a65c1f86f..eb960dce35 100644 --- a/packages/twenty-front/src/modules/page-layout/components/__stories__/PageLayoutRenderer.stories.tsx +++ b/packages/twenty-front/src/modules/page-layout/components/__stories__/PageLayoutRenderer.stories.tsx @@ -14,16 +14,17 @@ import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSi import { generateGroupByAggregateQuery } from '@/object-record/record-aggregate/utils/generateGroupByAggregateQuery'; import { PageLayoutRenderer } from '@/page-layout/components/PageLayoutRenderer'; import { LayoutRenderingProvider } from '@/ui/layout/contexts/LayoutRenderingContext'; -import { GraphOrderBy, WidgetType } from '~/generated-metadata/graphql'; import { AggregateOperations, AxisNameDisplay, type BarChartConfiguration, BarChartLayout, + GraphOrderBy, PageLayoutType, type PageLayoutWidget, WidgetConfigurationType, -} from '~/generated/graphql'; + WidgetType, +} from '~/generated-metadata/graphql'; import { getJestMetadataAndApolloMocksWrapper } from '~/testing/jest/getJestMetadataAndApolloMocksWrapper'; import { getMockFieldMetadataItemOrThrow } from '~/testing/utils/getMockFieldMetadataItemOrThrow'; import { getMockObjectMetadataItemOrThrow } from '~/testing/utils/getMockObjectMetadataItemOrThrow'; diff --git a/packages/twenty-front/src/modules/page-layout/components/__stories__/PageLayoutTabList.stories.tsx b/packages/twenty-front/src/modules/page-layout/components/__stories__/PageLayoutTabList.stories.tsx index 47d7a057fd..2369727144 100644 --- a/packages/twenty-front/src/modules/page-layout/components/__stories__/PageLayoutTabList.stories.tsx +++ b/packages/twenty-front/src/modules/page-layout/components/__stories__/PageLayoutTabList.stories.tsx @@ -11,7 +11,7 @@ import { PageLayoutTabListEffect } from '@/page-layout/components/PageLayoutTabL import { PageLayoutComponentInstanceContext } from '@/page-layout/states/contexts/PageLayoutComponentInstanceContext'; import { type PageLayoutTab } from '@/page-layout/types/PageLayoutTab'; import { calculateNewPosition } from '@/ui/layout/draggable-list/utils/calculateNewPosition'; -import { PageLayoutType } from '~/generated/graphql'; +import { PageLayoutType } from '~/generated-metadata/graphql'; const StyledContainer = styled.div` border: 1px solid ${({ theme }) => theme.border.color.strong}; diff --git a/packages/twenty-front/src/modules/page-layout/constants/DefaultNoteRecordPageLayout.ts b/packages/twenty-front/src/modules/page-layout/constants/DefaultNoteRecordPageLayout.ts index 5a4e61b556..61e053a4d9 100644 --- a/packages/twenty-front/src/modules/page-layout/constants/DefaultNoteRecordPageLayout.ts +++ b/packages/twenty-front/src/modules/page-layout/constants/DefaultNoteRecordPageLayout.ts @@ -4,7 +4,7 @@ import { PageLayoutTabLayoutMode, PageLayoutType, WidgetType, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export const DEFAULT_NOTE_RECORD_PAGE_LAYOUT: PageLayout = { __typename: 'PageLayout', diff --git a/packages/twenty-front/src/modules/page-layout/constants/DefaultOpportunityRecordPageLayout.ts b/packages/twenty-front/src/modules/page-layout/constants/DefaultOpportunityRecordPageLayout.ts index 6df2602b49..e38835c783 100644 --- a/packages/twenty-front/src/modules/page-layout/constants/DefaultOpportunityRecordPageLayout.ts +++ b/packages/twenty-front/src/modules/page-layout/constants/DefaultOpportunityRecordPageLayout.ts @@ -5,7 +5,7 @@ import { PageLayoutType, WidgetConfigurationType, WidgetType, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export const DEFAULT_OPPORTUNITY_RECORD_PAGE_LAYOUT: PageLayout = { __typename: 'PageLayout', diff --git a/packages/twenty-front/src/modules/page-layout/constants/DefaultPersonRecordPageLayout.ts b/packages/twenty-front/src/modules/page-layout/constants/DefaultPersonRecordPageLayout.ts index ec8160ab91..5c54d33c9a 100644 --- a/packages/twenty-front/src/modules/page-layout/constants/DefaultPersonRecordPageLayout.ts +++ b/packages/twenty-front/src/modules/page-layout/constants/DefaultPersonRecordPageLayout.ts @@ -4,7 +4,7 @@ import { PageLayoutTabLayoutMode, PageLayoutType, WidgetType, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export const DEFAULT_PERSON_RECORD_PAGE_LAYOUT: PageLayout = { __typename: 'PageLayout', diff --git a/packages/twenty-front/src/modules/page-layout/constants/DefaultRecordPageLayout.ts b/packages/twenty-front/src/modules/page-layout/constants/DefaultRecordPageLayout.ts index 484bb119a8..15ac70d081 100644 --- a/packages/twenty-front/src/modules/page-layout/constants/DefaultRecordPageLayout.ts +++ b/packages/twenty-front/src/modules/page-layout/constants/DefaultRecordPageLayout.ts @@ -4,7 +4,7 @@ import { PageLayoutTabLayoutMode, PageLayoutType, WidgetType, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export const DEFAULT_RECORD_PAGE_LAYOUT: PageLayout = { __typename: 'PageLayout', diff --git a/packages/twenty-front/src/modules/page-layout/constants/DefaultTaskRecordPageLayout.ts b/packages/twenty-front/src/modules/page-layout/constants/DefaultTaskRecordPageLayout.ts index cc24a5dbc9..fbeb3a95b9 100644 --- a/packages/twenty-front/src/modules/page-layout/constants/DefaultTaskRecordPageLayout.ts +++ b/packages/twenty-front/src/modules/page-layout/constants/DefaultTaskRecordPageLayout.ts @@ -4,7 +4,7 @@ import { PageLayoutTabLayoutMode, PageLayoutType, WidgetType, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export const DEFAULT_TASK_RECORD_PAGE_LAYOUT: PageLayout = { __typename: 'PageLayout', diff --git a/packages/twenty-front/src/modules/page-layout/constants/DefaultWorkflowPageLayout.ts b/packages/twenty-front/src/modules/page-layout/constants/DefaultWorkflowPageLayout.ts index 9ca75e1454..6214e7f6c4 100644 --- a/packages/twenty-front/src/modules/page-layout/constants/DefaultWorkflowPageLayout.ts +++ b/packages/twenty-front/src/modules/page-layout/constants/DefaultWorkflowPageLayout.ts @@ -4,7 +4,7 @@ import { PageLayoutTabLayoutMode, PageLayoutType, WidgetType, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; /** * Default Workflow PageLayout. diff --git a/packages/twenty-front/src/modules/page-layout/constants/DefaultWorkflowRunPageLayout.ts b/packages/twenty-front/src/modules/page-layout/constants/DefaultWorkflowRunPageLayout.ts index ba864bcde5..a2a185e8b3 100644 --- a/packages/twenty-front/src/modules/page-layout/constants/DefaultWorkflowRunPageLayout.ts +++ b/packages/twenty-front/src/modules/page-layout/constants/DefaultWorkflowRunPageLayout.ts @@ -4,7 +4,7 @@ import { PageLayoutTabLayoutMode, PageLayoutType, WidgetType, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; /** * Default WorkflowRun PageLayout. diff --git a/packages/twenty-front/src/modules/page-layout/constants/DefaultWorkflowVersionPageLayout.ts b/packages/twenty-front/src/modules/page-layout/constants/DefaultWorkflowVersionPageLayout.ts index 0d00b80b3c..f9b3b2caf4 100644 --- a/packages/twenty-front/src/modules/page-layout/constants/DefaultWorkflowVersionPageLayout.ts +++ b/packages/twenty-front/src/modules/page-layout/constants/DefaultWorkflowVersionPageLayout.ts @@ -4,7 +4,7 @@ import { PageLayoutTabLayoutMode, PageLayoutType, WidgetType, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; /** * Default WorkflowVersion PageLayout. diff --git a/packages/twenty-front/src/modules/page-layout/constants/GraphWidgetSizes.ts b/packages/twenty-front/src/modules/page-layout/constants/GraphWidgetSizes.ts index ac7cbfa119..a8dee82a31 100644 --- a/packages/twenty-front/src/modules/page-layout/constants/GraphWidgetSizes.ts +++ b/packages/twenty-front/src/modules/page-layout/constants/GraphWidgetSizes.ts @@ -1,5 +1,5 @@ import { type WidgetSizeConfig } from '@/page-layout/types/WidgetSizeConfig'; -import { WidgetConfigurationType } from '~/generated/graphql'; +import { WidgetConfigurationType } from '~/generated-metadata/graphql'; export const GRAPH_WIDGET_SIZES: Partial< Record diff --git a/packages/twenty-front/src/modules/page-layout/constants/WidgetSizes.ts b/packages/twenty-front/src/modules/page-layout/constants/WidgetSizes.ts index 216f92f776..29f9e47e89 100644 --- a/packages/twenty-front/src/modules/page-layout/constants/WidgetSizes.ts +++ b/packages/twenty-front/src/modules/page-layout/constants/WidgetSizes.ts @@ -1,5 +1,5 @@ import { type WidgetSizeConfig } from '@/page-layout/types/WidgetSizeConfig'; -import { WidgetType } from '~/generated/graphql'; +import { WidgetType } from '~/generated-metadata/graphql'; export const WIDGET_SIZES: Partial> = { [WidgetType.IFRAME]: { diff --git a/packages/twenty-front/src/modules/page-layout/contexts/PageLayoutContentContext.ts b/packages/twenty-front/src/modules/page-layout/contexts/PageLayoutContentContext.ts index e0a9ef1090..0737807b61 100644 --- a/packages/twenty-front/src/modules/page-layout/contexts/PageLayoutContentContext.ts +++ b/packages/twenty-front/src/modules/page-layout/contexts/PageLayoutContentContext.ts @@ -1,4 +1,4 @@ -import { type PageLayoutTabLayoutMode } from '~/generated/graphql'; +import { type PageLayoutTabLayoutMode } from '~/generated-metadata/graphql'; import { createRequiredContext } from '~/utils/createRequiredContext'; export type PageLayoutContentContextType = { diff --git a/packages/twenty-front/src/modules/page-layout/hooks/__tests__/useCreatePageLayoutGraphWidget.test.tsx b/packages/twenty-front/src/modules/page-layout/hooks/__tests__/useCreatePageLayoutGraphWidget.test.tsx index cfa0bf7809..f1211f5e9d 100644 --- a/packages/twenty-front/src/modules/page-layout/hooks/__tests__/useCreatePageLayoutGraphWidget.test.tsx +++ b/packages/twenty-front/src/modules/page-layout/hooks/__tests__/useCreatePageLayoutGraphWidget.test.tsx @@ -8,8 +8,11 @@ import { useSetRecoilComponentState } from '@/ui/utilities/state/component-state import { act, renderHook } from '@testing-library/react'; import { useSetRecoilState } from 'recoil'; import { isDefined } from 'twenty-shared/utils'; -import { WidgetType } from '~/generated-metadata/graphql'; -import { PageLayoutType, WidgetConfigurationType } from '~/generated/graphql'; +import { + WidgetType, + PageLayoutType, + WidgetConfigurationType, +} from '~/generated-metadata/graphql'; import { PAGE_LAYOUT_TEST_INSTANCE_ID, PageLayoutTestWrapper, diff --git a/packages/twenty-front/src/modules/page-layout/hooks/__tests__/useCreatePageLayoutTab.test.tsx b/packages/twenty-front/src/modules/page-layout/hooks/__tests__/useCreatePageLayoutTab.test.tsx index 815184061b..a83ec557a9 100644 --- a/packages/twenty-front/src/modules/page-layout/hooks/__tests__/useCreatePageLayoutTab.test.tsx +++ b/packages/twenty-front/src/modules/page-layout/hooks/__tests__/useCreatePageLayoutTab.test.tsx @@ -5,7 +5,7 @@ import { useRecoilComponentValue } from '@/ui/utilities/state/component-state/ho import { useSetRecoilComponentState } from '@/ui/utilities/state/component-state/hooks/useSetRecoilComponentState'; import { act, renderHook } from '@testing-library/react'; import { useSetRecoilState } from 'recoil'; -import { PageLayoutType } from '~/generated/graphql'; +import { PageLayoutType } from '~/generated-metadata/graphql'; import { useCreatePageLayoutTab } from '@/page-layout/hooks/useCreatePageLayoutTab'; import { PAGE_LAYOUT_TEST_INSTANCE_ID, diff --git a/packages/twenty-front/src/modules/page-layout/hooks/__tests__/usePageLayoutDraftState.test.tsx b/packages/twenty-front/src/modules/page-layout/hooks/__tests__/usePageLayoutDraftState.test.tsx index c88dd71a80..d6a6fee810 100644 --- a/packages/twenty-front/src/modules/page-layout/hooks/__tests__/usePageLayoutDraftState.test.tsx +++ b/packages/twenty-front/src/modules/page-layout/hooks/__tests__/usePageLayoutDraftState.test.tsx @@ -1,12 +1,13 @@ import { usePageLayoutDraftState } from '@/page-layout/hooks/usePageLayoutDraftState'; import { act, renderHook } from '@testing-library/react'; -import { GraphOrderBy, WidgetType } from '~/generated-metadata/graphql'; import { + GraphOrderBy, + WidgetType, AggregateOperations, BarChartLayout, PageLayoutType, WidgetConfigurationType, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; import { PAGE_LAYOUT_TEST_INSTANCE_ID, PageLayoutTestWrapper, diff --git a/packages/twenty-front/src/modules/page-layout/hooks/__tests__/usePageLayoutWithRelationWidgets.test.tsx b/packages/twenty-front/src/modules/page-layout/hooks/__tests__/usePageLayoutWithRelationWidgets.test.tsx index f67e3b7038..8b15f21420 100644 --- a/packages/twenty-front/src/modules/page-layout/hooks/__tests__/usePageLayoutWithRelationWidgets.test.tsx +++ b/packages/twenty-front/src/modules/page-layout/hooks/__tests__/usePageLayoutWithRelationWidgets.test.tsx @@ -12,7 +12,7 @@ import { PageLayoutType, WidgetConfigurationType, WidgetType, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; jest.mock('@/ui/layout/contexts/LayoutRenderingContext'); jest.mock( diff --git a/packages/twenty-front/src/modules/page-layout/hooks/useCreatePageLayoutFrontComponentWidget.ts b/packages/twenty-front/src/modules/page-layout/hooks/useCreatePageLayoutFrontComponentWidget.ts index c84c861bb1..53242c3cf6 100644 --- a/packages/twenty-front/src/modules/page-layout/hooks/useCreatePageLayoutFrontComponentWidget.ts +++ b/packages/twenty-front/src/modules/page-layout/hooks/useCreatePageLayoutFrontComponentWidget.ts @@ -16,7 +16,7 @@ import { useRecoilComponentValue } from '@/ui/utilities/state/component-state/ho import { useRecoilCallback } from 'recoil'; import { isDefined } from 'twenty-shared/utils'; import { v4 as uuidv4 } from 'uuid'; -import { WidgetType } from '~/generated/graphql'; +import { WidgetType } from '~/generated-metadata/graphql'; export const useCreatePageLayoutFrontComponentWidget = ( pageLayoutIdFromProps?: string, diff --git a/packages/twenty-front/src/modules/page-layout/hooks/useCreatePageLayoutGraphWidget.ts b/packages/twenty-front/src/modules/page-layout/hooks/useCreatePageLayoutGraphWidget.ts index 420f7b32cb..9589441d7e 100644 --- a/packages/twenty-front/src/modules/page-layout/hooks/useCreatePageLayoutGraphWidget.ts +++ b/packages/twenty-front/src/modules/page-layout/hooks/useCreatePageLayoutGraphWidget.ts @@ -23,7 +23,7 @@ import { BarChartLayout, WidgetConfigurationType, WidgetType, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export const useCreatePageLayoutGraphWidget = ( pageLayoutIdFromProps?: string, diff --git a/packages/twenty-front/src/modules/page-layout/hooks/useCreatePageLayoutIframeWidget.ts b/packages/twenty-front/src/modules/page-layout/hooks/useCreatePageLayoutIframeWidget.ts index 1eed19d7c5..b1e0c3d7a0 100644 --- a/packages/twenty-front/src/modules/page-layout/hooks/useCreatePageLayoutIframeWidget.ts +++ b/packages/twenty-front/src/modules/page-layout/hooks/useCreatePageLayoutIframeWidget.ts @@ -16,7 +16,7 @@ import { useRecoilComponentValue } from '@/ui/utilities/state/component-state/ho import { useRecoilCallback } from 'recoil'; import { isDefined } from 'twenty-shared/utils'; import { v4 as uuidv4 } from 'uuid'; -import { WidgetType } from '~/generated/graphql'; +import { WidgetType } from '~/generated-metadata/graphql'; export const useCreatePageLayoutIframeWidget = ( pageLayoutIdFromProps?: string, diff --git a/packages/twenty-front/src/modules/page-layout/hooks/useCreatePageLayoutStandaloneRichTextWidget.ts b/packages/twenty-front/src/modules/page-layout/hooks/useCreatePageLayoutStandaloneRichTextWidget.ts index 754db3d13a..7e5ba4939a 100644 --- a/packages/twenty-front/src/modules/page-layout/hooks/useCreatePageLayoutStandaloneRichTextWidget.ts +++ b/packages/twenty-front/src/modules/page-layout/hooks/useCreatePageLayoutStandaloneRichTextWidget.ts @@ -18,7 +18,7 @@ import { type PageLayoutWidget, type RichTextV2Body, WidgetType, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export const useCreatePageLayoutStandaloneRichTextWidget = ( pageLayoutIdFromProps?: string, diff --git a/packages/twenty-front/src/modules/page-layout/hooks/useEditPageLayoutWidget.ts b/packages/twenty-front/src/modules/page-layout/hooks/useEditPageLayoutWidget.ts index 680dab921c..bae3496ef2 100644 --- a/packages/twenty-front/src/modules/page-layout/hooks/useEditPageLayoutWidget.ts +++ b/packages/twenty-front/src/modules/page-layout/hooks/useEditPageLayoutWidget.ts @@ -11,7 +11,7 @@ import { PageLayoutComponentInstanceContext } from '@/page-layout/states/context import { pageLayoutEditingWidgetIdComponentState } from '@/page-layout/states/pageLayoutEditingWidgetIdComponentState'; import { useAvailableComponentInstanceIdOrThrow } from '@/ui/utilities/state/component-state/hooks/useAvailableComponentInstanceIdOrThrow'; import { t } from '@lingui/core/macro'; -import { WidgetType } from '~/generated/graphql'; +import { WidgetType } from '~/generated-metadata/graphql'; export const useEditPageLayoutWidget = (pageLayoutIdFromProps?: string) => { const pageLayoutId = useAvailableComponentInstanceIdOrThrow( diff --git a/packages/twenty-front/src/modules/page-layout/hooks/usePageLayoutWithRelationWidgets.ts b/packages/twenty-front/src/modules/page-layout/hooks/usePageLayoutWithRelationWidgets.ts index ed513a538d..935200b7fd 100644 --- a/packages/twenty-front/src/modules/page-layout/hooks/usePageLayoutWithRelationWidgets.ts +++ b/packages/twenty-front/src/modules/page-layout/hooks/usePageLayoutWithRelationWidgets.ts @@ -3,7 +3,7 @@ import { type PageLayout } from '@/page-layout/types/PageLayout'; import { injectRelationWidgetsIntoLayout } from '@/page-layout/utils/injectRelationWidgetsIntoLayout'; import { useLayoutRenderingContext } from '@/ui/layout/contexts/LayoutRenderingContext'; import { isDefined } from 'twenty-shared/utils'; -import { PageLayoutType } from '~/generated/graphql'; +import { PageLayoutType } from '~/generated-metadata/graphql'; export const usePageLayoutWithRelationWidgets = ( basePageLayout: PageLayout | undefined, diff --git a/packages/twenty-front/src/modules/page-layout/states/pageLayoutDraftComponentState.ts b/packages/twenty-front/src/modules/page-layout/states/pageLayoutDraftComponentState.ts index bd8ab1439b..0d19653308 100644 --- a/packages/twenty-front/src/modules/page-layout/states/pageLayoutDraftComponentState.ts +++ b/packages/twenty-front/src/modules/page-layout/states/pageLayoutDraftComponentState.ts @@ -1,5 +1,5 @@ import { createComponentState } from '@/ui/utilities/state/component-state/utils/createComponentState'; -import { PageLayoutType } from '~/generated/graphql'; +import { PageLayoutType } from '~/generated-metadata/graphql'; import { type DraftPageLayout } from '@/page-layout/types/DraftPageLayout'; import { PageLayoutComponentInstanceContext } from './contexts/PageLayoutComponentInstanceContext'; diff --git a/packages/twenty-front/src/modules/page-layout/types/FieldConfiguration.ts b/packages/twenty-front/src/modules/page-layout/types/FieldConfiguration.ts index 3b37d3fba4..69bf177190 100644 --- a/packages/twenty-front/src/modules/page-layout/types/FieldConfiguration.ts +++ b/packages/twenty-front/src/modules/page-layout/types/FieldConfiguration.ts @@ -1,4 +1,4 @@ -import { type WidgetConfigurationType } from '~/generated/graphql'; +import { type WidgetConfigurationType } from '~/generated-metadata/graphql'; export type FieldConfiguration = { __typename: 'FieldConfiguration'; diff --git a/packages/twenty-front/src/modules/page-layout/types/PageLayout.ts b/packages/twenty-front/src/modules/page-layout/types/PageLayout.ts index 017aacf957..bf42952660 100644 --- a/packages/twenty-front/src/modules/page-layout/types/PageLayout.ts +++ b/packages/twenty-front/src/modules/page-layout/types/PageLayout.ts @@ -1,5 +1,5 @@ import { type PageLayoutTab } from '@/page-layout/types/PageLayoutTab'; -import { type PageLayout as PageLayoutGenerated } from '~/generated/graphql'; +import { type PageLayout as PageLayoutGenerated } from '~/generated-metadata/graphql'; export type PageLayout = Omit & { tabs: PageLayoutTab[]; diff --git a/packages/twenty-front/src/modules/page-layout/types/PageLayoutTab.ts b/packages/twenty-front/src/modules/page-layout/types/PageLayoutTab.ts index 243e711a2f..4d3c57ff55 100644 --- a/packages/twenty-front/src/modules/page-layout/types/PageLayoutTab.ts +++ b/packages/twenty-front/src/modules/page-layout/types/PageLayoutTab.ts @@ -1,5 +1,5 @@ import { type PageLayoutWidget } from '@/page-layout/types/PageLayoutWidget'; -import { type PageLayoutTab as PageLayoutTabGenerated } from '~/generated/graphql'; +import { type PageLayoutTab as PageLayoutTabGenerated } from '~/generated-metadata/graphql'; export type PageLayoutTab = Omit & { widgets: PageLayoutWidget[]; diff --git a/packages/twenty-front/src/modules/page-layout/types/PageLayoutWidget.ts b/packages/twenty-front/src/modules/page-layout/types/PageLayoutWidget.ts index 7323761075..93384fe680 100644 --- a/packages/twenty-front/src/modules/page-layout/types/PageLayoutWidget.ts +++ b/packages/twenty-front/src/modules/page-layout/types/PageLayoutWidget.ts @@ -4,7 +4,7 @@ import { type Nullable } from 'twenty-shared/types'; import { type PageLayoutWidget as PageLayoutWidgetGenerated, type WidgetConfiguration, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export type PageLayoutWidget = Omit< PageLayoutWidgetGenerated, diff --git a/packages/twenty-front/src/modules/page-layout/utils/__tests__/addWidgetToTab.test.ts b/packages/twenty-front/src/modules/page-layout/utils/__tests__/addWidgetToTab.test.ts index c921937ba1..adfb92981e 100644 --- a/packages/twenty-front/src/modules/page-layout/utils/__tests__/addWidgetToTab.test.ts +++ b/packages/twenty-front/src/modules/page-layout/utils/__tests__/addWidgetToTab.test.ts @@ -1,11 +1,11 @@ -import { WidgetType } from '~/generated-metadata/graphql'; +import { type PageLayoutTab } from '@/page-layout/types/PageLayoutTab'; +import { addWidgetToTab } from '@/page-layout/utils/addWidgetToTab'; import { AggregateOperations, WidgetConfigurationType, + WidgetType, type PageLayoutWidget, -} from '~/generated/graphql'; -import { type PageLayoutTab } from '@/page-layout/types/PageLayoutTab'; -import { addWidgetToTab } from '@/page-layout/utils/addWidgetToTab'; +} from '~/generated-metadata/graphql'; describe('addWidgetToTab', () => { const mockWidget: PageLayoutWidget = { diff --git a/packages/twenty-front/src/modules/page-layout/utils/__tests__/convertPageLayoutToTabLayouts.test.ts b/packages/twenty-front/src/modules/page-layout/utils/__tests__/convertPageLayoutToTabLayouts.test.ts index 4582fd0719..fa3efd0bda 100644 --- a/packages/twenty-front/src/modules/page-layout/utils/__tests__/convertPageLayoutToTabLayouts.test.ts +++ b/packages/twenty-front/src/modules/page-layout/utils/__tests__/convertPageLayoutToTabLayouts.test.ts @@ -7,7 +7,7 @@ import { PageLayoutType, WidgetConfigurationType, WidgetType, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; describe('convertPageLayoutToTabLayouts', () => { it('should convert page layout to tab layouts', () => { diff --git a/packages/twenty-front/src/modules/page-layout/utils/__tests__/createDefaultGraphWidget.test.ts b/packages/twenty-front/src/modules/page-layout/utils/__tests__/createDefaultGraphWidget.test.ts index 5cf2262d9f..d2db22d2c8 100644 --- a/packages/twenty-front/src/modules/page-layout/utils/__tests__/createDefaultGraphWidget.test.ts +++ b/packages/twenty-front/src/modules/page-layout/utils/__tests__/createDefaultGraphWidget.test.ts @@ -4,7 +4,7 @@ import { BarChartLayout, GraphOrderBy, WidgetConfigurationType, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; import { createDefaultGraphWidget } from '@/page-layout/utils/createDefaultGraphWidget'; describe('createDefaultGraphWidget', () => { diff --git a/packages/twenty-front/src/modules/page-layout/utils/__tests__/createDefaultStandaloneRichTextWidget.test.ts b/packages/twenty-front/src/modules/page-layout/utils/__tests__/createDefaultStandaloneRichTextWidget.test.ts index 27678e86b0..21053b59d9 100644 --- a/packages/twenty-front/src/modules/page-layout/utils/__tests__/createDefaultStandaloneRichTextWidget.test.ts +++ b/packages/twenty-front/src/modules/page-layout/utils/__tests__/createDefaultStandaloneRichTextWidget.test.ts @@ -1,4 +1,4 @@ -import { WidgetType } from '~/generated/graphql'; +import { WidgetType } from '~/generated-metadata/graphql'; import { createDefaultStandaloneRichTextWidget } from '@/page-layout/utils/createDefaultStandaloneRichTextWidget'; describe('createDefaultStandaloneRichTextWidget', () => { diff --git a/packages/twenty-front/src/modules/page-layout/utils/__tests__/extractFieldMetadataIdsFromWidget.test.ts b/packages/twenty-front/src/modules/page-layout/utils/__tests__/extractFieldMetadataIdsFromWidget.test.ts index e099d1bd95..c9670beb98 100644 --- a/packages/twenty-front/src/modules/page-layout/utils/__tests__/extractFieldMetadataIdsFromWidget.test.ts +++ b/packages/twenty-front/src/modules/page-layout/utils/__tests__/extractFieldMetadataIdsFromWidget.test.ts @@ -2,8 +2,8 @@ import { extractFieldMetadataIdsFromWidget } from '@/page-layout/utils/extractFi import { type PageLayoutWidget, WidgetType, + type WidgetConfiguration, } from '~/generated-metadata/graphql'; -import { type WidgetConfiguration } from '~/generated/graphql'; import { TEST_AGGREGATE_CHART_CONFIGURATION, TEST_BAR_CHART_CONFIGURATION, diff --git a/packages/twenty-front/src/modules/page-layout/utils/__tests__/filterVisibleWidgets.test.ts b/packages/twenty-front/src/modules/page-layout/utils/__tests__/filterVisibleWidgets.test.ts index 35f29137c3..97b8ae02da 100644 --- a/packages/twenty-front/src/modules/page-layout/utils/__tests__/filterVisibleWidgets.test.ts +++ b/packages/twenty-front/src/modules/page-layout/utils/__tests__/filterVisibleWidgets.test.ts @@ -1,5 +1,5 @@ import { type PageLayoutTab } from '@/page-layout/types/PageLayoutTab'; -import { WidgetType } from '~/generated/graphql'; +import { WidgetType } from '~/generated-metadata/graphql'; import { filterVisibleWidgets } from '@/page-layout/utils/filterVisibleWidgets'; describe('filterVisibleWidgets', () => { diff --git a/packages/twenty-front/src/modules/page-layout/utils/__tests__/getTabsByDisplayMode.test.ts b/packages/twenty-front/src/modules/page-layout/utils/__tests__/getTabsByDisplayMode.test.ts index 43faf7a0c0..50d242972c 100644 --- a/packages/twenty-front/src/modules/page-layout/utils/__tests__/getTabsByDisplayMode.test.ts +++ b/packages/twenty-front/src/modules/page-layout/utils/__tests__/getTabsByDisplayMode.test.ts @@ -1,7 +1,10 @@ import { type DraftPageLayout } from '@/page-layout/types/DraftPageLayout'; import { type PageLayoutTab } from '@/page-layout/types/PageLayoutTab'; import { getTabsByDisplayMode } from '@/page-layout/utils/getTabsByDisplayMode'; -import { PageLayoutTabLayoutMode, PageLayoutType } from '~/generated/graphql'; +import { + PageLayoutTabLayoutMode, + PageLayoutType, +} from '~/generated-metadata/graphql'; describe('getTabsByDisplayMode', () => { const createMockTab = (id: string): PageLayoutTab => ({ diff --git a/packages/twenty-front/src/modules/page-layout/utils/__tests__/getTabsWithVisibleWidgets.test.ts b/packages/twenty-front/src/modules/page-layout/utils/__tests__/getTabsWithVisibleWidgets.test.ts index 16fcafdc82..a3a2908aa5 100644 --- a/packages/twenty-front/src/modules/page-layout/utils/__tests__/getTabsWithVisibleWidgets.test.ts +++ b/packages/twenty-front/src/modules/page-layout/utils/__tests__/getTabsWithVisibleWidgets.test.ts @@ -1,5 +1,5 @@ import { type PageLayoutTab } from '@/page-layout/types/PageLayoutTab'; -import { WidgetType } from '~/generated/graphql'; +import { WidgetType } from '~/generated-metadata/graphql'; import { getTabsWithVisibleWidgets } from '@/page-layout/utils/getTabsWithVisibleWidgets'; describe('getTabsWithVisibleWidgets', () => { diff --git a/packages/twenty-front/src/modules/page-layout/utils/__tests__/getWidgetSize.test.ts b/packages/twenty-front/src/modules/page-layout/utils/__tests__/getWidgetSize.test.ts index b653995bce..399e57b184 100644 --- a/packages/twenty-front/src/modules/page-layout/utils/__tests__/getWidgetSize.test.ts +++ b/packages/twenty-front/src/modules/page-layout/utils/__tests__/getWidgetSize.test.ts @@ -1,5 +1,5 @@ import { getWidgetSize } from '@/page-layout/utils/getWidgetSize'; -import { WidgetConfigurationType } from '~/generated/graphql'; +import { WidgetConfigurationType } from '~/generated-metadata/graphql'; describe('getWidgetSize', () => { describe('chart types with specific sizes', () => { diff --git a/packages/twenty-front/src/modules/page-layout/utils/__tests__/prepareGridLayoutItemsWithPlaceholders.test.ts b/packages/twenty-front/src/modules/page-layout/utils/__tests__/prepareGridLayoutItemsWithPlaceholders.test.ts index c0d3d6ce15..d4e5a9f0fb 100644 --- a/packages/twenty-front/src/modules/page-layout/utils/__tests__/prepareGridLayoutItemsWithPlaceholders.test.ts +++ b/packages/twenty-front/src/modules/page-layout/utils/__tests__/prepareGridLayoutItemsWithPlaceholders.test.ts @@ -1,11 +1,11 @@ import { PENDING_WIDGET_PLACEHOLDER_LAYOUT_KEY } from '@/page-layout/constants/PendingWidgetPlaceholderLayoutKey'; +import { prepareGridLayoutItemsWithPlaceholders } from '@/page-layout/utils/prepareGridLayoutItemsWithPlaceholders'; import { AggregateOperations, WidgetConfigurationType, WidgetType, type PageLayoutWidget, -} from '~/generated/graphql'; -import { prepareGridLayoutItemsWithPlaceholders } from '@/page-layout/utils/prepareGridLayoutItemsWithPlaceholders'; +} from '~/generated-metadata/graphql'; describe('prepareGridLayoutItemsWithPlaceholders', () => { const createMockWidget = (id: string): PageLayoutWidget => ({ diff --git a/packages/twenty-front/src/modules/page-layout/utils/__tests__/shouldEnableTabEditingFeatures.test.ts b/packages/twenty-front/src/modules/page-layout/utils/__tests__/shouldEnableTabEditingFeatures.test.ts index f384fe256f..c0eec0fe3f 100644 --- a/packages/twenty-front/src/modules/page-layout/utils/__tests__/shouldEnableTabEditingFeatures.test.ts +++ b/packages/twenty-front/src/modules/page-layout/utils/__tests__/shouldEnableTabEditingFeatures.test.ts @@ -1,5 +1,5 @@ import { shouldEnableTabEditingFeatures } from '@/page-layout/utils/shouldEnableTabEditingFeatures'; -import { PageLayoutType } from '~/generated/graphql'; +import { PageLayoutType } from '~/generated-metadata/graphql'; describe('shouldEnableTabEditingFeatures', () => { it('should return true for DASHBOARD layout type', () => { diff --git a/packages/twenty-front/src/modules/page-layout/utils/__tests__/updateWidgetMinimumSizeForGraphType.test.ts b/packages/twenty-front/src/modules/page-layout/utils/__tests__/updateWidgetMinimumSizeForGraphType.test.ts index 673689cdac..2698574ed3 100644 --- a/packages/twenty-front/src/modules/page-layout/utils/__tests__/updateWidgetMinimumSizeForGraphType.test.ts +++ b/packages/twenty-front/src/modules/page-layout/utils/__tests__/updateWidgetMinimumSizeForGraphType.test.ts @@ -2,7 +2,7 @@ import { getWidgetSize } from '@/page-layout/utils/getWidgetSize'; import { updateLayoutItemConstraints } from '@/page-layout/utils/updateLayoutItemConstraints'; import { updateWidgetMinimumSizeForGraphType } from '@/page-layout/utils/updateWidgetMinimumSizeForGraphType'; import { type Layouts } from 'react-grid-layout'; -import { WidgetConfigurationType } from '~/generated/graphql'; +import { WidgetConfigurationType } from '~/generated-metadata/graphql'; jest.mock('../getWidgetSize'); jest.mock('../updateLayoutItemConstraints'); diff --git a/packages/twenty-front/src/modules/page-layout/utils/createDefaultFrontComponentWidget.ts b/packages/twenty-front/src/modules/page-layout/utils/createDefaultFrontComponentWidget.ts index d1ab5ab860..4d083539b9 100644 --- a/packages/twenty-front/src/modules/page-layout/utils/createDefaultFrontComponentWidget.ts +++ b/packages/twenty-front/src/modules/page-layout/utils/createDefaultFrontComponentWidget.ts @@ -2,7 +2,7 @@ import { type GridPosition, WidgetConfigurationType, WidgetType, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; import { type PageLayoutWidget } from '@/page-layout/types/PageLayoutWidget'; export const createDefaultFrontComponentWidget = ( diff --git a/packages/twenty-front/src/modules/page-layout/utils/createDefaultGraphWidget.ts b/packages/twenty-front/src/modules/page-layout/utils/createDefaultGraphWidget.ts index a584e23eab..097392d7cf 100644 --- a/packages/twenty-front/src/modules/page-layout/utils/createDefaultGraphWidget.ts +++ b/packages/twenty-front/src/modules/page-layout/utils/createDefaultGraphWidget.ts @@ -8,7 +8,7 @@ import { type WidgetConfiguration, WidgetConfigurationType, WidgetType, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; import { type GraphWidgetFieldSelection } from '@/page-layout/types/GraphWidgetFieldSelection'; import { type GraphColor } from '@/page-layout/widgets/graph/types/GraphColor'; @@ -25,8 +25,9 @@ const createDefaultGraphConfiguration = ( displayDataLabel: true, displayLegend: true, color: 'auto' satisfies GraphColor, - primaryAxisGroupByFieldMetadataId: fieldSelection?.groupByFieldMetadataIdX, - aggregateFieldMetadataId: fieldSelection?.aggregateFieldMetadataId, + primaryAxisGroupByFieldMetadataId: + fieldSelection?.groupByFieldMetadataIdX ?? '', + aggregateFieldMetadataId: fieldSelection?.aggregateFieldMetadataId ?? '', aggregateOperation: AggregateOperations.SUM, primaryAxisOrderBy: GraphOrderBy.FIELD_POSITION_ASC, axisNameDisplay: AxisNameDisplay.NONE, diff --git a/packages/twenty-front/src/modules/page-layout/utils/createDefaultIframeWidget.ts b/packages/twenty-front/src/modules/page-layout/utils/createDefaultIframeWidget.ts index 0fce64132b..18288aab2b 100644 --- a/packages/twenty-front/src/modules/page-layout/utils/createDefaultIframeWidget.ts +++ b/packages/twenty-front/src/modules/page-layout/utils/createDefaultIframeWidget.ts @@ -3,7 +3,7 @@ import { type PageLayoutWidget, WidgetConfigurationType, WidgetType, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export const createDefaultIframeWidget = ( id: string, diff --git a/packages/twenty-front/src/modules/page-layout/utils/createDefaultStandaloneRichTextWidget.ts b/packages/twenty-front/src/modules/page-layout/utils/createDefaultStandaloneRichTextWidget.ts index 80db57dde1..3fa7032b9e 100644 --- a/packages/twenty-front/src/modules/page-layout/utils/createDefaultStandaloneRichTextWidget.ts +++ b/packages/twenty-front/src/modules/page-layout/utils/createDefaultStandaloneRichTextWidget.ts @@ -4,7 +4,7 @@ import { type RichTextV2Body, WidgetConfigurationType, WidgetType, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export const createDefaultStandaloneRichTextWidget = ( id: string, diff --git a/packages/twenty-front/src/modules/page-layout/utils/getTabLayoutMode.ts b/packages/twenty-front/src/modules/page-layout/utils/getTabLayoutMode.ts index 80a5724606..ac2cb38cde 100644 --- a/packages/twenty-front/src/modules/page-layout/utils/getTabLayoutMode.ts +++ b/packages/twenty-front/src/modules/page-layout/utils/getTabLayoutMode.ts @@ -1,6 +1,9 @@ import { type PageLayoutTab } from '@/page-layout/types/PageLayoutTab'; import { assertPageLayoutTabHasDefinedLayoutModeOrThrow } from '@/page-layout/utils/assertPageLayoutTabHasDefinedLayoutModeOrThrow'; -import { PageLayoutTabLayoutMode, PageLayoutType } from '~/generated/graphql'; +import { + PageLayoutTabLayoutMode, + PageLayoutType, +} from '~/generated-metadata/graphql'; type GetTabLayoutModeParams = { tab: PageLayoutTab | undefined; diff --git a/packages/twenty-front/src/modules/page-layout/utils/getTabsByDisplayMode.ts b/packages/twenty-front/src/modules/page-layout/utils/getTabsByDisplayMode.ts index 97a8b94a3a..29911c6b49 100644 --- a/packages/twenty-front/src/modules/page-layout/utils/getTabsByDisplayMode.ts +++ b/packages/twenty-front/src/modules/page-layout/utils/getTabsByDisplayMode.ts @@ -1,5 +1,5 @@ import { type PageLayoutTab } from '@/page-layout/types/PageLayoutTab'; -import { PageLayoutType } from '~/generated/graphql'; +import { PageLayoutType } from '~/generated-metadata/graphql'; type GetTabsByDisplayModeParams = { tabs: PageLayoutTab[]; diff --git a/packages/twenty-front/src/modules/page-layout/utils/getWidgetSize.ts b/packages/twenty-front/src/modules/page-layout/utils/getWidgetSize.ts index 1fc757b0d2..29026ada79 100644 --- a/packages/twenty-front/src/modules/page-layout/utils/getWidgetSize.ts +++ b/packages/twenty-front/src/modules/page-layout/utils/getWidgetSize.ts @@ -1,6 +1,6 @@ import { DEFAULT_WIDGET_SIZE } from '@/page-layout/constants/DefaultWidgetSize'; import { GRAPH_WIDGET_SIZES } from '@/page-layout/constants/GraphWidgetSizes'; -import { type WidgetConfigurationType } from '~/generated/graphql'; +import { type WidgetConfigurationType } from '~/generated-metadata/graphql'; export const getWidgetSize = ( configurationType: WidgetConfigurationType, diff --git a/packages/twenty-front/src/modules/page-layout/utils/getWidgetTitle.ts b/packages/twenty-front/src/modules/page-layout/utils/getWidgetTitle.ts index 6c3345588c..6a94d613cc 100644 --- a/packages/twenty-front/src/modules/page-layout/utils/getWidgetTitle.ts +++ b/packages/twenty-front/src/modules/page-layout/utils/getWidgetTitle.ts @@ -4,7 +4,7 @@ import { BarChartLayout, WidgetConfigurationType, type WidgetConfiguration, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export const getWidgetTitle = ( configuration: Pick & { diff --git a/packages/twenty-front/src/modules/page-layout/utils/injectRelationWidgetsIntoLayout.ts b/packages/twenty-front/src/modules/page-layout/utils/injectRelationWidgetsIntoLayout.ts index c68537a874..301534a163 100644 --- a/packages/twenty-front/src/modules/page-layout/utils/injectRelationWidgetsIntoLayout.ts +++ b/packages/twenty-front/src/modules/page-layout/utils/injectRelationWidgetsIntoLayout.ts @@ -2,7 +2,10 @@ import { type FieldMetadataItem } from '@/object-metadata/types/FieldMetadataIte import { type PageLayout } from '@/page-layout/types/PageLayout'; import { type PageLayoutWidget } from '@/page-layout/types/PageLayoutWidget'; import { isDefined } from 'twenty-shared/utils'; -import { WidgetConfigurationType, WidgetType } from '~/generated/graphql'; +import { + WidgetConfigurationType, + WidgetType, +} from '~/generated-metadata/graphql'; const getRelationFieldWidgetToInsert = ( field: FieldMetadataItem, diff --git a/packages/twenty-front/src/modules/page-layout/utils/shouldEnableTabEditingFeatures.ts b/packages/twenty-front/src/modules/page-layout/utils/shouldEnableTabEditingFeatures.ts index 54c74723c6..5da943dedd 100644 --- a/packages/twenty-front/src/modules/page-layout/utils/shouldEnableTabEditingFeatures.ts +++ b/packages/twenty-front/src/modules/page-layout/utils/shouldEnableTabEditingFeatures.ts @@ -1,4 +1,4 @@ -import { PageLayoutType } from '~/generated/graphql'; +import { PageLayoutType } from '~/generated-metadata/graphql'; export const shouldEnableTabEditingFeatures = ( pageLayoutType: PageLayoutType, diff --git a/packages/twenty-front/src/modules/page-layout/utils/transformPageLayout.ts b/packages/twenty-front/src/modules/page-layout/utils/transformPageLayout.ts index 1c775eaae6..811044b47a 100644 --- a/packages/twenty-front/src/modules/page-layout/utils/transformPageLayout.ts +++ b/packages/twenty-front/src/modules/page-layout/utils/transformPageLayout.ts @@ -1,6 +1,6 @@ import { type PageLayout } from '@/page-layout/types/PageLayout'; import { type PageLayoutTab } from '@/page-layout/types/PageLayoutTab'; -import { type PageLayout as PageLayoutGenerated } from '~/generated/graphql'; +import { type PageLayout as PageLayoutGenerated } from '~/generated-metadata/graphql'; export const transformPageLayout = ( pageLayout: PageLayoutGenerated, diff --git a/packages/twenty-front/src/modules/page-layout/utils/updateWidgetMinimumSizeForGraphType.ts b/packages/twenty-front/src/modules/page-layout/utils/updateWidgetMinimumSizeForGraphType.ts index a6a2c997b2..260ad9da55 100644 --- a/packages/twenty-front/src/modules/page-layout/utils/updateWidgetMinimumSizeForGraphType.ts +++ b/packages/twenty-front/src/modules/page-layout/utils/updateWidgetMinimumSizeForGraphType.ts @@ -2,7 +2,7 @@ import { getWidgetSize } from '@/page-layout/utils/getWidgetSize'; import { updateLayoutItemConstraints } from '@/page-layout/utils/updateLayoutItemConstraints'; import { type Layouts } from 'react-grid-layout'; import { isDefined } from 'twenty-shared/utils'; -import { type WidgetConfigurationType } from '~/generated/graphql'; +import { type WidgetConfigurationType } from '~/generated-metadata/graphql'; export const updateWidgetMinimumSizeForGraphType = ({ configurationType, diff --git a/packages/twenty-front/src/modules/page-layout/widgets/components/PageLayoutWidgetNoDataDisplay.tsx b/packages/twenty-front/src/modules/page-layout/widgets/components/PageLayoutWidgetNoDataDisplay.tsx index e8d23c7532..9cc20b7641 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/components/PageLayoutWidgetNoDataDisplay.tsx +++ b/packages/twenty-front/src/modules/page-layout/widgets/components/PageLayoutWidgetNoDataDisplay.tsx @@ -2,7 +2,7 @@ import { useCurrentWidget } from '@/page-layout/widgets/hooks/useCurrentWidget'; import styled from '@emotion/styled'; import { t } from '@lingui/core/macro'; import { AppTooltip, Status } from 'twenty-ui/display'; -import { WidgetType } from '~/generated/graphql'; +import { WidgetType } from '~/generated-metadata/graphql'; const StyledNoDataContainer = styled.div` align-items: center; diff --git a/packages/twenty-front/src/modules/page-layout/widgets/components/WidgetActionRenderer.tsx b/packages/twenty-front/src/modules/page-layout/widgets/components/WidgetActionRenderer.tsx index 929ed12437..99871a1a10 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/components/WidgetActionRenderer.tsx +++ b/packages/twenty-front/src/modules/page-layout/widgets/components/WidgetActionRenderer.tsx @@ -1,6 +1,6 @@ import { type WidgetAction } from '@/page-layout/widgets/types/WidgetAction'; import { CustomError } from 'twenty-shared/utils'; -import { WidgetType } from '~/generated/graphql'; +import { WidgetType } from '~/generated-metadata/graphql'; import { useCurrentWidget } from '@/page-layout/widgets/hooks/useCurrentWidget'; import { WidgetActionFieldEdit } from './WidgetActionFieldEdit'; import { WidgetActionFieldSeeAll } from './WidgetActionFieldSeeAll'; diff --git a/packages/twenty-front/src/modules/page-layout/widgets/components/WidgetPlaceholder.tsx b/packages/twenty-front/src/modules/page-layout/widgets/components/WidgetPlaceholder.tsx index ed2eea936a..81a064c8bb 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/components/WidgetPlaceholder.tsx +++ b/packages/twenty-front/src/modules/page-layout/widgets/components/WidgetPlaceholder.tsx @@ -1,6 +1,6 @@ import { useCurrentPageLayoutOrThrow } from '@/page-layout/hooks/useCurrentPageLayoutOrThrow'; import { DashboardWidgetPlaceholder } from '@/page-layout/widgets/components/DashboardWidgetPlaceholder'; -import { PageLayoutType } from '~/generated/graphql'; +import { PageLayoutType } from '~/generated-metadata/graphql'; export const WidgetPlaceholder = () => { const { currentPageLayout } = useCurrentPageLayoutOrThrow(); diff --git a/packages/twenty-front/src/modules/page-layout/widgets/components/WidgetRenderer.tsx b/packages/twenty-front/src/modules/page-layout/widgets/components/WidgetRenderer.tsx index 758605ebc3..5e5d91572d 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/components/WidgetRenderer.tsx +++ b/packages/twenty-front/src/modules/page-layout/widgets/components/WidgetRenderer.tsx @@ -33,7 +33,7 @@ import { PageLayoutTabLayoutMode, PageLayoutType, WidgetType, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; const StyledNoAccessContainer = styled.div` align-items: center; diff --git a/packages/twenty-front/src/modules/page-layout/widgets/components/__stories__/DashboardWidgetPlaceholder.stories.tsx b/packages/twenty-front/src/modules/page-layout/widgets/components/__stories__/DashboardWidgetPlaceholder.stories.tsx index ef4e338649..56e3965b45 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/components/__stories__/DashboardWidgetPlaceholder.stories.tsx +++ b/packages/twenty-front/src/modules/page-layout/widgets/components/__stories__/DashboardWidgetPlaceholder.stories.tsx @@ -12,7 +12,10 @@ import { LayoutRenderingProvider } from '@/ui/layout/contexts/LayoutRenderingCon import { type Meta, type StoryObj } from '@storybook/react-vite'; import { type MutableSnapshot } from 'recoil'; import { ComponentDecorator } from 'twenty-ui/testing'; -import { PageLayoutTabLayoutMode, PageLayoutType } from '~/generated/graphql'; +import { + PageLayoutTabLayoutMode, + PageLayoutType, +} from '~/generated-metadata/graphql'; import { generatedMockObjectMetadataItems } from '~/testing/utils/generatedMockObjectMetadataItems'; const mockPageLayout: PageLayout = { diff --git a/packages/twenty-front/src/modules/page-layout/widgets/components/__stories__/WidgetRenderer.stories.tsx b/packages/twenty-front/src/modules/page-layout/widgets/components/__stories__/WidgetRenderer.stories.tsx index e6c824646c..41ff028b7b 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/components/__stories__/WidgetRenderer.stories.tsx +++ b/packages/twenty-front/src/modules/page-layout/widgets/components/__stories__/WidgetRenderer.stories.tsx @@ -37,15 +37,16 @@ import { WidgetComponentInstanceContext } from '@/page-layout/widgets/states/con import { widgetCardHoveredComponentFamilyState } from '@/page-layout/widgets/states/widgetCardHoveredComponentFamilyState'; import { type WidgetCardVariant } from '@/page-layout/widgets/types/WidgetCardVariant'; import { LayoutRenderingProvider } from '@/ui/layout/contexts/LayoutRenderingContext'; -import { GraphOrderBy, WidgetType } from '~/generated-metadata/graphql'; import { + GraphOrderBy, + WidgetType, AggregateOperations, AxisNameDisplay, BarChartLayout, PageLayoutTabLayoutMode, PageLayoutType, WidgetConfigurationType, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; import { ChipGeneratorsDecorator } from '~/testing/decorators/ChipGeneratorsDecorator'; import { getJestMetadataAndApolloMocksWrapper } from '~/testing/jest/getJestMetadataAndApolloMocksWrapper'; import { generatedMockObjectMetadataItems } from '~/testing/utils/generatedMockObjectMetadataItems'; diff --git a/packages/twenty-front/src/modules/page-layout/widgets/field/utils/isFieldWidget.ts b/packages/twenty-front/src/modules/page-layout/widgets/field/utils/isFieldWidget.ts index bdec2f84b6..6d06e9a2a0 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/field/utils/isFieldWidget.ts +++ b/packages/twenty-front/src/modules/page-layout/widgets/field/utils/isFieldWidget.ts @@ -1,7 +1,7 @@ import { type FieldConfiguration } from '@/page-layout/types/FieldConfiguration'; import { type PageLayoutWidget } from '@/page-layout/types/PageLayoutWidget'; import { isDefined } from 'twenty-shared/utils'; -import { WidgetType } from '~/generated/graphql'; +import { WidgetType } from '~/generated-metadata/graphql'; export const isFieldWidget = ( widget: PageLayoutWidget, diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/components/GraphWidget.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/components/GraphWidget.tsx index 7b634ee0a0..f75dc84fbe 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/components/GraphWidget.tsx +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/components/GraphWidget.tsx @@ -9,7 +9,7 @@ import { areChartConfigurationFieldsValidForQuery } from '@/page-layout/widgets/ import { useCurrentWidget } from '@/page-layout/widgets/hooks/useCurrentWidget'; import { lazy, Suspense } from 'react'; import { isDefined } from 'twenty-shared/utils'; -import { WidgetConfigurationType } from '~/generated/graphql'; +import { WidgetConfigurationType } from '~/generated-metadata/graphql'; const GraphWidgetGaugeChart = lazy(() => import( diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetBarChart.stories.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetBarChart.stories.tsx index 1880bd55ac..27626cc1f7 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetBarChart.stories.tsx +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetBarChart.stories.tsx @@ -3,7 +3,7 @@ import { type Meta, type StoryObj } from '@storybook/react-vite'; import { GraphWidgetTestWrapper } from '@/page-layout/widgets/graph/__tests__/GraphWidgetTestWrapper'; import { GraphWidgetBarChart } from '@/page-layout/widgets/graph/graphWidgetBarChart/components/GraphWidgetBarChart'; import { CatalogDecorator, ComponentDecorator } from 'twenty-ui/testing'; -import { BarChartLayout } from '~/generated/graphql'; +import { BarChartLayout } from '~/generated-metadata/graphql'; const meta: Meta = { title: 'Modules/PageLayout/Widgets/GraphWidgetBarChart', diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetPieChart.stories.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetPieChart.stories.tsx index 94e845d6cf..8dbf74bbb0 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetPieChart.stories.tsx +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetPieChart.stories.tsx @@ -8,7 +8,7 @@ import { AggregateOperations, WidgetConfigurationType, type PieChartConfiguration, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; import { ObjectMetadataItemsDecorator } from '~/testing/decorators/ObjectMetadataItemsDecorator'; import { getMockFieldMetadataItemOrThrow } from '~/testing/utils/getMockFieldMetadataItemOrThrow'; import { getMockObjectMetadataItemOrThrow } from '~/testing/utils/getMockObjectMetadataItemOrThrow'; diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetAggregateChart/utils/__tests__/buildRatioNumeratorFilter.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetAggregateChart/utils/__tests__/buildRatioNumeratorFilter.test.ts index 2c9f2a50b2..0442bd2475 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetAggregateChart/utils/__tests__/buildRatioNumeratorFilter.test.ts +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetAggregateChart/utils/__tests__/buildRatioNumeratorFilter.test.ts @@ -1,6 +1,8 @@ import { type FieldMetadataItem } from '@/object-metadata/types/FieldMetadataItem'; -import { FieldMetadataType } from '~/generated-metadata/graphql'; -import { type RatioAggregateConfig } from '~/generated/graphql'; +import { + FieldMetadataType, + type RatioAggregateConfig, +} from '~/generated-metadata/graphql'; import { buildRatioNumeratorFilter } from '@/page-layout/widgets/graph/graphWidgetAggregateChart/utils/buildRatioNumeratorFilter'; diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetAggregateChart/utils/buildRatioNumeratorFilter.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetAggregateChart/utils/buildRatioNumeratorFilter.ts index 61c1afd28d..fd2de26208 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetAggregateChart/utils/buildRatioNumeratorFilter.ts +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetAggregateChart/utils/buildRatioNumeratorFilter.ts @@ -1,8 +1,10 @@ import { type FieldMetadataItem } from '@/object-metadata/types/FieldMetadataItem'; import { type RecordGqlOperationFilter } from 'twenty-shared/types'; import { isDefined } from 'twenty-shared/utils'; -import { FieldMetadataType } from '~/generated-metadata/graphql'; -import { type RatioAggregateConfig } from '~/generated/graphql'; +import { + FieldMetadataType, + type RatioAggregateConfig, +} from '~/generated-metadata/graphql'; export const buildRatioNumeratorFilter = ({ ratioConfig, diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChart.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChart.tsx index b10e57e79f..10110ca2f7 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChart.tsx +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChart.tsx @@ -19,7 +19,7 @@ import { useTheme } from '@emotion/react'; import styled from '@emotion/styled'; import { type MouseEvent } from 'react'; import { isDefined } from 'twenty-shared/utils'; -import { BarChartLayout } from '~/generated/graphql'; +import { BarChartLayout } from '~/generated-metadata/graphql'; type BarChartProps = { data: BarChartDatum[]; diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartBaseLayer.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartBaseLayer.tsx index 6142cc5773..3ddec62899 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartBaseLayer.tsx +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartBaseLayer.tsx @@ -3,7 +3,7 @@ import { type BarPosition } from '@/page-layout/widgets/graph/graphWidgetBarChar import { type ChartMargins } from '@/page-layout/widgets/graph/types/ChartMargins'; import styled from '@emotion/styled'; import { useRef } from 'react'; -import { type BarChartLayout } from '~/generated/graphql'; +import { type BarChartLayout } from '~/generated-metadata/graphql'; type BarChartBaseLayerProps = { bars: BarPosition[]; diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartBaseLayerEffect.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartBaseLayerEffect.tsx index 89035d46f9..9f204ef930 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartBaseLayerEffect.tsx +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartBaseLayerEffect.tsx @@ -9,7 +9,7 @@ import { renderBars } from '@/page-layout/widgets/graph/graphWidgetBarChart/util import { type ChartMargins } from '@/page-layout/widgets/graph/types/ChartMargins'; import { useTheme } from '@emotion/react'; import { useCallback, useEffect, useState, type RefObject } from 'react'; -import { BarChartLayout } from '~/generated/graphql'; +import { BarChartLayout } from '~/generated-metadata/graphql'; type BarChartBaseLayerEffectProps = { bars: BarPosition[]; diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartHoverLayer.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartHoverLayer.tsx index 23819ba35e..8af3859160 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartHoverLayer.tsx +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartHoverLayer.tsx @@ -3,7 +3,7 @@ import { type BarChartSlice } from '@/page-layout/widgets/graph/graphWidgetBarCh import { type ChartMargins } from '@/page-layout/widgets/graph/types/ChartMargins'; import styled from '@emotion/styled'; import { useRef } from 'react'; -import { type BarChartLayout } from '~/generated/graphql'; +import { type BarChartLayout } from '~/generated-metadata/graphql'; type BarChartHoverLayerProps = { hoveredSlice: BarChartSlice | null; diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartHoverLayerEffect.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartHoverLayerEffect.tsx index 0f6233f9ce..cacf909785 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartHoverLayerEffect.tsx +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartHoverLayerEffect.tsx @@ -4,7 +4,7 @@ import { renderSliceHighlight } from '@/page-layout/widgets/graph/graphWidgetBar import { type ChartMargins } from '@/page-layout/widgets/graph/types/ChartMargins'; import { useTheme } from '@emotion/react'; import { useEffect, useState, type RefObject } from 'react'; -import { BarChartLayout } from '~/generated/graphql'; +import { BarChartLayout } from '~/generated-metadata/graphql'; type BarChartHoverLayerEffectProps = { hoveredSlice: BarChartSlice | null; diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartLayers.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartLayers.tsx index 5d74bedbe3..fef5d30817 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartLayers.tsx +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartLayers.tsx @@ -8,7 +8,7 @@ import { type BarChartSlice } from '@/page-layout/widgets/graph/graphWidgetBarCh import { type BarPosition } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarPosition'; import { type ChartMargins } from '@/page-layout/widgets/graph/types/ChartMargins'; import styled from '@emotion/styled'; -import { BarChartLayout } from '~/generated/graphql'; +import { BarChartLayout } from '~/generated-metadata/graphql'; const StyledNoDataOverlay = styled.svg` height: 100%; diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartTotalsLayer.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartTotalsLayer.tsx index 9ad7e35857..0cf8a45519 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartTotalsLayer.tsx +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartTotalsLayer.tsx @@ -6,7 +6,7 @@ import { computeBarChartStackedLabels } from '@/page-layout/widgets/graph/graphW import { type ChartMargins } from '@/page-layout/widgets/graph/types/ChartMargins'; import { type GraphLabelData } from '@/page-layout/widgets/graph/types/GraphLabelData'; import styled from '@emotion/styled'; -import { BarChartLayout } from '~/generated/graphql'; +import { BarChartLayout } from '~/generated-metadata/graphql'; type BarChartTotalsLayerProps = { bars: BarPosition[]; diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/GraphWidgetBarChart.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/GraphWidgetBarChart.tsx index 65f62c3895..343932b1b0 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/GraphWidgetBarChart.tsx +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/GraphWidgetBarChart.tsx @@ -27,7 +27,7 @@ import { useMemo, useRef, useState } from 'react'; import { useRecoilValue } from 'recoil'; import { isDefined } from 'twenty-shared/utils'; import { useDebouncedCallback } from 'use-debounce'; -import { BarChartLayout } from '~/generated/graphql'; +import { BarChartLayout } from '~/generated-metadata/graphql'; type GraphWidgetBarChartProps = { colorMode: GraphColorMode; diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/GraphWidgetBarChartRenderer.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/GraphWidgetBarChartRenderer.tsx index 3ea2f878fb..c0327589a4 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/GraphWidgetBarChartRenderer.tsx +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/GraphWidgetBarChartRenderer.tsx @@ -17,7 +17,7 @@ import { useNavigate } from 'react-router-dom'; import { useRecoilValue } from 'recoil'; import { AppPath } from 'twenty-shared/types'; import { getAppPath } from 'twenty-shared/utils'; -import { AxisNameDisplay } from '~/generated/graphql'; +import { AxisNameDisplay } from '~/generated-metadata/graphql'; const GraphWidgetBarChart = lazy(() => import( diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/hooks/useBarChartLayout.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/hooks/useBarChartLayout.ts index 8a6ac53d97..9f24c93ef0 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/hooks/useBarChartLayout.ts +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/hooks/useBarChartLayout.ts @@ -9,7 +9,7 @@ import { type ChartAxisTheme } from '@/page-layout/widgets/graph/types/ChartAxis import { type GraphValueFormatOptions } from '@/page-layout/widgets/graph/utils/graphFormatters'; import { resolveAxisFontSizes } from '@/page-layout/widgets/graph/utils/resolveAxisFontSizes'; import { useMemo } from 'react'; -import { BarChartLayout } from '~/generated/graphql'; +import { BarChartLayout } from '~/generated-metadata/graphql'; type UseBarChartLayoutParams = { axisTheme: ChartAxisTheme; diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/hooks/useGraphBarChartWidgetData.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/hooks/useGraphBarChartWidgetData.ts index e8cee0ac57..0834c820ce 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/hooks/useGraphBarChartWidgetData.ts +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/hooks/useGraphBarChartWidgetData.ts @@ -20,7 +20,7 @@ import { type BarChartConfiguration, type BarChartLayout, type BarChartSeries, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; type UseGraphBarChartWidgetDataProps = { objectMetadataItemId: string; @@ -156,7 +156,7 @@ export const useGraphBarChartWidgetData = ({ layout: effectiveQueryData?.barChartData?.layout, groupMode: getEffectiveGroupMode( configuration.groupMode, - configuration.secondaryAxisGroupByFieldMetadataId, + isDefined(configuration.secondaryAxisGroupByFieldMetadataId), ), hasTooManyGroups: effectiveQueryData?.barChartData?.hasTooManyGroups ?? false, diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/hooks/useMemoizedBarPositions.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/hooks/useMemoizedBarPositions.ts index 3242b0fc1b..1e72f626b8 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/hooks/useMemoizedBarPositions.ts +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/hooks/useMemoizedBarPositions.ts @@ -4,7 +4,7 @@ import { type BarPosition } from '@/page-layout/widgets/graph/graphWidgetBarChar import { computeBarPositions } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositions'; import { type ChartMargins } from '@/page-layout/widgets/graph/types/ChartMargins'; import { useMemo } from 'react'; -import { type BarChartLayout } from '~/generated/graphql'; +import { type BarChartLayout } from '~/generated-metadata/graphql'; type UseBarPositionsParams = { data: BarChartDatum[]; diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartSeries.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartSeries.ts index a0cfca8e2e..ca91df6bf3 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartSeries.ts +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartSeries.ts @@ -1,5 +1,5 @@ import { type GraphColor } from '@/page-layout/widgets/graph/types/GraphColor'; -import { type BarChartSeries } from '~/generated/graphql'; +import { type BarChartSeries } from '~/generated-metadata/graphql'; export type BarChartSeriesWithColor = BarChartSeries & { color?: GraphColor; diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/computeBarPositions.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/computeBarPositions.test.ts index a5bbe9e2ba..27d2e8d1dc 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/computeBarPositions.test.ts +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/computeBarPositions.test.ts @@ -1,6 +1,6 @@ import { type BarChartEnrichedKey } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartEnrichedKey'; import { computeBarPositions } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositions'; -import { BarChartLayout } from '~/generated/graphql'; +import { BarChartLayout } from '~/generated-metadata/graphql'; describe('computeBarPositions', () => { const defaultMargins = { top: 20, right: 20, bottom: 40, left: 60 }; diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/getBarChartInnerPadding.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/getBarChartInnerPadding.test.ts index 2bdd86519e..a1d3ab1434 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/getBarChartInnerPadding.test.ts +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/getBarChartInnerPadding.test.ts @@ -1,6 +1,6 @@ import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graphWidgetBarChart/constants/BarChartConstants'; import { getBarChartInnerPadding } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartInnerPadding'; -import { BarChartLayout } from '~/generated/graphql'; +import { BarChartLayout } from '~/generated-metadata/graphql'; describe('getBarChartInnerPadding', () => { const defaultMargins = { top: 20, right: 20, bottom: 40, left: 60 }; diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/getBarChartLayout.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/getBarChartLayout.test.ts index c928e1e674..5987a9cbb4 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/getBarChartLayout.test.ts +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/getBarChartLayout.test.ts @@ -3,7 +3,7 @@ import { getBarChartLayout } from '@/page-layout/widgets/graph/graphWidgetBarCha import { type ChartAxisTheme } from '@/page-layout/widgets/graph/types/ChartAxisTheme'; import { type GraphValueFormatOptions } from '@/page-layout/widgets/graph/utils/graphFormatters'; import { type BarChartDatum } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartDatum'; -import { BarChartLayout } from '~/generated/graphql'; +import { BarChartLayout } from '~/generated-metadata/graphql'; describe('getBarChartLayout', () => { const defaultAxisTheme: ChartAxisTheme = { diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/getEffectiveGroupMode.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/getEffectiveGroupMode.test.ts index 8634c5be7c..be8fe6d2c3 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/getEffectiveGroupMode.test.ts +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/getEffectiveGroupMode.test.ts @@ -1,5 +1,5 @@ import { getEffectiveGroupMode } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/getEffectiveGroupMode'; -import { BarChartGroupMode } from '~/generated/graphql'; +import { BarChartGroupMode } from '~/generated-metadata/graphql'; describe('getEffectiveGroupMode', () => { describe('without secondary axis grouping', () => { diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarChartCategoryTickValues.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarChartCategoryTickValues.ts index c2f2a4cfa6..da51663eda 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarChartCategoryTickValues.ts +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarChartCategoryTickValues.ts @@ -3,7 +3,7 @@ import { type BarChartDatum } from '@/page-layout/widgets/graph/graphWidgetBarCh import { computeMinHeightPerTick } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/computeMinHeightPerTick'; import { computeChartCategoryTickValues } from '@/page-layout/widgets/graph/utils/computeChartCategoryTickValues'; import { type ChartMargins } from '@/page-layout/widgets/graph/types/ChartMargins'; -import { BarChartLayout } from '~/generated/graphql'; +import { BarChartLayout } from '~/generated-metadata/graphql'; export const computeBarChartCategoryTickValues = ({ axisSize, diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarChartValueTickCount.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarChartValueTickCount.ts index 7a49b0468b..205c3d680e 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarChartValueTickCount.ts +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarChartValueTickCount.ts @@ -1,6 +1,6 @@ import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graphWidgetBarChart/constants/BarChartConstants'; import { computeMinHeightPerTick } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/computeMinHeightPerTick'; -import { BarChartLayout } from '~/generated/graphql'; +import { BarChartLayout } from '~/generated-metadata/graphql'; type ComputeBarChartValueTickCountProps = { axisSize: number; diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositionContext.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositionContext.ts index b0993afd2b..0e40d54903 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositionContext.ts +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositionContext.ts @@ -3,9 +3,9 @@ import { computeValueScale } from '@/page-layout/widgets/graph/chart-core/utils/ import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graphWidgetBarChart/constants/BarChartConstants'; import { type BarChartDatum } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartDatum'; import { - BarChartLayout as BarChartLayoutEnum, type BarChartLayout, -} from '~/generated/graphql'; + BarChartLayout as BarChartLayoutEnum, +} from '~/generated-metadata/graphql'; export type BarPositionContext = { isVertical: boolean; diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositions.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositions.ts index 790e6cfe19..1daeb1afd4 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositions.ts +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositions.ts @@ -5,7 +5,7 @@ import { computeBarPositionsByGroupMode } from '@/page-layout/widgets/graph/grap import { computeShouldRoundFreeEndMap } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/computeShouldRoundFreeEndMap'; import { getChartInnerDimensions } from '@/page-layout/widgets/graph/chart-core/utils/getChartInnerDimensions'; import { type ChartMargins } from '@/page-layout/widgets/graph/types/ChartMargins'; -import { type BarChartLayout } from '~/generated/graphql'; +import { type BarChartLayout } from '~/generated-metadata/graphql'; type ComputeBarPositionsParams = { data: BarChartDatum[]; diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositionsByGroupMode.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositionsByGroupMode.ts index 97937cf3d4..243e0726e1 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositionsByGroupMode.ts +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositionsByGroupMode.ts @@ -4,7 +4,7 @@ import { type BarPosition } from '@/page-layout/widgets/graph/graphWidgetBarChar import { computeBarPositionContext } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositionContext'; import { computeGroupedBarPositions } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/computeGroupedBarPositions'; import { computeStackedBarPositions } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/computeStackedBarPositions'; -import { type BarChartLayout } from '~/generated/graphql'; +import { type BarChartLayout } from '~/generated-metadata/graphql'; type ComputeBarPositionsByGroupModeParams = { data: BarChartDatum[]; diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartAxisConfigs.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartAxisConfigs.ts index 85493e27cf..c7d393e54a 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartAxisConfigs.ts +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartAxisConfigs.ts @@ -8,7 +8,7 @@ import { COMMON_CHART_CONSTANTS } from '@/page-layout/widgets/graph/constants/Co import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graphWidgetBarChart/constants/BarChartConstants'; import { type BarChartTickConfig } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartTickConfig'; import { type ChartMargins } from '@/page-layout/widgets/graph/types/ChartMargins'; -import { BarChartLayout } from '~/generated/graphql'; +import { BarChartLayout } from '~/generated-metadata/graphql'; type GetBarChartAxisConfigsProps = { layout: BarChartLayout; diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartInnerPadding.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartInnerPadding.ts index 0770140ea5..47e43f112c 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartInnerPadding.ts +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartInnerPadding.ts @@ -1,6 +1,6 @@ import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graphWidgetBarChart/constants/BarChartConstants'; import { computeBandScale } from '@/page-layout/widgets/graph/chart-core/utils/computeBandScale'; -import { BarChartLayout } from '~/generated/graphql'; +import { BarChartLayout } from '~/generated-metadata/graphql'; type BarChartMargins = { top: number; diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartLayout.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartLayout.ts index 9788d9ecc6..8b3e2758b0 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartLayout.ts +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartLayout.ts @@ -17,7 +17,7 @@ import { type GraphValueFormatOptions, } from '@/page-layout/widgets/graph/utils/graphFormatters'; import { resolveAxisFontSizes } from '@/page-layout/widgets/graph/utils/resolveAxisFontSizes'; -import { BarChartLayout } from '~/generated/graphql'; +import { BarChartLayout } from '~/generated-metadata/graphql'; type GetBarChartLayoutParams = { axisTheme: ChartAxisTheme; diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartTickConfig.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartTickConfig.ts index 2c8631cd27..17eff5fb08 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartTickConfig.ts +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartTickConfig.ts @@ -5,7 +5,7 @@ import { computeBarChartValueTickCount } from '@/page-layout/widgets/graph/graph import { type ChartMargins } from '@/page-layout/widgets/graph/types/ChartMargins'; import { computeMaxLabelLengthForMargin } from '@/page-layout/widgets/graph/utils/computeMaxLabelLengthForMargin'; import { getTickRotationConfig } from '@/page-layout/widgets/graph/utils/getTickRotationConfig'; -import { BarChartLayout } from '~/generated/graphql'; +import { BarChartLayout } from '~/generated-metadata/graphql'; export type BarChartTickConfig = { categoryTickValues: (string | number)[]; diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getEffectiveGroupMode.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getEffectiveGroupMode.ts index 85a5cc8abe..e8a5078b15 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getEffectiveGroupMode.ts +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getEffectiveGroupMode.ts @@ -1,4 +1,4 @@ -import { type BarChartConfiguration } from '~/generated/graphql'; +import { type BarChartConfiguration } from '~/generated-metadata/graphql'; export const getEffectiveGroupMode = ( groupMode: BarChartConfiguration['groupMode'], diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/components/GraphWidgetLineChartRenderer.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/components/GraphWidgetLineChartRenderer.tsx index 79fa540b97..391b6f85ea 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/components/GraphWidgetLineChartRenderer.tsx +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/components/GraphWidgetLineChartRenderer.tsx @@ -18,7 +18,10 @@ import { useNavigate } from 'react-router-dom'; import { useRecoilValue } from 'recoil'; import { AppPath } from 'twenty-shared/types'; import { getAppPath, isDefined } from 'twenty-shared/utils'; -import { AxisNameDisplay, type LineChartDataPoint } from '~/generated/graphql'; +import { + AxisNameDisplay, + type LineChartDataPoint, +} from '~/generated-metadata/graphql'; const GraphWidgetLineChart = lazy(() => import( diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/hooks/__tests__/useLineChartData.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/hooks/__tests__/useLineChartData.test.ts index 407da07254..8a5d2a4a2d 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/hooks/__tests__/useLineChartData.test.ts +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/hooks/__tests__/useLineChartData.test.ts @@ -3,7 +3,7 @@ import { type GraphColorRegistry } from '@/page-layout/widgets/graph/types/Graph import { renderHook } from '@testing-library/react'; import { useLineChartData } from '@/page-layout/widgets/graph/graphWidgetLineChart/hooks/useLineChartData'; -import { type LineChartSeries } from '~/generated/graphql'; +import { type LineChartSeries } from '~/generated-metadata/graphql'; const mockUseRecoilComponentValue = jest.fn(); jest.mock( diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/hooks/useGraphLineChartWidgetData.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/hooks/useGraphLineChartWidgetData.ts index 47f1c62357..050e498e09 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/hooks/useGraphLineChartWidgetData.ts +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/hooks/useGraphLineChartWidgetData.ts @@ -17,7 +17,7 @@ import { type LineChartConfiguration, type LineChartDataPoint, type LineChartSeries, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; type UseGraphLineChartWidgetDataProps = { objectMetadataItemId: string; diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/__tests__/calculateValueRangeFromLineChartSeries.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/__tests__/calculateValueRangeFromLineChartSeries.test.ts index aff71507c9..fc226dc2c2 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/__tests__/calculateValueRangeFromLineChartSeries.test.ts +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/__tests__/calculateValueRangeFromLineChartSeries.test.ts @@ -1,6 +1,6 @@ import { type LineChartSeriesWithColor } from '@/page-layout/widgets/graph/graphWidgetLineChart/types/LineChartSeriesWithColor'; import { calculateValueRangeFromLineChartSeries } from '@/page-layout/widgets/graph/graphWidgetLineChart/utils/calculateValueRangeFromLineChartSeries'; -import { type LineChartSeries } from '~/generated/graphql'; +import { type LineChartSeries } from '~/generated-metadata/graphql'; describe('calculateValueRangeFromLineChartSeries', () => { describe('with valid data', () => { diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/components/GraphWidgetPieChart.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/components/GraphWidgetPieChart.tsx index c9fe799ed7..316953fa8e 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/components/GraphWidgetPieChart.tsx +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/components/GraphWidgetPieChart.tsx @@ -31,7 +31,7 @@ import { isDefined } from 'twenty-shared/utils'; import { type PieChartConfiguration, type PieChartDataItem, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; type GraphWidgetPieChartProps = { data: PieChartDataItemWithColor[]; diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/components/PieChartCenterMetricLayer.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/components/PieChartCenterMetricLayer.tsx index 1e5595641d..cd82b0a516 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/components/PieChartCenterMetricLayer.tsx +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/components/PieChartCenterMetricLayer.tsx @@ -3,7 +3,7 @@ import { useTheme } from '@emotion/react'; import styled from '@emotion/styled'; import { useLingui } from '@lingui/react/macro'; import { AnimatePresence, motion } from 'framer-motion'; -import { type PieChartConfiguration } from '~/generated/graphql'; +import { type PieChartConfiguration } from '~/generated-metadata/graphql'; type PieChartCenterMetricProps = { objectMetadataItemId: string; diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/hooks/__tests__/usePieChartData.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/hooks/__tests__/usePieChartData.test.ts index 44b4870e9b..74a6753d7f 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/hooks/__tests__/usePieChartData.test.ts +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/hooks/__tests__/usePieChartData.test.ts @@ -2,7 +2,7 @@ import { usePieChartData } from '@/page-layout/widgets/graph/graphWidgetPieChart import { type PieChartDataItemWithColor } from '@/page-layout/widgets/graph/graphWidgetPieChart/types/PieChartDataItem'; import { type GraphColorRegistry } from '@/page-layout/widgets/graph/types/GraphColorRegistry'; import { renderHook } from '@testing-library/react'; -import { type PieChartDataItem } from '~/generated/graphql'; +import { type PieChartDataItem } from '~/generated-metadata/graphql'; const mockUseRecoilComponentValue = jest.fn(); jest.mock( diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/hooks/useGraphPieChartWidgetData.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/hooks/useGraphPieChartWidgetData.ts index 8b55d3c9b6..cf21905b30 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/hooks/useGraphPieChartWidgetData.ts +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/hooks/useGraphPieChartWidgetData.ts @@ -14,7 +14,7 @@ import { isString } from '@sniptt/guards'; import { useMemo } from 'react'; import { FieldMetadataType } from 'twenty-shared/types'; import { isDefined } from 'twenty-shared/utils'; -import { type PieChartConfiguration } from '~/generated/graphql'; +import { type PieChartConfiguration } from '~/generated-metadata/graphql'; type UseGraphPieChartWidgetDataProps = { objectMetadataItemId: string; diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/hooks/usePieChartCenterMetricData.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/hooks/usePieChartCenterMetricData.ts index 7d67703c5f..d7be6e5d69 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/hooks/usePieChartCenterMetricData.ts +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/hooks/usePieChartCenterMetricData.ts @@ -11,7 +11,7 @@ import { useContext, useMemo } from 'react'; import { useRecoilValue } from 'recoil'; import { FIELD_FOR_TOTAL_COUNT_AGGREGATE_OPERATION } from 'twenty-shared/constants'; import { findById, isDefined } from 'twenty-shared/utils'; -import { type PieChartConfiguration } from '~/generated/graphql'; +import { type PieChartConfiguration } from '~/generated-metadata/graphql'; import { dateLocaleState } from '~/localization/states/dateLocaleState'; type UsePieChartCenterMetricDataProps = { diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/types/PieChartDataItem.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/types/PieChartDataItem.ts index 6b2ba31942..82447d3879 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/types/PieChartDataItem.ts +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/types/PieChartDataItem.ts @@ -1,5 +1,5 @@ import { type GraphColor } from '@/page-layout/widgets/graph/types/GraphColor'; -import { type PieChartDataItem } from '~/generated/graphql'; +import { type PieChartDataItem } from '~/generated-metadata/graphql'; export type PieChartDataItemWithColor = PieChartDataItem & { color?: GraphColor; diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/hooks/useGraphWidgetAggregateQuery.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/hooks/useGraphWidgetAggregateQuery.ts index f6c6c42a6f..aebfcc2c81 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/hooks/useGraphWidgetAggregateQuery.ts +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/hooks/useGraphWidgetAggregateQuery.ts @@ -14,7 +14,7 @@ import { useContext } from 'react'; import { useRecoilValue } from 'recoil'; import { FIELD_FOR_TOTAL_COUNT_AGGREGATE_OPERATION } from 'twenty-shared/constants'; import { findById, isDefined } from 'twenty-shared/utils'; -import { type AggregateChartConfiguration } from '~/generated/graphql'; +import { type AggregateChartConfiguration } from '~/generated-metadata/graphql'; import { dateLocaleState } from '~/localization/states/dateLocaleState'; export const useGraphWidgetAggregateQuery = ({ diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/hooks/useGraphWidgetQueryCommon.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/hooks/useGraphWidgetQueryCommon.ts index 1fcf5c7f28..9c3738460f 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/hooks/useGraphWidgetQueryCommon.ts +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/hooks/useGraphWidgetQueryCommon.ts @@ -9,7 +9,7 @@ import { type BarChartConfiguration, type LineChartConfiguration, type PieChartConfiguration, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export const useGraphWidgetQueryCommon = ({ objectMetadataItemId, diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/types/BuildChartDrilldownQueryParamsInput.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/types/BuildChartDrilldownQueryParamsInput.ts index f881990f23..21de9b1a84 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/types/BuildChartDrilldownQueryParamsInput.ts +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/types/BuildChartDrilldownQueryParamsInput.ts @@ -5,7 +5,7 @@ import { type BarChartConfiguration, type LineChartConfiguration, type PieChartConfiguration, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export type BuildChartDrilldownQueryParamsInput = { objectMetadataItem: ObjectMetadataItem; diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/__tests__/areChartConfigurationFieldsValidForQuery.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/__tests__/areChartConfigurationFieldsValidForQuery.test.ts index d0625b30e7..3c84828063 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/__tests__/areChartConfigurationFieldsValidForQuery.test.ts +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/__tests__/areChartConfigurationFieldsValidForQuery.test.ts @@ -1,10 +1,10 @@ import { type ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem'; -import { FieldMetadataType } from '~/generated-metadata/graphql'; import { AggregateOperations, + FieldMetadataType, WidgetConfigurationType, type AggregateChartConfiguration, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; import { areChartConfigurationFieldsValidForQuery } from '@/page-layout/widgets/graph/utils/areChartConfigurationFieldsValidForQuery'; diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/__tests__/buildSortsForChartFieldOrderBy.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/__tests__/buildSortsForChartFieldOrderBy.test.ts index 50952b6b85..f88c841f24 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/__tests__/buildSortsForChartFieldOrderBy.test.ts +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/__tests__/buildSortsForChartFieldOrderBy.test.ts @@ -2,7 +2,7 @@ import { type ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataI import { buildSortsForChartFieldOrderBy } from '@/page-layout/widgets/graph/utils/buildSortsForChartFieldOrderBy'; import { type NormalizedChartConfigurationFields } from '@/page-layout/widgets/graph/utils/normalizeChartConfigurationFields'; import { FieldMetadataType } from 'twenty-shared/types'; -import { GraphOrderBy } from '~/generated/graphql'; +import { GraphOrderBy } from '~/generated-metadata/graphql'; describe('buildSortsForChartFieldOrderBy', () => { const mockObjectMetadataItem: ObjectMetadataItem = { diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/__tests__/buildSortsForChartValueOrderBy.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/__tests__/buildSortsForChartValueOrderBy.test.ts index e85599b214..bb1702da67 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/__tests__/buildSortsForChartValueOrderBy.test.ts +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/__tests__/buildSortsForChartValueOrderBy.test.ts @@ -2,7 +2,7 @@ import { type ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataI import { buildSortsForChartValueOrderBy } from '@/page-layout/widgets/graph/utils/buildSortsForChartValueOrderBy'; import { type NormalizedChartConfigurationFields } from '@/page-layout/widgets/graph/utils/normalizeChartConfigurationFields'; import { FieldMetadataType } from 'twenty-shared/types'; -import { GraphOrderBy } from '~/generated/graphql'; +import { GraphOrderBy } from '~/generated-metadata/graphql'; describe('buildSortsForChartValueOrderBy', () => { const mockObjectMetadataItem: ObjectMetadataItem = { diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/__tests__/buildSortsFromChartConfig.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/__tests__/buildSortsFromChartConfig.test.ts index 6187cd76e9..cdf7695bf4 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/__tests__/buildSortsFromChartConfig.test.ts +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/__tests__/buildSortsFromChartConfig.test.ts @@ -5,7 +5,7 @@ import { type BarChartConfiguration, type PieChartConfiguration, GraphOrderBy, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; describe('buildSortsFromChartConfig', () => { const mockObjectMetadataItem: ObjectMetadataItem = { diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/areChartConfigurationFieldsValidForQuery.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/areChartConfigurationFieldsValidForQuery.ts index c1e8f718e5..101191718b 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/areChartConfigurationFieldsValidForQuery.ts +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/areChartConfigurationFieldsValidForQuery.ts @@ -3,8 +3,10 @@ import { isString } from '@sniptt/guards'; import { type ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem'; import { type PageLayoutWidget } from '@/page-layout/types/PageLayoutWidget'; import { isDefined } from 'twenty-shared/utils'; -import { FieldMetadataType } from '~/generated-metadata/graphql'; -import { type RatioAggregateConfig } from '~/generated/graphql'; +import { + FieldMetadataType, + type RatioAggregateConfig, +} from '~/generated-metadata/graphql'; const fieldExists = ( fieldId: string | undefined | null, diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/assertAggregateChartWidget.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/assertAggregateChartWidget.ts index 9bb98926e1..8b2f0f3c3d 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/assertAggregateChartWidget.ts +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/assertAggregateChartWidget.ts @@ -1,7 +1,7 @@ import { isWidgetConfigurationOfType } from '@/command-menu/pages/page-layout/utils/isWidgetConfigurationOfType'; import { type PageLayoutWidget } from '@/page-layout/types/PageLayoutWidget'; import { assertIsDefinedOrThrow } from 'twenty-shared/utils'; -import { type AggregateChartConfiguration } from '~/generated/graphql'; +import { type AggregateChartConfiguration } from '~/generated-metadata/graphql'; type AssertAggregateChartWidgetOrThrow = ( widget: PageLayoutWidget, diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/assertBarChartWidget.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/assertBarChartWidget.ts index 4ac136da5a..90a6c1ec57 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/assertBarChartWidget.ts +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/assertBarChartWidget.ts @@ -1,7 +1,7 @@ import { isWidgetConfigurationOfType } from '@/command-menu/pages/page-layout/utils/isWidgetConfigurationOfType'; import { type PageLayoutWidget } from '@/page-layout/types/PageLayoutWidget'; import { assertIsDefinedOrThrow } from 'twenty-shared/utils'; -import { type BarChartConfiguration } from '~/generated/graphql'; +import { type BarChartConfiguration } from '~/generated-metadata/graphql'; type AssertBarChartWidgetOrThrow = ( widget: PageLayoutWidget, diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/assertLineChartWidget.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/assertLineChartWidget.ts index 3f09325cd9..87a9e28f80 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/assertLineChartWidget.ts +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/assertLineChartWidget.ts @@ -1,6 +1,6 @@ import { type PageLayoutWidget } from '@/page-layout/types/PageLayoutWidget'; import { assertIsDefinedOrThrow } from 'twenty-shared/utils'; -import { type LineChartConfiguration } from '~/generated/graphql'; +import { type LineChartConfiguration } from '~/generated-metadata/graphql'; type AssertLineChartWidgetOrThrow = ( widget: PageLayoutWidget, diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/assertPieChartWidget.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/assertPieChartWidget.ts index 165b48f5f8..cb5f8c612f 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/assertPieChartWidget.ts +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/assertPieChartWidget.ts @@ -1,7 +1,7 @@ import { isWidgetConfigurationOfType } from '@/command-menu/pages/page-layout/utils/isWidgetConfigurationOfType'; import { type PageLayoutWidget } from '@/page-layout/types/PageLayoutWidget'; import { assertIsDefinedOrThrow } from 'twenty-shared/utils'; -import { type PieChartConfiguration } from '~/generated/graphql'; +import { type PieChartConfiguration } from '~/generated-metadata/graphql'; type AssertPieChartWidgetOrThrow = ( widget: PageLayoutWidget, diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/buildSortsForChartFieldOrderBy.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/buildSortsForChartFieldOrderBy.ts index 472162cdae..5717a6931f 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/buildSortsForChartFieldOrderBy.ts +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/buildSortsForChartFieldOrderBy.ts @@ -2,7 +2,7 @@ import { type ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataI import { type NormalizedChartConfigurationFields } from '@/page-layout/widgets/graph/utils/normalizeChartConfigurationFields'; import { isNonEmptyString } from '@sniptt/guards'; import { isDefined } from 'twenty-shared/utils'; -import { GraphOrderBy } from '~/generated/graphql'; +import { GraphOrderBy } from '~/generated-metadata/graphql'; type ChartSort = { fieldName: string; diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/buildSortsForChartValueOrderBy.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/buildSortsForChartValueOrderBy.ts index 004356d98a..31e50c45c4 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/buildSortsForChartValueOrderBy.ts +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/buildSortsForChartValueOrderBy.ts @@ -1,7 +1,7 @@ import { type ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem'; import { type NormalizedChartConfigurationFields } from '@/page-layout/widgets/graph/utils/normalizeChartConfigurationFields'; import { isDefined } from 'twenty-shared/utils'; -import { GraphOrderBy } from '~/generated/graphql'; +import { GraphOrderBy } from '~/generated-metadata/graphql'; type ChartSort = { fieldName: string; diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/buildSortsFromChartConfig.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/buildSortsFromChartConfig.ts index 32e7bb6e68..86b028c774 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/buildSortsFromChartConfig.ts +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/buildSortsFromChartConfig.ts @@ -7,7 +7,7 @@ import { type BarChartConfiguration, type LineChartConfiguration, type PieChartConfiguration, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; type ChartSort = { fieldName: string; diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/extractBarChartDataConfiguration.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/extractBarChartDataConfiguration.ts index 0682533d42..4f21dbe9e2 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/extractBarChartDataConfiguration.ts +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/extractBarChartDataConfiguration.ts @@ -1,4 +1,4 @@ -import { type BarChartConfiguration } from '~/generated/graphql'; +import { type BarChartConfiguration } from '~/generated-metadata/graphql'; type BarChartStyleFields = | 'displayDataLabel' diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/extractLineChartDataConfiguration.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/extractLineChartDataConfiguration.ts index c6fa563c24..2cf15a4875 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/extractLineChartDataConfiguration.ts +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/extractLineChartDataConfiguration.ts @@ -1,4 +1,4 @@ -import { type LineChartConfiguration } from '~/generated/graphql'; +import { type LineChartConfiguration } from '~/generated-metadata/graphql'; type LineChartStyleFields = | 'displayDataLabel' diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/extractPieChartDataConfiguration.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/extractPieChartDataConfiguration.ts index 3dcc2a422a..b68500325d 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/extractPieChartDataConfiguration.ts +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/extractPieChartDataConfiguration.ts @@ -1,4 +1,4 @@ -import { type PieChartConfiguration } from '~/generated/graphql'; +import { type PieChartConfiguration } from '~/generated-metadata/graphql'; type PieChartStyleFields = | 'displayDataLabel' diff --git a/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/StandaloneRichTextEditorContent.tsx b/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/StandaloneRichTextEditorContent.tsx index 00263ea161..3660755cac 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/StandaloneRichTextEditorContent.tsx +++ b/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/StandaloneRichTextEditorContent.tsx @@ -24,7 +24,7 @@ import { useCreateBlockNote } from '@blocknote/react'; import '@blocknote/react/style.css'; import { useRecoilCallback } from 'recoil'; import { useDebouncedCallback } from 'use-debounce'; -import { WidgetConfigurationType } from '~/generated/graphql'; +import { WidgetConfigurationType } from '~/generated-metadata/graphql'; type StandaloneRichTextEditorContentProps = { widget: PageLayoutWidget; diff --git a/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/StandaloneRichTextWidget.tsx b/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/StandaloneRichTextWidget.tsx index 5675d0dac2..e3bd8efab8 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/StandaloneRichTextWidget.tsx +++ b/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/StandaloneRichTextWidget.tsx @@ -18,7 +18,7 @@ import { FeatureFlagKey, PageLayoutType, type StandaloneRichTextConfiguration, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; const StyledContainer = styled.div<{ isPageLayoutInEditMode?: boolean }>` box-sizing: border-box; diff --git a/packages/twenty-front/src/modules/page-layout/widgets/utils/getWidgetCardVariant.ts b/packages/twenty-front/src/modules/page-layout/widgets/utils/getWidgetCardVariant.ts index d7fe162b44..3a929fa205 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/utils/getWidgetCardVariant.ts +++ b/packages/twenty-front/src/modules/page-layout/widgets/utils/getWidgetCardVariant.ts @@ -1,4 +1,7 @@ -import { PageLayoutTabLayoutMode, PageLayoutType } from '~/generated/graphql'; +import { + PageLayoutTabLayoutMode, + PageLayoutType, +} from '~/generated-metadata/graphql'; import { type WidgetCardVariant } from '~/modules/page-layout/widgets/types/WidgetCardVariant'; type GetWidgetCardVariantParams = { diff --git a/packages/twenty-front/src/modules/prefetch/components/PrefetchRunFavoriteQueriesEffect.tsx b/packages/twenty-front/src/modules/prefetch/components/PrefetchRunFavoriteQueriesEffect.tsx index 9a0646ac27..87d37fe72b 100644 --- a/packages/twenty-front/src/modules/prefetch/components/PrefetchRunFavoriteQueriesEffect.tsx +++ b/packages/twenty-front/src/modules/prefetch/components/PrefetchRunFavoriteQueriesEffect.tsx @@ -19,7 +19,7 @@ import { useShowAuthModal } from '@/ui/layout/hooks/useShowAuthModal'; import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled'; import { isDefined } from 'twenty-shared/utils'; import { WorkspaceActivationStatus } from 'twenty-shared/workspace'; -import { FeatureFlagKey } from '~/generated/graphql'; +import { FeatureFlagKey } from '~/generated-metadata/graphql'; import { isDeeplyEqual } from '~/utils/isDeeplyEqual'; export const PrefetchRunFavoriteQueriesEffect = () => { diff --git a/packages/twenty-front/src/modules/prefetch/components/PrefetchRunNavigationMenuItemQueriesEffect.tsx b/packages/twenty-front/src/modules/prefetch/components/PrefetchRunNavigationMenuItemQueriesEffect.tsx index 4766161ad5..ff142a427e 100644 --- a/packages/twenty-front/src/modules/prefetch/components/PrefetchRunNavigationMenuItemQueriesEffect.tsx +++ b/packages/twenty-front/src/modules/prefetch/components/PrefetchRunNavigationMenuItemQueriesEffect.tsx @@ -11,10 +11,10 @@ import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled'; import { isDefined } from 'twenty-shared/utils'; import { WorkspaceActivationStatus } from 'twenty-shared/workspace'; import { + FeatureFlagKey, useFindManyNavigationMenuItemsQuery, type NavigationMenuItem, } from '~/generated-metadata/graphql'; -import { FeatureFlagKey } from '~/generated/graphql'; import { isDeeplyEqual } from '~/utils/isDeeplyEqual'; export const PrefetchRunNavigationMenuItemQueriesEffect = () => { diff --git a/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsCalendarChannelDetails.tsx b/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsCalendarChannelDetails.tsx index 1b71c4dfaf..ad3927a09f 100644 --- a/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsCalendarChannelDetails.tsx +++ b/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsCalendarChannelDetails.tsx @@ -8,7 +8,7 @@ import { t } from '@lingui/core/macro'; import { Section } from '@react-email/components'; import { H2Title, IconUserPlus } from 'twenty-ui/display'; import { Card } from 'twenty-ui/layout'; -import { type CalendarChannelVisibility } from '~/generated-metadata/graphql'; +import { type CalendarChannelVisibility } from '~/generated/graphql'; const StyledDetailsContainer = styled.div` display: flex; diff --git a/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsMessageChannelDetails.tsx b/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsMessageChannelDetails.tsx index 776be8b046..53a8cffbb1 100644 --- a/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsMessageChannelDetails.tsx +++ b/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsMessageChannelDetails.tsx @@ -14,7 +14,7 @@ import { SettingsOptionCardContentToggle } from '@/settings/components/SettingsO import { t } from '@lingui/core/macro'; import { H2Title, IconBriefcase, IconUsers } from 'twenty-ui/display'; import { Card, Section } from 'twenty-ui/layout'; -import { type MessageChannelVisibility } from '~/generated-metadata/graphql'; +import { type MessageChannelVisibility } from '~/generated/graphql'; type SettingsAccountsMessageChannelDetailsProps = { messageChannel: Pick< diff --git a/packages/twenty-front/src/modules/settings/accounts/hooks/__tests__/useTriggerProviderReconnect.test.tsx b/packages/twenty-front/src/modules/settings/accounts/hooks/__tests__/useTriggerProviderReconnect.test.tsx index 1db55dd2f8..eca3cedd90 100644 --- a/packages/twenty-front/src/modules/settings/accounts/hooks/__tests__/useTriggerProviderReconnect.test.tsx +++ b/packages/twenty-front/src/modules/settings/accounts/hooks/__tests__/useTriggerProviderReconnect.test.tsx @@ -1,12 +1,12 @@ +import { + MessageChannelVisibility, + CalendarChannelVisibility, +} from '~/generated/graphql'; import { act, renderHook } from '@testing-library/react'; import { type ReactNode } from 'react'; import { RecoilRoot } from 'recoil'; import { ConnectedAccountProvider, SettingsPath } from 'twenty-shared/types'; -import { - CalendarChannelVisibility, - MessageChannelVisibility, -} from '~/generated-metadata/graphql'; import { useTriggerProviderReconnect } from '@/settings/accounts/hooks/useTriggerProviderReconnect'; const mockTriggerApisOAuth = jest.fn(); diff --git a/packages/twenty-front/src/modules/settings/accounts/hooks/useTriggerApiOAuth.ts b/packages/twenty-front/src/modules/settings/accounts/hooks/useTriggerApiOAuth.ts index 75ada170ee..cc5e527868 100644 --- a/packages/twenty-front/src/modules/settings/accounts/hooks/useTriggerApiOAuth.ts +++ b/packages/twenty-front/src/modules/settings/accounts/hooks/useTriggerApiOAuth.ts @@ -1,14 +1,14 @@ +import { + type MessageChannelVisibility, + type CalendarChannelVisibility, +} from '~/generated/graphql'; import { useCallback } from 'react'; import { type AppPath, ConnectedAccountProvider } from 'twenty-shared/types'; import { useRedirect } from '@/domain-manager/hooks/useRedirect'; import { CustomError } from 'twenty-shared/utils'; import { REACT_APP_SERVER_BASE_URL } from '~/config'; -import { - type CalendarChannelVisibility, - type MessageChannelVisibility, - useGenerateTransientTokenMutation, -} from '~/generated-metadata/graphql'; +import { useGenerateTransientTokenMutation } from '~/generated-metadata/graphql'; const getProviderUrl = (provider: ConnectedAccountProvider) => { switch (provider) { diff --git a/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/ConfigVariableActionButtons.tsx b/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/ConfigVariableActionButtons.tsx index 97af98b3d5..862b6426f8 100644 --- a/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/ConfigVariableActionButtons.tsx +++ b/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/ConfigVariableActionButtons.tsx @@ -8,7 +8,10 @@ import { IconRefreshAlert, } from 'twenty-ui/display'; import { Button } from 'twenty-ui/input'; -import { ConfigSource, type ConfigVariable } from '~/generated/graphql'; +import { + ConfigSource, + type ConfigVariable, +} from '~/generated-metadata/graphql'; type ConfigVariableActionButtonsProps = { variable: ConfigVariable; diff --git a/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/ConfigVariableDatabaseInput.tsx b/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/ConfigVariableDatabaseInput.tsx index 3d67839ecb..63dbf68df6 100644 --- a/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/ConfigVariableDatabaseInput.tsx +++ b/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/ConfigVariableDatabaseInput.tsx @@ -9,7 +9,7 @@ import { t } from '@lingui/core/macro'; import { type ConfigVariableValue } from 'twenty-shared/types'; import { CustomError } from 'twenty-shared/utils'; import { MenuItemMultiSelect } from 'twenty-ui/navigation'; -import { ConfigVariableType } from '~/generated/graphql'; +import { ConfigVariableType } from '~/generated-metadata/graphql'; import { type ConfigVariableOptions } from '@/settings/admin-panel/config-variables/types/ConfigVariableOptions'; type ConfigVariableDatabaseInputProps = { diff --git a/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/ConfigVariableHelpText.tsx b/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/ConfigVariableHelpText.tsx index 068273f408..561f193559 100644 --- a/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/ConfigVariableHelpText.tsx +++ b/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/ConfigVariableHelpText.tsx @@ -3,7 +3,10 @@ import { useLingui } from '@lingui/react/macro'; import { isConfigVariablesInDbEnabledState } from '@/client-config/states/isConfigVariablesInDbEnabledState'; import { useRecoilValue } from 'recoil'; -import { ConfigSource, type ConfigVariable } from '~/generated/graphql'; +import { + ConfigSource, + type ConfigVariable, +} from '~/generated-metadata/graphql'; const StyledHelpText = styled.div<{ color?: string }>` color: ${({ theme, color }) => color || theme.font.color.tertiary}; diff --git a/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/ConfigVariableValueInput.tsx b/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/ConfigVariableValueInput.tsx index d0d8db97a7..6bd224726f 100644 --- a/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/ConfigVariableValueInput.tsx +++ b/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/ConfigVariableValueInput.tsx @@ -5,7 +5,7 @@ import { TextInput } from '@/ui/input/components/TextInput'; import styled from '@emotion/styled'; import { useRecoilValue } from 'recoil'; import { type ConfigVariableValue } from 'twenty-shared/types'; -import { type ConfigVariable } from '~/generated/graphql'; +import { type ConfigVariable } from '~/generated-metadata/graphql'; import { ConfigVariableDatabaseInput } from './ConfigVariableDatabaseInput'; type ConfigVariableValueInputProps = { diff --git a/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/SettingsAdminConfigVariablesRow.tsx b/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/SettingsAdminConfigVariablesRow.tsx index 4b6ef6cbb4..3317112b80 100644 --- a/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/SettingsAdminConfigVariablesRow.tsx +++ b/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/SettingsAdminConfigVariablesRow.tsx @@ -5,7 +5,7 @@ import styled from '@emotion/styled'; import { SettingsPath } from 'twenty-shared/types'; import { getSettingsPath } from 'twenty-shared/utils'; import { IconChevronRight } from 'twenty-ui/display'; -import { type ConfigVariable } from '~/generated/graphql'; +import { type ConfigVariable } from '~/generated-metadata/graphql'; type SettingsAdminConfigVariablesRowProps = { variable: ConfigVariable; diff --git a/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/SettingsAdminConfigVariablesTable.tsx b/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/SettingsAdminConfigVariablesTable.tsx index ad837c3482..8f18365f3d 100644 --- a/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/SettingsAdminConfigVariablesTable.tsx +++ b/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/SettingsAdminConfigVariablesTable.tsx @@ -5,7 +5,7 @@ import { TableBody } from '@/ui/layout/table/components/TableBody'; import { TableHeader } from '@/ui/layout/table/components/TableHeader'; import { TableRow } from '@/ui/layout/table/components/TableRow'; import styled from '@emotion/styled'; -import { type ConfigVariable } from '~/generated/graphql'; +import { type ConfigVariable } from '~/generated-metadata/graphql'; const StyledTableBody = styled(TableBody)` border-bottom: 1px solid ${({ theme }) => theme.border.color.light}; diff --git a/packages/twenty-front/src/modules/settings/admin-panel/config-variables/utils/useSourceContent.ts b/packages/twenty-front/src/modules/settings/admin-panel/config-variables/utils/useSourceContent.ts index 9b0b647bcb..24d8f8a443 100644 --- a/packages/twenty-front/src/modules/settings/admin-panel/config-variables/utils/useSourceContent.ts +++ b/packages/twenty-front/src/modules/settings/admin-panel/config-variables/utils/useSourceContent.ts @@ -2,7 +2,7 @@ import { useTheme } from '@emotion/react'; import { useLingui } from '@lingui/react/macro'; import { CustomError } from 'twenty-shared/utils'; -import { ConfigSource } from '~/generated/graphql'; +import { ConfigSource } from '~/generated-metadata/graphql'; export const useSourceContent = (source: ConfigSource) => { const { t } = useLingui(); diff --git a/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/SettingsAdminIndicatorHealthStatusContent.tsx b/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/SettingsAdminIndicatorHealthStatusContent.tsx index 4a25e53635..187df867dc 100644 --- a/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/SettingsAdminIndicatorHealthStatusContent.tsx +++ b/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/SettingsAdminIndicatorHealthStatusContent.tsx @@ -2,7 +2,7 @@ import { SettingsAdminConnectedAccountHealthStatus } from '@/settings/admin-pane import { SettingsAdminJsonDataIndicatorHealthStatus } from '@/settings/admin-panel/health-status/components/SettingsAdminJsonDataIndicatorHealthStatus'; import { SettingsAdminWorkerHealthStatus } from '@/settings/admin-panel/health-status/components/SettingsAdminWorkerHealthStatus'; import { useParams } from 'react-router-dom'; -import { HealthIndicatorId } from '~/generated/graphql'; +import { HealthIndicatorId } from '~/generated-metadata/graphql'; export const SettingsAdminIndicatorHealthStatusContent = () => { const { indicatorId } = useParams(); diff --git a/packages/twenty-front/src/modules/settings/admin-panel/health-status/constants/WorkerQueueMetricsSelectOptions.ts b/packages/twenty-front/src/modules/settings/admin-panel/health-status/constants/WorkerQueueMetricsSelectOptions.ts index 7f933bc676..5e3ec4cabf 100644 --- a/packages/twenty-front/src/modules/settings/admin-panel/health-status/constants/WorkerQueueMetricsSelectOptions.ts +++ b/packages/twenty-front/src/modules/settings/admin-panel/health-status/constants/WorkerQueueMetricsSelectOptions.ts @@ -1,5 +1,5 @@ import { msg } from '@lingui/core/macro'; -import { QueueMetricsTimeRange } from '~/generated/graphql'; +import { QueueMetricsTimeRange } from '~/generated-metadata/graphql'; export const WORKER_QUEUE_METRICS_SELECT_OPTIONS = [ { value: QueueMetricsTimeRange.SevenDays, label: msg`This week` }, diff --git a/packages/twenty-front/src/modules/settings/admin-panel/health-status/contexts/SettingsAdminIndicatorHealthContext.tsx b/packages/twenty-front/src/modules/settings/admin-panel/health-status/contexts/SettingsAdminIndicatorHealthContext.tsx index 95ab5534f2..14809eb94b 100644 --- a/packages/twenty-front/src/modules/settings/admin-panel/health-status/contexts/SettingsAdminIndicatorHealthContext.tsx +++ b/packages/twenty-front/src/modules/settings/admin-panel/health-status/contexts/SettingsAdminIndicatorHealthContext.tsx @@ -1,9 +1,9 @@ import { createContext } from 'react'; import { - type AdminPanelHealthServiceData, AdminPanelHealthServiceStatus, HealthIndicatorId, -} from '~/generated/graphql'; + type AdminPanelHealthServiceData, +} from '~/generated-metadata/graphql'; type SettingsAdminIndicatorHealthContextType = { indicatorHealth: AdminPanelHealthServiceData; diff --git a/packages/twenty-front/src/modules/settings/admin-panel/hooks/useFeatureFlagState.ts b/packages/twenty-front/src/modules/settings/admin-panel/hooks/useFeatureFlagState.ts index 5736118607..87ebc3c853 100644 --- a/packages/twenty-front/src/modules/settings/admin-panel/hooks/useFeatureFlagState.ts +++ b/packages/twenty-front/src/modules/settings/admin-panel/hooks/useFeatureFlagState.ts @@ -1,6 +1,6 @@ import { userLookupResultState } from '@/settings/admin-panel/states/userLookupResultState'; import { useRecoilState } from 'recoil'; -import { type FeatureFlagKey } from '~/generated/graphql'; +import { type FeatureFlagKey } from '~/generated-metadata/graphql'; import { isDefined } from 'twenty-shared/utils'; export const useFeatureFlagState = () => { diff --git a/packages/twenty-front/src/modules/settings/admin-panel/hooks/useImpersonationRedirect.ts b/packages/twenty-front/src/modules/settings/admin-panel/hooks/useImpersonationRedirect.ts index 97d102281d..52d688a6f8 100644 --- a/packages/twenty-front/src/modules/settings/admin-panel/hooks/useImpersonationRedirect.ts +++ b/packages/twenty-front/src/modules/settings/admin-panel/hooks/useImpersonationRedirect.ts @@ -1,6 +1,6 @@ import { useRedirectToWorkspaceDomain } from '@/domain-manager/hooks/useRedirectToWorkspaceDomain'; import { AppPath } from 'twenty-shared/types'; -import { type WorkspaceUrls } from '~/generated/graphql'; +import { type WorkspaceUrls } from '~/generated-metadata/graphql'; import { getWorkspaceUrl } from '~/utils/getWorkspaceUrl'; export const useImpersonationRedirect = () => { diff --git a/packages/twenty-front/src/modules/settings/admin-panel/types/FeatureFlag.ts b/packages/twenty-front/src/modules/settings/admin-panel/types/FeatureFlag.ts index 2394c34a67..ae4cd36576 100644 --- a/packages/twenty-front/src/modules/settings/admin-panel/types/FeatureFlag.ts +++ b/packages/twenty-front/src/modules/settings/admin-panel/types/FeatureFlag.ts @@ -1,4 +1,4 @@ -import { type FeatureFlagKey } from '~/generated/graphql'; +import { type FeatureFlagKey } from '~/generated-metadata/graphql'; export type FeatureFlag = { key: FeatureFlagKey; diff --git a/packages/twenty-front/src/modules/settings/components/SettingsProtectedRouteWrapper.tsx b/packages/twenty-front/src/modules/settings/components/SettingsProtectedRouteWrapper.tsx index dead3f2740..ae9500059e 100644 --- a/packages/twenty-front/src/modules/settings/components/SettingsProtectedRouteWrapper.tsx +++ b/packages/twenty-front/src/modules/settings/components/SettingsProtectedRouteWrapper.tsx @@ -8,7 +8,7 @@ import { getSettingsPath } from 'twenty-shared/utils'; import { type FeatureFlagKey, type PermissionFlagType, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; type SettingsProtectedRouteWrapperProps = { children?: ReactNode; diff --git a/packages/twenty-front/src/modules/settings/data-model/fields/forms/morph-relation/components/SettingsDataModelFieldRelationFormCard.tsx b/packages/twenty-front/src/modules/settings/data-model/fields/forms/morph-relation/components/SettingsDataModelFieldRelationFormCard.tsx index 15444f68e5..2218ecd7f3 100644 --- a/packages/twenty-front/src/modules/settings/data-model/fields/forms/morph-relation/components/SettingsDataModelFieldRelationFormCard.tsx +++ b/packages/twenty-front/src/modules/settings/data-model/fields/forms/morph-relation/components/SettingsDataModelFieldRelationFormCard.tsx @@ -14,8 +14,11 @@ import { SettingsDataModelRelationFieldPreviewSubWidget } from '@/settings/data- import { useIsMobile } from '@/ui/utilities/responsive/hooks/useIsMobile'; import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled'; import { isDefined } from 'twenty-shared/utils'; -import { FieldMetadataType, RelationType } from '~/generated-metadata/graphql'; -import { FeatureFlagKey } from '~/generated/graphql'; +import { + FieldMetadataType, + RelationType, + FeatureFlagKey, +} from '~/generated-metadata/graphql'; import { type SettingsDataModelFieldEditFormValues } from '~/pages/settings/data-model/SettingsObjectFieldEdit'; type SettingsDataModelFieldRelationFormCardProps = { diff --git a/packages/twenty-front/src/modules/settings/domains/components/CheckPublicDomainValidRecordsEffect.tsx b/packages/twenty-front/src/modules/settings/domains/components/CheckPublicDomainValidRecordsEffect.tsx index 85d28cc98e..f014913448 100644 --- a/packages/twenty-front/src/modules/settings/domains/components/CheckPublicDomainValidRecordsEffect.tsx +++ b/packages/twenty-front/src/modules/settings/domains/components/CheckPublicDomainValidRecordsEffect.tsx @@ -1,6 +1,6 @@ import { useEffect } from 'react'; import { useCheckPublicDomainValidRecords } from '@/settings/domains/hooks/useCheckPublicDomainValidRecords'; -import { type PublicDomain } from '~/generated/graphql'; +import { type PublicDomain } from '~/generated-metadata/graphql'; export const CheckPublicDomainValidRecordsEffect = ({ publicDomain, diff --git a/packages/twenty-front/src/modules/settings/domains/components/SettingPublicDomainRowDropdownMenu.tsx b/packages/twenty-front/src/modules/settings/domains/components/SettingPublicDomainRowDropdownMenu.tsx index c17298a5c2..a9120d95c4 100644 --- a/packages/twenty-front/src/modules/settings/domains/components/SettingPublicDomainRowDropdownMenu.tsx +++ b/packages/twenty-front/src/modules/settings/domains/components/SettingPublicDomainRowDropdownMenu.tsx @@ -1,17 +1,17 @@ -import { type PublicDomain } from '~/generated/graphql'; import { useSnackBar } from '@/ui/feedback/snack-bar-manager/hooks/useSnackBar'; +import { Dropdown } from '@/ui/layout/dropdown/components/Dropdown'; +import { DropdownContent } from '@/ui/layout/dropdown/components/DropdownContent'; +import { DropdownMenuItemsContainer } from '@/ui/layout/dropdown/components/DropdownMenuItemsContainer'; import { useCloseDropdown } from '@/ui/layout/dropdown/hooks/useCloseDropdown'; +import { useLingui } from '@lingui/react/macro'; +import { IconDotsVertical, IconTrash } from 'twenty-ui/display'; +import { LightIconButton } from 'twenty-ui/input'; +import { MenuItem } from 'twenty-ui/navigation'; import { useDeletePublicDomainMutation, useFindManyPublicDomainsQuery, + type PublicDomain, } from '~/generated-metadata/graphql'; -import { useLingui } from '@lingui/react/macro'; -import { LightIconButton } from 'twenty-ui/input'; -import { IconDotsVertical, IconTrash } from 'twenty-ui/display'; -import { DropdownContent } from '@/ui/layout/dropdown/components/DropdownContent'; -import { DropdownMenuItemsContainer } from '@/ui/layout/dropdown/components/DropdownMenuItemsContainer'; -import { MenuItem } from 'twenty-ui/navigation'; -import { Dropdown } from '@/ui/layout/dropdown/components/Dropdown'; export const SettingPublicDomainRowDropdownMenu = ({ publicDomain, diff --git a/packages/twenty-front/src/modules/settings/domains/components/SettingsDomainRecords.tsx b/packages/twenty-front/src/modules/settings/domains/components/SettingsDomainRecords.tsx index ccfa8d22fc..f27cbe0f02 100644 --- a/packages/twenty-front/src/modules/settings/domains/components/SettingsDomainRecords.tsx +++ b/packages/twenty-front/src/modules/settings/domains/components/SettingsDomainRecords.tsx @@ -8,7 +8,7 @@ import { type ThemeColor } from 'twenty-ui/theme'; import { type DomainRecord, type DomainValidRecords, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export const SettingsDomainRecords = ({ records, diff --git a/packages/twenty-front/src/modules/settings/domains/components/SettingsPublicDomainsListCard.tsx b/packages/twenty-front/src/modules/settings/domains/components/SettingsPublicDomainsListCard.tsx index ce22e0113f..663c1d8017 100644 --- a/packages/twenty-front/src/modules/settings/domains/components/SettingsPublicDomainsListCard.tsx +++ b/packages/twenty-front/src/modules/settings/domains/components/SettingsPublicDomainsListCard.tsx @@ -6,8 +6,10 @@ import { useLingui } from '@lingui/react/macro'; import { useSetRecoilState } from 'recoil'; import { SettingsPath } from 'twenty-shared/types'; import { IconAt, IconMailCog, Status } from 'twenty-ui/display'; -import { useFindManyPublicDomainsQuery } from '~/generated-metadata/graphql'; -import { type PublicDomain } from '~/generated/graphql'; +import { + useFindManyPublicDomainsQuery, + type PublicDomain, +} from '~/generated-metadata/graphql'; import { useNavigateSettings } from '~/hooks/useNavigateSettings'; export const SettingsPublicDomainsListCard = () => { diff --git a/packages/twenty-front/src/modules/settings/domains/states/customDomainRecordsState.ts b/packages/twenty-front/src/modules/settings/domains/states/customDomainRecordsState.ts index 076b7c87e1..79d373febf 100644 --- a/packages/twenty-front/src/modules/settings/domains/states/customDomainRecordsState.ts +++ b/packages/twenty-front/src/modules/settings/domains/states/customDomainRecordsState.ts @@ -1,4 +1,4 @@ -import { type DomainValidRecords } from '~/generated/graphql'; +import { type DomainValidRecords } from '~/generated-metadata/graphql'; import { createState } from 'twenty-ui/utilities'; export const customDomainRecordsState = createState<{ diff --git a/packages/twenty-front/src/modules/settings/domains/states/publicDomainRecordsState.ts b/packages/twenty-front/src/modules/settings/domains/states/publicDomainRecordsState.ts index d8be1a34aa..cb44d9fb31 100644 --- a/packages/twenty-front/src/modules/settings/domains/states/publicDomainRecordsState.ts +++ b/packages/twenty-front/src/modules/settings/domains/states/publicDomainRecordsState.ts @@ -1,4 +1,4 @@ -import { type DomainValidRecords } from '~/generated/graphql'; +import { type DomainValidRecords } from '~/generated-metadata/graphql'; import { createState } from 'twenty-ui/utilities'; export const publicDomainRecordsState = createState<{ diff --git a/packages/twenty-front/src/modules/settings/domains/states/selectedPublicDomainState.ts b/packages/twenty-front/src/modules/settings/domains/states/selectedPublicDomainState.ts index b33e2d33a6..1f9b17693c 100644 --- a/packages/twenty-front/src/modules/settings/domains/states/selectedPublicDomainState.ts +++ b/packages/twenty-front/src/modules/settings/domains/states/selectedPublicDomainState.ts @@ -1,4 +1,4 @@ -import { type PublicDomain } from '~/generated/graphql'; +import { type PublicDomain } from '~/generated-metadata/graphql'; import { createState } from 'twenty-ui/utilities'; export const selectedPublicDomainState = createState({ diff --git a/packages/twenty-front/src/modules/settings/experience/components/FormatPreferencesSettings.tsx b/packages/twenty-front/src/modules/settings/experience/components/FormatPreferencesSettings.tsx index a350f2fdb9..3ef96fbe03 100644 --- a/packages/twenty-front/src/modules/settings/experience/components/FormatPreferencesSettings.tsx +++ b/packages/twenty-front/src/modules/settings/experience/components/FormatPreferencesSettings.tsx @@ -16,7 +16,7 @@ import { WorkspaceMemberDateFormatEnum, WorkspaceMemberNumberFormatEnum, WorkspaceMemberTimeFormatEnum, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; import { DateTimeSettingsCalendarStartDaySelect } from '~/pages/settings/profile/appearance/components/DateTimeSettingsCalendarStartDaySelect'; const StyledContainer = styled.div` diff --git a/packages/twenty-front/src/modules/settings/hooks/__tests__/useSettingsNavigationItems.test.tsx b/packages/twenty-front/src/modules/settings/hooks/__tests__/useSettingsNavigationItems.test.tsx index b55bab4f0b..795736c02d 100644 --- a/packages/twenty-front/src/modules/settings/hooks/__tests__/useSettingsNavigationItems.test.tsx +++ b/packages/twenty-front/src/modules/settings/hooks/__tests__/useSettingsNavigationItems.test.tsx @@ -8,7 +8,7 @@ import { type Billing, OnboardingStatus, PermissionFlagType, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; import { currentUserState } from '@/auth/states/currentUserState'; import { billingState } from '@/client-config/states/billingState'; diff --git a/packages/twenty-front/src/modules/settings/hooks/useSettingsNavigationItems.tsx b/packages/twenty-front/src/modules/settings/hooks/useSettingsNavigationItems.tsx index b266ff05dd..cab015b94f 100644 --- a/packages/twenty-front/src/modules/settings/hooks/useSettingsNavigationItems.tsx +++ b/packages/twenty-front/src/modules/settings/hooks/useSettingsNavigationItems.tsx @@ -36,7 +36,10 @@ import { IconUsers, IconWorld, } from 'twenty-ui/display'; -import { FeatureFlagKey, PermissionFlagType } from '~/generated/graphql'; +import { + FeatureFlagKey, + PermissionFlagType, +} from '~/generated-metadata/graphql'; export type SettingsNavigationSection = { label: string; diff --git a/packages/twenty-front/src/modules/settings/lab/components/SettingsLabContent.tsx b/packages/twenty-front/src/modules/settings/lab/components/SettingsLabContent.tsx index c52e47967f..0f64241fec 100644 --- a/packages/twenty-front/src/modules/settings/lab/components/SettingsLabContent.tsx +++ b/packages/twenty-front/src/modules/settings/lab/components/SettingsLabContent.tsx @@ -5,7 +5,7 @@ import styled from '@emotion/styled'; import { useState } from 'react'; import { useRecoilValue } from 'recoil'; import { Card } from 'twenty-ui/layout'; -import { type FeatureFlagKey } from '~/generated/graphql'; +import { type FeatureFlagKey } from '~/generated-metadata/graphql'; const StyledCardGrid = styled.div` display: grid; diff --git a/packages/twenty-front/src/modules/settings/logic-functions/components/tabs/SettingsLogicFunctionTabEnvironmentVariableTableRow.tsx b/packages/twenty-front/src/modules/settings/logic-functions/components/tabs/SettingsLogicFunctionTabEnvironmentVariableTableRow.tsx index 3e3956e337..17f25f5221 100644 --- a/packages/twenty-front/src/modules/settings/logic-functions/components/tabs/SettingsLogicFunctionTabEnvironmentVariableTableRow.tsx +++ b/packages/twenty-front/src/modules/settings/logic-functions/components/tabs/SettingsLogicFunctionTabEnvironmentVariableTableRow.tsx @@ -18,7 +18,7 @@ import { } from 'twenty-ui/display'; import { LightIconButton } from 'twenty-ui/input'; import { MenuItem } from 'twenty-ui/navigation'; -import type { ApplicationVariable } from '~/generated/graphql'; +import type { ApplicationVariable } from '~/generated-metadata/graphql'; const StyledEditModeTableRow = styled(TableRow)` grid-template-columns: 180px auto 56px; diff --git a/packages/twenty-front/src/modules/settings/logic-functions/components/tabs/SettingsLogicFunctionTriggersTab.tsx b/packages/twenty-front/src/modules/settings/logic-functions/components/tabs/SettingsLogicFunctionTriggersTab.tsx index 28265316e8..f7b36736e4 100644 --- a/packages/twenty-front/src/modules/settings/logic-functions/components/tabs/SettingsLogicFunctionTriggersTab.tsx +++ b/packages/twenty-front/src/modules/settings/logic-functions/components/tabs/SettingsLogicFunctionTriggersTab.tsx @@ -7,7 +7,7 @@ import styled from '@emotion/styled'; import { useLingui } from '@lingui/react/macro'; import { H2Title } from 'twenty-ui/display'; import { Section } from 'twenty-ui/layout'; -import { type LogicFunction } from '~/generated/graphql'; +import { type LogicFunction } from '~/generated-metadata/graphql'; export const StyledRouteTriggerTableRow = styled(TableRow)` grid-template-columns: 1fr 120px 120px; diff --git a/packages/twenty-front/src/modules/settings/logic-functions/hooks/useLogicFunctionUpdateFormState.ts b/packages/twenty-front/src/modules/settings/logic-functions/hooks/useLogicFunctionUpdateFormState.ts index 7420e98a45..f370ed8e74 100644 --- a/packages/twenty-front/src/modules/settings/logic-functions/hooks/useLogicFunctionUpdateFormState.ts +++ b/packages/twenty-front/src/modules/settings/logic-functions/hooks/useLogicFunctionUpdateFormState.ts @@ -2,8 +2,10 @@ import { useGetOneLogicFunction } from '@/settings/logic-functions/hooks/useGetO import { type Dispatch, type SetStateAction, useState } from 'react'; import { type Sources } from 'twenty-shared/types'; import { isDefined } from 'twenty-shared/utils'; -import { type GetOneLogicFunctionQuery } from '~/generated-metadata/graphql'; -import { type LogicFunction } from '~/generated/graphql'; +import { + type GetOneLogicFunctionQuery, + type LogicFunction, +} from '~/generated-metadata/graphql'; export type LogicFunctionNewFormValues = { name: string; diff --git a/packages/twenty-front/src/modules/settings/roles/hooks/useHasPermissionFlag.ts b/packages/twenty-front/src/modules/settings/roles/hooks/useHasPermissionFlag.ts index a2fcd153ad..72f9c3ce93 100644 --- a/packages/twenty-front/src/modules/settings/roles/hooks/useHasPermissionFlag.ts +++ b/packages/twenty-front/src/modules/settings/roles/hooks/useHasPermissionFlag.ts @@ -3,7 +3,7 @@ import { useRecoilValue } from 'recoil'; import { WorkspaceActivationStatus, PermissionFlagType, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState'; export const useHasPermissionFlag = (permissionFlag?: PermissionFlagType) => { diff --git a/packages/twenty-front/src/modules/settings/roles/hooks/usePermissionFlagMap.ts b/packages/twenty-front/src/modules/settings/roles/hooks/usePermissionFlagMap.ts index 387a0decbc..1da240b18d 100644 --- a/packages/twenty-front/src/modules/settings/roles/hooks/usePermissionFlagMap.ts +++ b/packages/twenty-front/src/modules/settings/roles/hooks/usePermissionFlagMap.ts @@ -1,6 +1,6 @@ import { currentUserWorkspaceState } from '@/auth/states/currentUserWorkspaceState'; import { useRecoilValue } from 'recoil'; -import { PermissionFlagType } from '~/generated/graphql'; +import { PermissionFlagType } from '~/generated-metadata/graphql'; import { buildRecordFromKeysWithSameValue } from '~/utils/array/buildRecordFromKeysWithSameValue'; export const usePermissionFlagMap = (): Record => { diff --git a/packages/twenty-front/src/modules/settings/roles/hooks/useUpdateApiKeyRole.ts b/packages/twenty-front/src/modules/settings/roles/hooks/useUpdateApiKeyRole.ts index 0051ec9020..69f0562318 100644 --- a/packages/twenty-front/src/modules/settings/roles/hooks/useUpdateApiKeyRole.ts +++ b/packages/twenty-front/src/modules/settings/roles/hooks/useUpdateApiKeyRole.ts @@ -1,7 +1,9 @@ import { settingsDraftRoleFamilyState } from '@/settings/roles/states/settingsDraftRoleFamilyState'; import { useRecoilState } from 'recoil'; -import { useAssignRoleToApiKeyMutation } from '~/generated-metadata/graphql'; -import { type ApiKeyForRole } from '~/generated/graphql'; +import { + useAssignRoleToApiKeyMutation, + type ApiKeyForRole, +} from '~/generated-metadata/graphql'; export const useUpdateApiKeyRole = (roleId: string) => { const [settingsDraftRole, setSettingsDraftRole] = useRecoilState( diff --git a/packages/twenty-front/src/modules/settings/roles/role-assignment/components/RoleAssignmentSection.tsx b/packages/twenty-front/src/modules/settings/roles/role-assignment/components/RoleAssignmentSection.tsx index a42623e428..f59381c2e9 100644 --- a/packages/twenty-front/src/modules/settings/roles/role-assignment/components/RoleAssignmentSection.tsx +++ b/packages/twenty-front/src/modules/settings/roles/role-assignment/components/RoleAssignmentSection.tsx @@ -7,8 +7,7 @@ import styled from '@emotion/styled'; import { AppTooltip, IconPlus, TooltipDelay } from 'twenty-ui/display'; import { Button } from 'twenty-ui/input'; import { Section } from 'twenty-ui/layout'; -import { type Agent } from '~/generated-metadata/graphql'; -import { type ApiKeyForRole } from '~/generated/graphql'; +import { type Agent, type ApiKeyForRole } from '~/generated-metadata/graphql'; import { type PartialWorkspaceMember, type RoleWithPartialMembers, diff --git a/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignment.tsx b/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignment.tsx index 76de3b4862..fa0eefddb5 100644 --- a/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignment.tsx +++ b/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignment.tsx @@ -19,8 +19,9 @@ import { useFindManyAgentsQuery, useGetApiKeysQuery, type Agent, + FeatureFlagKey, + type ApiKeyForRole, } from '~/generated-metadata/graphql'; -import { FeatureFlagKey, type ApiKeyForRole } from '~/generated/graphql'; import { useNavigateSettings } from '~/hooks/useNavigateSettings'; import { type PartialWorkspaceMember } from '@/settings/roles/types/RoleWithPartialMembers'; import { ROLE_ASSIGNMENT_CONFIRMATION_MODAL_ID } from '@/settings/roles/role-assignment/constants/RoleAssignmentConfirmationModalId'; diff --git a/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentEntityPickerDropdown.tsx b/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentEntityPickerDropdown.tsx index 770fe93703..a60b4c6df1 100644 --- a/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentEntityPickerDropdown.tsx +++ b/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentEntityPickerDropdown.tsx @@ -10,8 +10,8 @@ import { type Agent, useFindManyAgentsQuery, useGetApiKeysQuery, + type ApiKeyForRole, } from '~/generated-metadata/graphql'; -import { type ApiKeyForRole } from '~/generated/graphql'; import { normalizeSearchText } from '~/utils/normalizeSearchText'; const StyledLoadingContainer = styled.div` diff --git a/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentTable.tsx b/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentTable.tsx index a0f234420f..253954594e 100644 --- a/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentTable.tsx +++ b/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentTable.tsx @@ -13,8 +13,7 @@ import { useMemo, useState } from 'react'; import { useRecoilValue } from 'recoil'; import { H2Title, IconSearch } from 'twenty-ui/display'; -import { type Agent } from '~/generated-metadata/graphql'; -import { type ApiKeyForRole } from '~/generated/graphql'; +import { type Agent, type ApiKeyForRole } from '~/generated-metadata/graphql'; import { normalizeSearchText } from '~/utils/normalizeSearchText'; import { type PartialWorkspaceMember } from '@/settings/roles/types/RoleWithPartialMembers'; diff --git a/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentTableRow.tsx b/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentTableRow.tsx index ceba066d77..50c14797b4 100644 --- a/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentTableRow.tsx +++ b/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentTableRow.tsx @@ -13,8 +13,7 @@ import { OverflowingTextWithTooltip, useIcons, } from 'twenty-ui/display'; -import { type Agent } from '~/generated-metadata/graphql'; -import { type ApiKeyForRole } from '~/generated/graphql'; +import { type Agent, type ApiKeyForRole } from '~/generated-metadata/graphql'; import { dateLocaleState } from '~/localization/states/dateLocaleState'; import { formatDateString } from '~/utils/string/formatDateString'; import { type PartialWorkspaceMember } from '@/settings/roles/types/RoleWithPartialMembers'; diff --git a/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentWorkspaceMemberPickerDropdownContent.tsx b/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentWorkspaceMemberPickerDropdownContent.tsx index bb83756437..fa5ee4d4fa 100644 --- a/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentWorkspaceMemberPickerDropdownContent.tsx +++ b/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentWorkspaceMemberPickerDropdownContent.tsx @@ -3,7 +3,7 @@ import { t } from '@lingui/core/macro'; import { useRecoilValue } from 'recoil'; import { isDefined } from 'twenty-shared/utils'; import { MenuItem, MenuItemAvatar } from 'twenty-ui/navigation'; -import { type SearchRecord } from '~/generated-metadata/graphql'; +import { type SearchRecord } from '~/generated/graphql'; import { type PartialWorkspaceMember } from '@/settings/roles/types/RoleWithPartialMembers'; type SettingsRoleAssignmentWorkspaceMemberPickerDropdownContentProps = { diff --git a/packages/twenty-front/src/modules/settings/roles/role-assignment/constants/RoleTargetConfig.ts b/packages/twenty-front/src/modules/settings/roles/role-assignment/constants/RoleTargetConfig.ts index fc1936821d..33d48b2e41 100644 --- a/packages/twenty-front/src/modules/settings/roles/role-assignment/constants/RoleTargetConfig.ts +++ b/packages/twenty-front/src/modules/settings/roles/role-assignment/constants/RoleTargetConfig.ts @@ -2,8 +2,7 @@ import { type CurrentWorkspaceMember } from '@/auth/states/currentWorkspaceMembe import { SettingsRoleAssignmentEntityPickerDropdown } from '@/settings/roles/role-assignment/components/SettingsRoleAssignmentEntityPickerDropdown'; import { SettingsRoleAssignmentWorkspaceMemberPickerDropdown } from '@/settings/roles/role-assignment/components/SettingsRoleAssignmentWorkspaceMemberPickerDropdown'; import { t } from '@lingui/core/macro'; -import { type Agent } from '~/generated-metadata/graphql'; -import { type ApiKeyForRole } from '~/generated/graphql'; +import { type Agent, type ApiKeyForRole } from '~/generated-metadata/graphql'; import { type PartialWorkspaceMember, type RoleWithPartialMembers, diff --git a/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/field-permissions/components/SettingsRolePermissionsObjectLevelObjectFieldPermissionTableRow.tsx b/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/field-permissions/components/SettingsRolePermissionsObjectLevelObjectFieldPermissionTableRow.tsx index ff3c5f535c..a8ee9f1ef4 100644 --- a/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/field-permissions/components/SettingsRolePermissionsObjectLevelObjectFieldPermissionTableRow.tsx +++ b/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/field-permissions/components/SettingsRolePermissionsObjectLevelObjectFieldPermissionTableRow.tsx @@ -15,7 +15,10 @@ import { useMemo } from 'react'; import { isDefined } from 'twenty-shared/utils'; import { useIcons } from 'twenty-ui/display'; import { v4 } from 'uuid'; -import { type FieldPermission, RelationType } from '~/generated/graphql'; +import { + type FieldPermission, + RelationType, +} from '~/generated-metadata/graphql'; export const StyledObjectFieldTableRow = styled(TableRow)` grid-template-columns: 180px minmax(0, 1fr) 60px 60px; diff --git a/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/field-permissions/hooks/useUpsertFieldPermissionInDraftRole.ts b/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/field-permissions/hooks/useUpsertFieldPermissionInDraftRole.ts index 31b9906212..60eb31bb49 100644 --- a/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/field-permissions/hooks/useUpsertFieldPermissionInDraftRole.ts +++ b/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/field-permissions/hooks/useUpsertFieldPermissionInDraftRole.ts @@ -1,7 +1,7 @@ import { getRoleWithUpsertedFieldPermission } from '@/settings/roles/role-permissions/object-level-permissions/field-permissions/utils/getRoleWithUpsertedFieldPermission'; import { settingsDraftRoleFamilyState } from '@/settings/roles/states/settingsDraftRoleFamilyState'; import { useSetRecoilState } from 'recoil'; -import { type FieldPermission } from '~/generated/graphql'; +import { type FieldPermission } from '~/generated-metadata/graphql'; export const useUpsertFieldPermissionInDraftRole = (roleId: string) => { const setSettingsDraftRole = useSetRecoilState( diff --git a/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/field-permissions/utils/getRoleWithUpsertedFieldPermission.ts b/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/field-permissions/utils/getRoleWithUpsertedFieldPermission.ts index aa8f2d4d5a..458db1019b 100644 --- a/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/field-permissions/utils/getRoleWithUpsertedFieldPermission.ts +++ b/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/field-permissions/utils/getRoleWithUpsertedFieldPermission.ts @@ -1,7 +1,7 @@ import { type RoleWithPartialMembers } from '@/settings/roles/types/RoleWithPartialMembers'; import { isNonEmptyArray } from '@sniptt/guards'; import { produce } from 'immer'; -import { type FieldPermission } from '~/generated/graphql'; +import { type FieldPermission } from '~/generated-metadata/graphql'; export const getRoleWithUpsertedFieldPermission = ( role: RoleWithPartialMembers, diff --git a/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/hooks/getRoleWithUpsertedObjectPermission.ts b/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/hooks/getRoleWithUpsertedObjectPermission.ts index 4e129347bd..236aa93dea 100644 --- a/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/hooks/getRoleWithUpsertedObjectPermission.ts +++ b/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/hooks/getRoleWithUpsertedObjectPermission.ts @@ -1,7 +1,7 @@ import { type RoleWithPartialMembers } from '@/settings/roles/types/RoleWithPartialMembers'; import { isNonEmptyArray } from '@sniptt/guards'; import { produce } from 'immer'; -import { type ObjectPermission } from '~/generated/graphql'; +import { type ObjectPermission } from '~/generated-metadata/graphql'; export const getRoleWithUpsertedObjectPermission = ( role: RoleWithPartialMembers, diff --git a/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/hooks/useUpsertObjectPermission.ts b/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/hooks/useUpsertObjectPermission.ts index 8f4ff02de0..bcbc5f04c6 100644 --- a/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/hooks/useUpsertObjectPermission.ts +++ b/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/hooks/useUpsertObjectPermission.ts @@ -3,7 +3,7 @@ import { type SettingsRoleObjectPermissionKey } from '@/settings/roles/role-perm import { settingsDraftRoleFamilyState } from '@/settings/roles/states/settingsDraftRoleFamilyState'; import { useRecoilValue } from 'recoil'; import { isDefined } from 'twenty-shared/utils'; -import { type ObjectPermission } from '~/generated/graphql'; +import { type ObjectPermission } from '~/generated-metadata/graphql'; export const useUpsertObjectPermission = ({ roleId }: { roleId: string }) => { const settingsDraftRole = useRecoilValue( diff --git a/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/hooks/useUpsertObjectPermissionInDraftRole.ts b/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/hooks/useUpsertObjectPermissionInDraftRole.ts index cf25c5938e..2c8c5d27ae 100644 --- a/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/hooks/useUpsertObjectPermissionInDraftRole.ts +++ b/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/hooks/useUpsertObjectPermissionInDraftRole.ts @@ -1,7 +1,7 @@ import { getRoleWithUpsertedObjectPermission } from '@/settings/roles/role-permissions/object-level-permissions/hooks/getRoleWithUpsertedObjectPermission'; import { settingsDraftRoleFamilyState } from '@/settings/roles/states/settingsDraftRoleFamilyState'; import { useSetRecoilState } from 'recoil'; -import { type ObjectPermission } from '~/generated/graphql'; +import { type ObjectPermission } from '~/generated-metadata/graphql'; export const useUpsertObjectPermissionInDraftRole = (roleId: string) => { const setSettingsDraftRole = useSetRecoilState( diff --git a/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/object-form/components/SettingsRolePermissionsObjectLevelObjectFormObjectLevelTableRow.tsx b/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/object-form/components/SettingsRolePermissionsObjectLevelObjectFormObjectLevelTableRow.tsx index 25d04b8b4c..26cf7a52cb 100644 --- a/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/object-form/components/SettingsRolePermissionsObjectLevelObjectFormObjectLevelTableRow.tsx +++ b/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/object-form/components/SettingsRolePermissionsObjectLevelObjectFormObjectLevelTableRow.tsx @@ -12,8 +12,7 @@ import styled from '@emotion/styled'; import { t } from '@lingui/core/macro'; import { useRecoilValue } from 'recoil'; import { isDefined } from 'twenty-shared/utils'; -import { type ObjectPermission } from '~/generated-metadata/graphql'; -import type { Role } from '~/generated/graphql'; +import { type ObjectPermission, type Role } from '~/generated-metadata/graphql'; const StyledTableRow = styled(TableRow)<{ isDisabled: boolean }>` align-items: center; diff --git a/packages/twenty-front/src/modules/settings/roles/role-permissions/objects-permissions/types/SettingsRolePermissionsObjectPermission.ts b/packages/twenty-front/src/modules/settings/roles/role-permissions/objects-permissions/types/SettingsRolePermissionsObjectPermission.ts index 66901e17e6..1e7d39f01d 100644 --- a/packages/twenty-front/src/modules/settings/roles/role-permissions/objects-permissions/types/SettingsRolePermissionsObjectPermission.ts +++ b/packages/twenty-front/src/modules/settings/roles/role-permissions/objects-permissions/types/SettingsRolePermissionsObjectPermission.ts @@ -1,5 +1,5 @@ import { type ReactNode } from 'react'; -import { type ObjectPermission } from '~/generated/graphql'; +import { type ObjectPermission } from '~/generated-metadata/graphql'; export type SettingsRolePermissionsObjectPermission = { key: keyof Pick< diff --git a/packages/twenty-front/src/modules/settings/roles/role-settings/components/SettingsRoleApplicability.tsx b/packages/twenty-front/src/modules/settings/roles/role-settings/components/SettingsRoleApplicability.tsx index ae5040de3b..c98ddfbbf4 100644 --- a/packages/twenty-front/src/modules/settings/roles/role-settings/components/SettingsRoleApplicability.tsx +++ b/packages/twenty-front/src/modules/settings/roles/role-settings/components/SettingsRoleApplicability.tsx @@ -6,7 +6,7 @@ import { t } from '@lingui/core/macro'; import { H2Title, IconKey, IconRobot, IconUsers } from 'twenty-ui/display'; import { Checkbox } from 'twenty-ui/input'; import { Section } from 'twenty-ui/layout'; -import { FeatureFlagKey } from '~/generated/graphql'; +import { FeatureFlagKey } from '~/generated-metadata/graphql'; const StyledCheckboxContainer = styled.div<{ disabled: boolean }>` display: flex; diff --git a/packages/twenty-front/src/modules/settings/roles/role/hooks/useSaveDraftRoleToDB.ts b/packages/twenty-front/src/modules/settings/roles/role/hooks/useSaveDraftRoleToDB.ts index 8a047cc621..ff7184c9ef 100644 --- a/packages/twenty-front/src/modules/settings/roles/role/hooks/useSaveDraftRoleToDB.ts +++ b/packages/twenty-front/src/modules/settings/roles/role/hooks/useSaveDraftRoleToDB.ts @@ -18,8 +18,8 @@ import { useUpsertFieldPermissionsMutation, useUpsertObjectPermissionsMutation, useUpsertPermissionFlagsMutation, + type Role, } from '~/generated-metadata/graphql'; -import { type Role } from '~/generated/graphql'; import { getDirtyFields } from '~/utils/getDirtyFields'; const ROLE_BASIC_KEYS: Array = [ diff --git a/packages/twenty-front/src/modules/settings/roles/role/hooks/utils/newFieldPermissionsFilter.util.ts b/packages/twenty-front/src/modules/settings/roles/role/hooks/utils/newFieldPermissionsFilter.util.ts index faf0504f3c..a87a1b159c 100644 --- a/packages/twenty-front/src/modules/settings/roles/role/hooks/utils/newFieldPermissionsFilter.util.ts +++ b/packages/twenty-front/src/modules/settings/roles/role/hooks/utils/newFieldPermissionsFilter.util.ts @@ -1,4 +1,4 @@ -import { type FieldPermission } from '~/generated/graphql'; +import { type FieldPermission } from '~/generated-metadata/graphql'; export const newFieldPermissionsFilter = ( dirtyFieldPermission: FieldPermission, diff --git a/packages/twenty-front/src/modules/settings/security/components/SSO/SettingsSSOIdentitiesProvidersForm.tsx b/packages/twenty-front/src/modules/settings/security/components/SSO/SettingsSSOIdentitiesProvidersForm.tsx index 95e0e7771c..d8648a7df4 100644 --- a/packages/twenty-front/src/modules/settings/security/components/SSO/SettingsSSOIdentitiesProvidersForm.tsx +++ b/packages/twenty-front/src/modules/settings/security/components/SSO/SettingsSSOIdentitiesProvidersForm.tsx @@ -12,7 +12,7 @@ import { type ReactElement, useMemo } from 'react'; import { Controller, useFormContext } from 'react-hook-form'; import { H2Title, type IconComponent, IconKey } from 'twenty-ui/display'; import { Section } from 'twenty-ui/layout'; -import { IdentityProviderType } from '~/generated/graphql'; +import { IdentityProviderType } from '~/generated-metadata/graphql'; const StyledInputsContainer = styled.div` display: grid; diff --git a/packages/twenty-front/src/modules/settings/security/components/SSO/SettingsSecuritySSORowDropdownMenu.tsx b/packages/twenty-front/src/modules/settings/security/components/SSO/SettingsSecuritySSORowDropdownMenu.tsx index cfe6bd631a..d750cd1344 100644 --- a/packages/twenty-front/src/modules/settings/security/components/SSO/SettingsSecuritySSORowDropdownMenu.tsx +++ b/packages/twenty-front/src/modules/settings/security/components/SSO/SettingsSecuritySSORowDropdownMenu.tsx @@ -12,7 +12,7 @@ import { isDefined } from 'twenty-shared/utils'; import { IconArchive, IconDotsVertical, IconTrash } from 'twenty-ui/display'; import { LightIconButton } from 'twenty-ui/input'; import { MenuItem } from 'twenty-ui/navigation'; -import { SsoIdentityProviderStatus } from '~/generated/graphql'; +import { SsoIdentityProviderStatus } from '~/generated-metadata/graphql'; type SettingsSecuritySSORowDropdownMenuProps = { SSOIdp: UnwrapRecoilValue[0]; diff --git a/packages/twenty-front/src/modules/settings/security/hooks/__tests__/useCreateSSOIdentityProvider.test.tsx b/packages/twenty-front/src/modules/settings/security/hooks/__tests__/useCreateSSOIdentityProvider.test.tsx index 62f7e3b4bd..68d5f4a719 100644 --- a/packages/twenty-front/src/modules/settings/security/hooks/__tests__/useCreateSSOIdentityProvider.test.tsx +++ b/packages/twenty-front/src/modules/settings/security/hooks/__tests__/useCreateSSOIdentityProvider.test.tsx @@ -9,6 +9,7 @@ const mutationOIDCCallSpy = jest.fn(); const mutationSAMLCallSpy = jest.fn(); jest.mock('~/generated-metadata/graphql', () => ({ + ...jest.requireActual('~/generated-metadata/graphql'), useCreateOidcIdentityProviderMutation: () => [mutationOIDCCallSpy], useCreateSamlIdentityProviderMutation: () => [mutationSAMLCallSpy], })); diff --git a/packages/twenty-front/src/modules/settings/security/hooks/__tests__/useDeleteSSOIdentityProvider.test.tsx b/packages/twenty-front/src/modules/settings/security/hooks/__tests__/useDeleteSSOIdentityProvider.test.tsx index 415d549fe5..e90ed19282 100644 --- a/packages/twenty-front/src/modules/settings/security/hooks/__tests__/useDeleteSSOIdentityProvider.test.tsx +++ b/packages/twenty-front/src/modules/settings/security/hooks/__tests__/useDeleteSSOIdentityProvider.test.tsx @@ -8,6 +8,7 @@ import { getJestMetadataAndApolloMocksWrapper } from '~/testing/jest/getJestMeta const mutationDeleteSSOIDPCallSpy = jest.fn(); jest.mock('~/generated-metadata/graphql', () => ({ + ...jest.requireActual('~/generated-metadata/graphql'), useDeleteSsoIdentityProviderMutation: () => [mutationDeleteSSOIDPCallSpy], })); diff --git a/packages/twenty-front/src/modules/settings/security/hooks/__tests__/useEditSSOIdentityProvider.test.tsx b/packages/twenty-front/src/modules/settings/security/hooks/__tests__/useEditSSOIdentityProvider.test.tsx index d0cc98d8f8..e4db8fd815 100644 --- a/packages/twenty-front/src/modules/settings/security/hooks/__tests__/useEditSSOIdentityProvider.test.tsx +++ b/packages/twenty-front/src/modules/settings/security/hooks/__tests__/useEditSSOIdentityProvider.test.tsx @@ -3,7 +3,7 @@ import { renderHook } from '@testing-library/react'; import { useUpdateSSOIdentityProvider } from '@/settings/security/hooks/useUpdateSSOIdentityProvider'; -import { SsoIdentityProviderStatus } from '~/generated/graphql'; +import { SsoIdentityProviderStatus } from '~/generated-metadata/graphql'; import { getJestMetadataAndApolloMocksWrapper } from '~/testing/jest/getJestMetadataAndApolloMocksWrapper'; const mutationEditSSOIDPCallSpy = jest.fn(); diff --git a/packages/twenty-front/src/modules/settings/security/states/ApprovedAccessDomainsState.ts b/packages/twenty-front/src/modules/settings/security/states/ApprovedAccessDomainsState.ts index 958090692f..7fb3564379 100644 --- a/packages/twenty-front/src/modules/settings/security/states/ApprovedAccessDomainsState.ts +++ b/packages/twenty-front/src/modules/settings/security/states/ApprovedAccessDomainsState.ts @@ -1,4 +1,4 @@ -import { type ApprovedAccessDomain } from '~/generated/graphql'; +import { type ApprovedAccessDomain } from '~/generated-metadata/graphql'; import { createState } from 'twenty-ui/utilities'; export const approvedAccessDomainsState = createState< diff --git a/packages/twenty-front/src/modules/settings/security/types/SSOIdentityProvider.ts b/packages/twenty-front/src/modules/settings/security/types/SSOIdentityProvider.ts index b4bcc28aef..ae882fe1b7 100644 --- a/packages/twenty-front/src/modules/settings/security/types/SSOIdentityProvider.ts +++ b/packages/twenty-front/src/modules/settings/security/types/SSOIdentityProvider.ts @@ -5,7 +5,7 @@ import { type z } from 'zod'; import { type IdentityProviderType, type SsoIdentityProviderStatus, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export type SSOIdentityProvider = { __typename: 'SSOIdentityProvider'; diff --git a/packages/twenty-front/src/modules/settings/security/utils/getColorBySSOIdentityProviderStatus.ts b/packages/twenty-front/src/modules/settings/security/utils/getColorBySSOIdentityProviderStatus.ts index cd1497d82e..9ddd16a197 100644 --- a/packages/twenty-front/src/modules/settings/security/utils/getColorBySSOIdentityProviderStatus.ts +++ b/packages/twenty-front/src/modules/settings/security/utils/getColorBySSOIdentityProviderStatus.ts @@ -1,4 +1,4 @@ -import { type SsoIdentityProviderStatus } from '~/generated/graphql'; +import { type SsoIdentityProviderStatus } from '~/generated-metadata/graphql'; import { type ThemeColor } from 'twenty-ui/theme'; export const getColorBySSOIdentityProviderStatus: Record< diff --git a/packages/twenty-front/src/modules/settings/security/utils/sSOIdentityProviderDefaultValues.ts b/packages/twenty-front/src/modules/settings/security/utils/sSOIdentityProviderDefaultValues.ts index 4fda04f703..7a08ef94f6 100644 --- a/packages/twenty-front/src/modules/settings/security/utils/sSOIdentityProviderDefaultValues.ts +++ b/packages/twenty-front/src/modules/settings/security/utils/sSOIdentityProviderDefaultValues.ts @@ -2,7 +2,7 @@ import { type SettingSecurityNewSSOIdentityFormValues } from '@/settings/security/types/SSOIdentityProvider'; import { v4 } from 'uuid'; -import { type IdentityProviderType } from '~/generated/graphql'; +import { type IdentityProviderType } from '~/generated-metadata/graphql'; export const sSOIdentityProviderDefaultValues: Record< IdentityProviderType, diff --git a/packages/twenty-front/src/modules/spreadsheet-import/utils/spreadsheetImportHasNestedFields.ts b/packages/twenty-front/src/modules/spreadsheet-import/utils/spreadsheetImportHasNestedFields.ts index 444332fb1c..cb3661e593 100644 --- a/packages/twenty-front/src/modules/spreadsheet-import/utils/spreadsheetImportHasNestedFields.ts +++ b/packages/twenty-front/src/modules/spreadsheet-import/utils/spreadsheetImportHasNestedFields.ts @@ -1,7 +1,7 @@ import { type FieldMetadataItem } from '@/object-metadata/types/FieldMetadataItem'; import { isCompositeFieldType } from '@/object-record/object-filter-dropdown/utils/isCompositeFieldType'; import { FieldMetadataType } from 'twenty-shared/types'; -import { RelationType } from '~/generated/graphql'; +import { RelationType } from '~/generated-metadata/graphql'; export const hasNestedFields = (fieldMetadata: FieldMetadataItem) => { return ( diff --git a/packages/twenty-front/src/modules/sse-db-event/components/ListenRecordUpdatesEffect.tsx b/packages/twenty-front/src/modules/sse-db-event/components/ListenRecordUpdatesEffect.tsx index 20cdf7c555..3e85d75bd5 100644 --- a/packages/twenty-front/src/modules/sse-db-event/components/ListenRecordUpdatesEffect.tsx +++ b/packages/twenty-front/src/modules/sse-db-event/components/ListenRecordUpdatesEffect.tsx @@ -14,7 +14,7 @@ import { type ObjectRecord } from '@/object-record/types/ObjectRecord'; import { useOnDbEvent } from '@/sse-db-event/hooks/useOnDbEvent'; import { useRecoilCallback } from 'recoil'; import { isDefined } from 'twenty-shared/utils'; -import { DatabaseEventAction } from '~/generated/graphql'; +import { DatabaseEventAction } from '~/generated-metadata/graphql'; type ListenRecordUpdatesEffectProps = { objectNameSingular: string; diff --git a/packages/twenty-front/src/modules/sse-db-event/components/SSEEventStreamEffect.tsx b/packages/twenty-front/src/modules/sse-db-event/components/SSEEventStreamEffect.tsx index 7b9b702a03..d856ff3183 100644 --- a/packages/twenty-front/src/modules/sse-db-event/components/SSEEventStreamEffect.tsx +++ b/packages/twenty-front/src/modules/sse-db-event/components/SSEEventStreamEffect.tsx @@ -13,7 +13,7 @@ import { isNonEmptyString } from '@sniptt/guards'; import { useEffect } from 'react'; import { useRecoilValue } from 'recoil'; import { isDefined } from 'twenty-shared/utils'; -import { FeatureFlagKey, OnboardingStatus } from '~/generated/graphql'; +import { FeatureFlagKey, OnboardingStatus } from '~/generated-metadata/graphql'; export const SSEEventStreamEffect = () => { const objectMetadataItems = useRecoilValue(objectMetadataItemsState); diff --git a/packages/twenty-front/src/modules/sse-db-event/components/SSEProvider.tsx b/packages/twenty-front/src/modules/sse-db-event/components/SSEProvider.tsx index 478c044db8..700236dd7a 100644 --- a/packages/twenty-front/src/modules/sse-db-event/components/SSEProvider.tsx +++ b/packages/twenty-front/src/modules/sse-db-event/components/SSEProvider.tsx @@ -7,7 +7,7 @@ import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled'; import { createClient } from 'graphql-sse'; import { type ReactNode } from 'react'; import { REACT_APP_SERVER_BASE_URL } from '~/config'; -import { FeatureFlagKey } from '~/generated/graphql'; +import { FeatureFlagKey } from '~/generated-metadata/graphql'; type SSEProviderProps = { children: ReactNode; diff --git a/packages/twenty-front/src/modules/sse-db-event/hooks/useDispatchObjectRecordEventsFromSseToBrowserEvents.ts b/packages/twenty-front/src/modules/sse-db-event/hooks/useDispatchObjectRecordEventsFromSseToBrowserEvents.ts index 32e7c863f7..715632f856 100644 --- a/packages/twenty-front/src/modules/sse-db-event/hooks/useDispatchObjectRecordEventsFromSseToBrowserEvents.ts +++ b/packages/twenty-front/src/modules/sse-db-event/hooks/useDispatchObjectRecordEventsFromSseToBrowserEvents.ts @@ -4,7 +4,7 @@ import { groupObjectRecordSseEventsByObjectMetadataItemNameSingular } from '@/ss import { turnSseObjectRecordEventsToObjectRecordOperationBrowserEvents } from '@/sse-db-event/utils/turnSseObjectRecordEventToObjectRecordOperationBrowserEvent'; import { useCallback } from 'react'; import { isDefined } from 'twenty-shared/utils'; -import { type EventWithQueryIds } from '~/generated/graphql'; +import { type EventWithQueryIds } from '~/generated-metadata/graphql'; export const useDispatchObjectRecordEventsFromSseToBrowserEvents = () => { const { objectMetadataItems } = useObjectMetadataItems(); diff --git a/packages/twenty-front/src/modules/sse-db-event/hooks/useTriggerEventStreamCreation.ts b/packages/twenty-front/src/modules/sse-db-event/hooks/useTriggerEventStreamCreation.ts index 547d14904a..5d9be496b3 100644 --- a/packages/twenty-front/src/modules/sse-db-event/hooks/useTriggerEventStreamCreation.ts +++ b/packages/twenty-front/src/modules/sse-db-event/hooks/useTriggerEventStreamCreation.ts @@ -16,7 +16,7 @@ import { print, type ExecutionResult } from 'graphql'; import { useRecoilCallback, useSetRecoilState } from 'recoil'; import { isDefined } from 'twenty-shared/utils'; import { v4 } from 'uuid'; -import { type EventSubscription } from '~/generated/graphql'; +import { type EventSubscription } from '~/generated-metadata/graphql'; export const useTriggerEventStreamCreation = () => { const setIsCreatingSseEventStream = useSetRecoilState( diff --git a/packages/twenty-front/src/modules/sse-db-event/hooks/useTriggerOptimisticEffectFromSseCreateEvents.ts b/packages/twenty-front/src/modules/sse-db-event/hooks/useTriggerOptimisticEffectFromSseCreateEvents.ts index 2b5f6e260d..5fc8eb993d 100644 --- a/packages/twenty-front/src/modules/sse-db-event/hooks/useTriggerOptimisticEffectFromSseCreateEvents.ts +++ b/packages/twenty-front/src/modules/sse-db-event/hooks/useTriggerOptimisticEffectFromSseCreateEvents.ts @@ -12,7 +12,7 @@ import { useDebouncedCallback } from 'use-debounce'; import { DatabaseEventAction, type ObjectRecordEvent, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export const useTriggerOptimisticEffectFromSseCreateEvents = () => { const apolloCoreClient = useApolloCoreClient(); diff --git a/packages/twenty-front/src/modules/sse-db-event/hooks/useTriggerOptimisticEffectFromSseDeleteEvents.ts b/packages/twenty-front/src/modules/sse-db-event/hooks/useTriggerOptimisticEffectFromSseDeleteEvents.ts index f8284a3997..9be79d0cb1 100644 --- a/packages/twenty-front/src/modules/sse-db-event/hooks/useTriggerOptimisticEffectFromSseDeleteEvents.ts +++ b/packages/twenty-front/src/modules/sse-db-event/hooks/useTriggerOptimisticEffectFromSseDeleteEvents.ts @@ -13,7 +13,7 @@ import { useDebouncedCallback } from 'use-debounce'; import { DatabaseEventAction, type ObjectRecordEvent, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export const useTriggerOptimisticEffectFromSseDeleteEvents = () => { const apolloCoreClient = useApolloCoreClient(); diff --git a/packages/twenty-front/src/modules/sse-db-event/hooks/useTriggerOptimisticEffectFromSseEvents.ts b/packages/twenty-front/src/modules/sse-db-event/hooks/useTriggerOptimisticEffectFromSseEvents.ts index 491ddef399..c4aa80ef90 100644 --- a/packages/twenty-front/src/modules/sse-db-event/hooks/useTriggerOptimisticEffectFromSseEvents.ts +++ b/packages/twenty-front/src/modules/sse-db-event/hooks/useTriggerOptimisticEffectFromSseEvents.ts @@ -10,7 +10,7 @@ import { isDefined } from 'twenty-shared/utils'; import { DatabaseEventAction, type ObjectRecordEvent, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export const useTriggerOptimisticEffectFromSseEvents = () => { const { objectMetadataItems } = useObjectMetadataItems(); diff --git a/packages/twenty-front/src/modules/sse-db-event/hooks/useTriggerOptimisticEffectFromSseRestoreEvents.ts b/packages/twenty-front/src/modules/sse-db-event/hooks/useTriggerOptimisticEffectFromSseRestoreEvents.ts index 0c8c124328..bdb84d8703 100644 --- a/packages/twenty-front/src/modules/sse-db-event/hooks/useTriggerOptimisticEffectFromSseRestoreEvents.ts +++ b/packages/twenty-front/src/modules/sse-db-event/hooks/useTriggerOptimisticEffectFromSseRestoreEvents.ts @@ -13,7 +13,7 @@ import { useDebouncedCallback } from 'use-debounce'; import { DatabaseEventAction, type ObjectRecordEvent, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export const useTriggerOptimisticEffectFromSseRestoreEvents = () => { const apolloCoreClient = useApolloCoreClient(); diff --git a/packages/twenty-front/src/modules/sse-db-event/hooks/useTriggerOptimisticEffectFromSseUpdateEvents.ts b/packages/twenty-front/src/modules/sse-db-event/hooks/useTriggerOptimisticEffectFromSseUpdateEvents.ts index 0214158496..d79476b6f6 100644 --- a/packages/twenty-front/src/modules/sse-db-event/hooks/useTriggerOptimisticEffectFromSseUpdateEvents.ts +++ b/packages/twenty-front/src/modules/sse-db-event/hooks/useTriggerOptimisticEffectFromSseUpdateEvents.ts @@ -16,7 +16,7 @@ import { isDefined, isNonEmptyArray } from 'twenty-shared/utils'; import { DatabaseEventAction, type ObjectRecordEvent, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export const useTriggerOptimisticEffectFromSseUpdateEvents = () => { const apolloCoreClient = useApolloCoreClient(); diff --git a/packages/twenty-front/src/modules/sse-db-event/types/ObjectRecordEventsByQueryId.ts b/packages/twenty-front/src/modules/sse-db-event/types/ObjectRecordEventsByQueryId.ts index a81891ce09..a0e904022b 100644 --- a/packages/twenty-front/src/modules/sse-db-event/types/ObjectRecordEventsByQueryId.ts +++ b/packages/twenty-front/src/modules/sse-db-event/types/ObjectRecordEventsByQueryId.ts @@ -1,3 +1,3 @@ -import { type ObjectRecordEvent } from '~/generated/graphql'; +import { type ObjectRecordEvent } from '~/generated-metadata/graphql'; export type ObjectRecordEventsByQueryId = Record; diff --git a/packages/twenty-front/src/modules/sse-db-event/utils/dispatchObjectRecordEventsWithQueryIds.ts b/packages/twenty-front/src/modules/sse-db-event/utils/dispatchObjectRecordEventsWithQueryIds.ts index bdcb4edb59..0281159f95 100644 --- a/packages/twenty-front/src/modules/sse-db-event/utils/dispatchObjectRecordEventsWithQueryIds.ts +++ b/packages/twenty-front/src/modules/sse-db-event/utils/dispatchObjectRecordEventsWithQueryIds.ts @@ -1,7 +1,7 @@ import { type ObjectRecordEventsByQueryId } from '@/sse-db-event/types/ObjectRecordEventsByQueryId'; import { getObjectRecordEventsForQueryEventName } from '@/sse-db-event/utils/getObjectRecordEventsForQueryEventName'; import { isDefined } from 'twenty-shared/utils'; -import { type EventWithQueryIds } from '~/generated/graphql'; +import { type EventWithQueryIds } from '~/generated-metadata/graphql'; export const dispatchObjectRecordEventsWithQueryIds = ( objectRecordEventsWithQueryIds: EventWithQueryIds[], diff --git a/packages/twenty-front/src/modules/sse-db-event/utils/getObjectRecordOperationUpdateInputs.ts b/packages/twenty-front/src/modules/sse-db-event/utils/getObjectRecordOperationUpdateInputs.ts index efb725d290..c01af55efb 100644 --- a/packages/twenty-front/src/modules/sse-db-event/utils/getObjectRecordOperationUpdateInputs.ts +++ b/packages/twenty-front/src/modules/sse-db-event/utils/getObjectRecordOperationUpdateInputs.ts @@ -1,6 +1,6 @@ import { type ObjectRecordOperationUpdateInput } from '@/object-record/types/ObjectRecordOperationUpdateInput'; import { isDefined } from 'twenty-shared/utils'; -import { type ObjectRecordEvent } from '~/generated/graphql'; +import { type ObjectRecordEvent } from '~/generated-metadata/graphql'; export const getObjectRecordOperationUpdateInputs = ( events: ObjectRecordEvent[], diff --git a/packages/twenty-front/src/modules/sse-db-event/utils/groupObjectRecordSseEventsByEventType.ts b/packages/twenty-front/src/modules/sse-db-event/utils/groupObjectRecordSseEventsByEventType.ts index 83f658bcd0..0e88e7d1d0 100644 --- a/packages/twenty-front/src/modules/sse-db-event/utils/groupObjectRecordSseEventsByEventType.ts +++ b/packages/twenty-front/src/modules/sse-db-event/utils/groupObjectRecordSseEventsByEventType.ts @@ -1,7 +1,7 @@ import { type DatabaseEventAction, type ObjectRecordEvent, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export const groupObjectRecordSseEventsByEventType = ({ objectRecordEvents, diff --git a/packages/twenty-front/src/modules/sse-db-event/utils/groupObjectRecordSseEventsByObjectMetadataItemNameSingular.ts b/packages/twenty-front/src/modules/sse-db-event/utils/groupObjectRecordSseEventsByObjectMetadataItemNameSingular.ts index 5af512957e..94869e6daa 100644 --- a/packages/twenty-front/src/modules/sse-db-event/utils/groupObjectRecordSseEventsByObjectMetadataItemNameSingular.ts +++ b/packages/twenty-front/src/modules/sse-db-event/utils/groupObjectRecordSseEventsByObjectMetadataItemNameSingular.ts @@ -1,4 +1,4 @@ -import { type ObjectRecordEvent } from '~/generated/graphql'; +import { type ObjectRecordEvent } from '~/generated-metadata/graphql'; export const groupObjectRecordSseEventsByObjectMetadataItemNameSingular = ({ objectRecordEvents, diff --git a/packages/twenty-front/src/modules/sse-db-event/utils/turnSseObjectRecordEventToObjectRecordOperationBrowserEvent.ts b/packages/twenty-front/src/modules/sse-db-event/utils/turnSseObjectRecordEventToObjectRecordOperationBrowserEvent.ts index 87a7d1a813..0c17615b70 100644 --- a/packages/twenty-front/src/modules/sse-db-event/utils/turnSseObjectRecordEventToObjectRecordOperationBrowserEvent.ts +++ b/packages/twenty-front/src/modules/sse-db-event/utils/turnSseObjectRecordEventToObjectRecordOperationBrowserEvent.ts @@ -6,7 +6,7 @@ import { assertUnreachable, isDefined } from 'twenty-shared/utils'; import { DatabaseEventAction, type ObjectRecordEvent, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export const turnSseObjectRecordEventsToObjectRecordOperationBrowserEvents = ({ objectMetadataItem, diff --git a/packages/twenty-front/src/modules/ui/input/components/internal/date/hooks/useUserDateFormat.ts b/packages/twenty-front/src/modules/ui/input/components/internal/date/hooks/useUserDateFormat.ts index 8d131498ea..13299bcd62 100644 --- a/packages/twenty-front/src/modules/ui/input/components/internal/date/hooks/useUserDateFormat.ts +++ b/packages/twenty-front/src/modules/ui/input/components/internal/date/hooks/useUserDateFormat.ts @@ -1,6 +1,6 @@ import { currentWorkspaceMemberState } from '@/auth/states/currentWorkspaceMemberState'; import { useRecoilValue } from 'recoil'; -import { WorkspaceMemberDateFormatEnum } from '~/generated/graphql'; +import { WorkspaceMemberDateFormatEnum } from '~/generated-metadata/graphql'; export const useUserDateFormat = () => { const currentWorkspaceMember = useRecoilValue(currentWorkspaceMemberState); diff --git a/packages/twenty-front/src/modules/ui/input/components/internal/date/hooks/useUserTimeFormat.ts b/packages/twenty-front/src/modules/ui/input/components/internal/date/hooks/useUserTimeFormat.ts index 3e51b384cf..52537db5e5 100644 --- a/packages/twenty-front/src/modules/ui/input/components/internal/date/hooks/useUserTimeFormat.ts +++ b/packages/twenty-front/src/modules/ui/input/components/internal/date/hooks/useUserTimeFormat.ts @@ -1,6 +1,6 @@ import { currentWorkspaceMemberState } from '@/auth/states/currentWorkspaceMemberState'; import { useRecoilValue } from 'recoil'; -import { WorkspaceMemberTimeFormatEnum } from '~/generated/graphql'; +import { WorkspaceMemberTimeFormatEnum } from '~/generated-metadata/graphql'; export const useUserTimeFormat = () => { const currentWorkspaceMember = useRecoilValue(currentWorkspaceMemberState); diff --git a/packages/twenty-front/src/modules/ui/layout/contexts/LayoutRenderingContext.tsx b/packages/twenty-front/src/modules/ui/layout/contexts/LayoutRenderingContext.tsx index 28bd4965a1..88ad873c24 100644 --- a/packages/twenty-front/src/modules/ui/layout/contexts/LayoutRenderingContext.tsx +++ b/packages/twenty-front/src/modules/ui/layout/contexts/LayoutRenderingContext.tsx @@ -1,4 +1,4 @@ -import { type PageLayoutType } from '~/generated/graphql'; +import { type PageLayoutType } from '~/generated-metadata/graphql'; import { createRequiredContext } from '~/utils/createRequiredContext'; import { type TargetRecordIdentifier } from './TargetRecordIdentifier'; diff --git a/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/MultiWorkspaceDropdown/internal/components/AvailableWorkspaceItem.tsx b/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/MultiWorkspaceDropdown/internal/components/AvailableWorkspaceItem.tsx index 38ee905ac7..679262e5c7 100644 --- a/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/MultiWorkspaceDropdown/internal/components/AvailableWorkspaceItem.tsx +++ b/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/MultiWorkspaceDropdown/internal/components/AvailableWorkspaceItem.tsx @@ -1,7 +1,7 @@ import { Avatar } from 'twenty-ui/display'; import { MenuItemSelectAvatar, UndecoratedLink } from 'twenty-ui/navigation'; import { DEFAULT_WORKSPACE_LOGO } from '@/ui/navigation/navigation-drawer/constants/DefaultWorkspaceLogo'; -import { type AvailableWorkspace } from '~/generated/graphql'; +import { type AvailableWorkspace } from '~/generated-metadata/graphql'; import { useRedirectToWorkspaceDomain } from '@/domain-manager/hooks/useRedirectToWorkspaceDomain'; import { getWorkspaceUrl } from '~/utils/getWorkspaceUrl'; import { getAvailableWorkspacePathAndSearchParams } from '@/auth/utils/availableWorkspacesUtils'; diff --git a/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/hooks/useFilteredAvailableWorkspaces.ts b/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/hooks/useFilteredAvailableWorkspaces.ts index d32dbc4490..c24ed058a8 100644 --- a/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/hooks/useFilteredAvailableWorkspaces.ts +++ b/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/hooks/useFilteredAvailableWorkspaces.ts @@ -1,6 +1,6 @@ import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState'; import { useRecoilValue } from 'recoil'; -import { type AvailableWorkspace } from '~/generated/graphql'; +import { type AvailableWorkspace } from '~/generated-metadata/graphql'; export const useFilteredAvailableWorkspaces = () => { const currentWorkspace = useRecoilValue(currentWorkspaceState); diff --git a/packages/twenty-front/src/modules/views/editable-chip/components/EditableSortChip.tsx b/packages/twenty-front/src/modules/views/editable-chip/components/EditableSortChip.tsx index 3b36343e14..2f5f8d5c77 100644 --- a/packages/twenty-front/src/modules/views/editable-chip/components/EditableSortChip.tsx +++ b/packages/twenty-front/src/modules/views/editable-chip/components/EditableSortChip.tsx @@ -4,7 +4,7 @@ import { useUpsertRecordSort } from '@/object-record/record-sort/hooks/useUpsert import { type RecordSort } from '@/object-record/record-sort/types/RecordSort'; import { SortOrFilterChip } from '@/views/components/SortOrFilterChip'; import { IconArrowDown, IconArrowUp } from 'twenty-ui/display'; -import { ViewSortDirection } from '~/generated/graphql'; +import { ViewSortDirection } from '~/generated-metadata/graphql'; type EditableSortChipProps = { recordSort: RecordSort; diff --git a/packages/twenty-front/src/modules/views/hooks/__tests__/useApplyCurrentViewFilterGroupsToCurrentRecordFilterGroups.test.tsx b/packages/twenty-front/src/modules/views/hooks/__tests__/useApplyCurrentViewFilterGroupsToCurrentRecordFilterGroups.test.tsx index 02b54d5dd0..723a399119 100644 --- a/packages/twenty-front/src/modules/views/hooks/__tests__/useApplyCurrentViewFilterGroupsToCurrentRecordFilterGroups.test.tsx +++ b/packages/twenty-front/src/modules/views/hooks/__tests__/useApplyCurrentViewFilterGroupsToCurrentRecordFilterGroups.test.tsx @@ -13,7 +13,7 @@ import { ViewFilterGroupLogicalOperator } from '@/views/types/ViewFilterGroupLog import { mapViewFilterGroupLogicalOperatorToRecordFilterGroupLogicalOperator } from '@/views/utils/mapViewFilterGroupLogicalOperatorToRecordFilterGroupLogicalOperator'; import { act } from 'react'; import { isDefined } from 'twenty-shared/utils'; -import { type CoreViewFilterGroup } from '~/generated/graphql'; +import { type CoreViewFilterGroup } from '~/generated-metadata/graphql'; import { getJestMetadataAndApolloMocksAndActionMenuWrapper } from '~/testing/jest/getJestMetadataAndApolloMocksAndActionMenuWrapper'; import { mockedCoreViewsData, diff --git a/packages/twenty-front/src/modules/views/hooks/__tests__/useApplyCurrentViewFiltersToCurrentRecordFilters.test.tsx b/packages/twenty-front/src/modules/views/hooks/__tests__/useApplyCurrentViewFiltersToCurrentRecordFilters.test.tsx index b9188b1f4d..7657ed8022 100644 --- a/packages/twenty-front/src/modules/views/hooks/__tests__/useApplyCurrentViewFiltersToCurrentRecordFilters.test.tsx +++ b/packages/twenty-front/src/modules/views/hooks/__tests__/useApplyCurrentViewFiltersToCurrentRecordFilters.test.tsx @@ -14,7 +14,7 @@ import { getFilterTypeFromFieldType, isDefined } from 'twenty-shared/utils'; import { type CoreViewFilter, ViewFilterOperand as CoreViewFilterOperand, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; import { getJestMetadataAndApolloMocksAndActionMenuWrapper } from '~/testing/jest/getJestMetadataAndApolloMocksAndActionMenuWrapper'; import { mockedCoreViewsData, diff --git a/packages/twenty-front/src/modules/views/hooks/__tests__/useApplyCurrentViewSortsToCurrentRecordSorts.test.tsx b/packages/twenty-front/src/modules/views/hooks/__tests__/useApplyCurrentViewSortsToCurrentRecordSorts.test.tsx index 1824540c08..7fdde540dc 100644 --- a/packages/twenty-front/src/modules/views/hooks/__tests__/useApplyCurrentViewSortsToCurrentRecordSorts.test.tsx +++ b/packages/twenty-front/src/modules/views/hooks/__tests__/useApplyCurrentViewSortsToCurrentRecordSorts.test.tsx @@ -11,7 +11,7 @@ import { type CoreViewSortEssential } from '@/views/types/CoreViewSortEssential' import { type CoreViewWithRelations } from '@/views/types/CoreViewWithRelations'; import { type View } from '@/views/types/View'; import { isDefined } from 'twenty-shared/utils'; -import { ViewSortDirection } from '~/generated/graphql'; +import { ViewSortDirection } from '~/generated-metadata/graphql'; import { getJestMetadataAndApolloMocksAndActionMenuWrapper } from '~/testing/jest/getJestMetadataAndApolloMocksAndActionMenuWrapper'; import { mockedCoreViewsData, diff --git a/packages/twenty-front/src/modules/views/hooks/__tests__/useApplyViewSortsToCurrentRecordSorts.test.tsx b/packages/twenty-front/src/modules/views/hooks/__tests__/useApplyViewSortsToCurrentRecordSorts.test.tsx index 9400eb27ba..ef3bfe416d 100644 --- a/packages/twenty-front/src/modules/views/hooks/__tests__/useApplyViewSortsToCurrentRecordSorts.test.tsx +++ b/packages/twenty-front/src/modules/views/hooks/__tests__/useApplyViewSortsToCurrentRecordSorts.test.tsx @@ -7,7 +7,7 @@ import { generatedMockObjectMetadataItems } from '~/testing/utils/generatedMockO import { type CoreViewSortEssential } from '@/views/types/CoreViewSortEssential'; import { isDefined } from 'twenty-shared/utils'; -import { ViewSortDirection } from '~/generated/graphql'; +import { ViewSortDirection } from '~/generated-metadata/graphql'; import { getJestMetadataAndApolloMocksAndActionMenuWrapper } from '~/testing/jest/getJestMetadataAndApolloMocksAndActionMenuWrapper'; import { useApplyViewSortsToCurrentRecordSorts } from '@/views/hooks/useApplyViewSortsToCurrentRecordSorts'; diff --git a/packages/twenty-front/src/modules/views/hooks/internal/usePerformViewFilterGroupAPIPersist.ts b/packages/twenty-front/src/modules/views/hooks/internal/usePerformViewFilterGroupAPIPersist.ts index 2269d68710..2d728d01f7 100644 --- a/packages/twenty-front/src/modules/views/hooks/internal/usePerformViewFilterGroupAPIPersist.ts +++ b/packages/twenty-front/src/modules/views/hooks/internal/usePerformViewFilterGroupAPIPersist.ts @@ -7,7 +7,7 @@ import { type GraphQLView } from '@/views/types/GraphQLView'; import { type ViewFilterGroup } from '@/views/types/ViewFilterGroup'; import { useApolloClient } from '@apollo/client'; import { isDefined } from 'twenty-shared/utils'; -import { type CoreViewFilterGroup } from '~/generated/graphql'; +import { type CoreViewFilterGroup } from '~/generated-metadata/graphql'; export const usePerformViewFilterGroupAPIPersist = () => { const apolloClient = useApolloClient(); diff --git a/packages/twenty-front/src/modules/views/hooks/internal/usePerformViewSortAPIPersist.ts b/packages/twenty-front/src/modules/views/hooks/internal/usePerformViewSortAPIPersist.ts index ae9fd481ee..257685f40e 100644 --- a/packages/twenty-front/src/modules/views/hooks/internal/usePerformViewSortAPIPersist.ts +++ b/packages/twenty-front/src/modules/views/hooks/internal/usePerformViewSortAPIPersist.ts @@ -8,7 +8,7 @@ import { type CoreViewSortEssential } from '@/views/types/CoreViewSortEssential' import { type GraphQLView } from '@/views/types/GraphQLView'; import { useApolloClient } from '@apollo/client'; import { isDefined } from 'twenty-shared/utils'; -import { type CoreViewSort } from '~/generated/graphql'; +import { type CoreViewSort } from '~/generated-metadata/graphql'; export const usePerformViewSortAPIPersist = () => { const apolloClient = useApolloClient(); diff --git a/packages/twenty-front/src/modules/views/hooks/internal/useSortsFromQueryParams.ts b/packages/twenty-front/src/modules/views/hooks/internal/useSortsFromQueryParams.ts index 98ef86fabb..144d875f24 100644 --- a/packages/twenty-front/src/modules/views/hooks/internal/useSortsFromQueryParams.ts +++ b/packages/twenty-front/src/modules/views/hooks/internal/useSortsFromQueryParams.ts @@ -7,7 +7,7 @@ import { type RecordSort } from '@/object-record/record-sort/types/RecordSort'; import { sortUrlQueryParamsSchema } from '@/views/schemas/sortUrlQueryParamsSchema'; import { useParams, useSearchParams } from 'react-router-dom'; import { isDefined } from 'twenty-shared/utils'; -import { type ViewSortDirection } from '~/generated/graphql'; +import { type ViewSortDirection } from '~/generated-metadata/graphql'; export const useSortsFromQueryParams = () => { const [searchParams] = useSearchParams(); diff --git a/packages/twenty-front/src/modules/views/hooks/useCanPersistViewChanges.ts b/packages/twenty-front/src/modules/views/hooks/useCanPersistViewChanges.ts index b734fb3d73..50df6c77cb 100644 --- a/packages/twenty-front/src/modules/views/hooks/useCanPersistViewChanges.ts +++ b/packages/twenty-front/src/modules/views/hooks/useCanPersistViewChanges.ts @@ -1,7 +1,9 @@ import { useHasPermissionFlag } from '@/settings/roles/hooks/useHasPermissionFlag'; import { useGetCurrentViewOnly } from '@/views/hooks/useGetCurrentViewOnly'; -import { ViewVisibility } from '~/generated-metadata/graphql'; -import { PermissionFlagType } from '~/generated/graphql'; +import { + ViewVisibility, + PermissionFlagType, +} from '~/generated-metadata/graphql'; export const useCanPersistViewChanges = () => { const { currentView } = useGetCurrentViewOnly(); diff --git a/packages/twenty-front/src/modules/views/hooks/useMapViewFiltersToFilters.ts b/packages/twenty-front/src/modules/views/hooks/useMapViewFiltersToFilters.ts index a396a2ac77..05d4c21090 100644 --- a/packages/twenty-front/src/modules/views/hooks/useMapViewFiltersToFilters.ts +++ b/packages/twenty-front/src/modules/views/hooks/useMapViewFiltersToFilters.ts @@ -1,5 +1,5 @@ import { useRecordIndexContextOrThrow } from '@/object-record/record-index/contexts/RecordIndexContext'; -import { type CoreViewFilter } from '~/generated/graphql'; +import { type CoreViewFilter } from '~/generated-metadata/graphql'; import { type ViewFilter } from '@/views/types/ViewFilter'; import { getFilterableFields } from '@/views/utils/getFilterableFields'; import { mapViewFiltersToFilters } from '@/views/utils/mapViewFiltersToFilters'; diff --git a/packages/twenty-front/src/modules/views/hooks/useUpdateViewAggregate.ts b/packages/twenty-front/src/modules/views/hooks/useUpdateViewAggregate.ts index 2eaf2fe90a..8a21b27bbe 100644 --- a/packages/twenty-front/src/modules/views/hooks/useUpdateViewAggregate.ts +++ b/packages/twenty-front/src/modules/views/hooks/useUpdateViewAggregate.ts @@ -13,7 +13,7 @@ import { isDefined, upsertIntoArrayOfObjectsComparingId, } from 'twenty-shared/utils'; -import { type CoreView } from '~/generated/graphql'; +import { type CoreView } from '~/generated-metadata/graphql'; export const useUpdateViewAggregate = () => { const { canPersistChanges } = useCanPersistViewChanges(); diff --git a/packages/twenty-front/src/modules/views/hooks/useViewsSideEffectsOnViewGroups.ts b/packages/twenty-front/src/modules/views/hooks/useViewsSideEffectsOnViewGroups.ts index db0ae3b00b..f522a5ccc6 100644 --- a/packages/twenty-front/src/modules/views/hooks/useViewsSideEffectsOnViewGroups.ts +++ b/packages/twenty-front/src/modules/views/hooks/useViewsSideEffectsOnViewGroups.ts @@ -4,7 +4,7 @@ import { type ViewGroup } from '@/views/types/ViewGroup'; import { useRecoilValue } from 'recoil'; import { isDefined } from 'twenty-shared/utils'; import { v4 } from 'uuid'; -import { type CoreViewGroup } from '~/generated/graphql'; +import { type CoreViewGroup } from '~/generated-metadata/graphql'; const useViewsSideEffectsOnViewGroups = () => { const { triggerViewGroupOptimisticEffect } = diff --git a/packages/twenty-front/src/modules/views/optimistic-effects/hooks/useTriggerViewFieldOptimisticEffect.ts b/packages/twenty-front/src/modules/views/optimistic-effects/hooks/useTriggerViewFieldOptimisticEffect.ts index 2e0fdc3067..7c312bcabd 100644 --- a/packages/twenty-front/src/modules/views/optimistic-effects/hooks/useTriggerViewFieldOptimisticEffect.ts +++ b/packages/twenty-front/src/modules/views/optimistic-effects/hooks/useTriggerViewFieldOptimisticEffect.ts @@ -4,7 +4,7 @@ import { type CoreViewWithRelations } from '@/views/types/CoreViewWithRelations' import { useApolloClient } from '@apollo/client'; import { useRecoilCallback } from 'recoil'; import { isDefined } from 'twenty-shared/utils'; -import { type CoreViewField } from '~/generated/graphql'; +import { type CoreViewField } from '~/generated-metadata/graphql'; import { isDeeplyEqual } from '~/utils/isDeeplyEqual'; export const useTriggerViewFieldOptimisticEffect = () => { diff --git a/packages/twenty-front/src/modules/views/optimistic-effects/hooks/useTriggerViewFilterOptimisticEffect.ts b/packages/twenty-front/src/modules/views/optimistic-effects/hooks/useTriggerViewFilterOptimisticEffect.ts index 0f535a6d73..c2ff4ee303 100644 --- a/packages/twenty-front/src/modules/views/optimistic-effects/hooks/useTriggerViewFilterOptimisticEffect.ts +++ b/packages/twenty-front/src/modules/views/optimistic-effects/hooks/useTriggerViewFilterOptimisticEffect.ts @@ -4,7 +4,7 @@ import { type CoreViewWithRelations } from '@/views/types/CoreViewWithRelations' import { useApolloClient } from '@apollo/client'; import { useRecoilCallback } from 'recoil'; import { isDefined } from 'twenty-shared/utils'; -import { type CoreViewFilter } from '~/generated/graphql'; +import { type CoreViewFilter } from '~/generated-metadata/graphql'; import { isDeeplyEqual } from '~/utils/isDeeplyEqual'; type UpdatedDeletedCoreViewFilter = { createdViewFilters?: Omit[]; diff --git a/packages/twenty-front/src/modules/views/optimistic-effects/hooks/useTriggerViewGroupOptimisticEffect.ts b/packages/twenty-front/src/modules/views/optimistic-effects/hooks/useTriggerViewGroupOptimisticEffect.ts index 5d3f848c98..09ded1bdec 100644 --- a/packages/twenty-front/src/modules/views/optimistic-effects/hooks/useTriggerViewGroupOptimisticEffect.ts +++ b/packages/twenty-front/src/modules/views/optimistic-effects/hooks/useTriggerViewGroupOptimisticEffect.ts @@ -4,7 +4,7 @@ import { type CoreViewWithRelations } from '@/views/types/CoreViewWithRelations' import { useApolloClient } from '@apollo/client'; import { useRecoilCallback } from 'recoil'; import { isDefined } from 'twenty-shared/utils'; -import { type CoreViewGroup } from '~/generated/graphql'; +import { type CoreViewGroup } from '~/generated-metadata/graphql'; import { isDeeplyEqual } from '~/utils/isDeeplyEqual'; type UpdatedDeletedCoreViewGroup = { diff --git a/packages/twenty-front/src/modules/views/optimistic-effects/hooks/useTriggerViewSortOptimisticEffect.ts b/packages/twenty-front/src/modules/views/optimistic-effects/hooks/useTriggerViewSortOptimisticEffect.ts index 72772f9410..e371e8f75a 100644 --- a/packages/twenty-front/src/modules/views/optimistic-effects/hooks/useTriggerViewSortOptimisticEffect.ts +++ b/packages/twenty-front/src/modules/views/optimistic-effects/hooks/useTriggerViewSortOptimisticEffect.ts @@ -4,7 +4,7 @@ import { type CoreViewWithRelations } from '@/views/types/CoreViewWithRelations' import { useApolloClient } from '@apollo/client'; import { useRecoilCallback } from 'recoil'; import { isDefined } from 'twenty-shared/utils'; -import { type CoreViewSort } from '~/generated/graphql'; +import { type CoreViewSort } from '~/generated-metadata/graphql'; import { isDeeplyEqual } from '~/utils/isDeeplyEqual'; export const useTriggerViewSortOptimisticEffect = () => { diff --git a/packages/twenty-front/src/modules/views/schemas/sortUrlQueryParamsSchema.ts b/packages/twenty-front/src/modules/views/schemas/sortUrlQueryParamsSchema.ts index 6f445c460d..2baf4b036b 100644 --- a/packages/twenty-front/src/modules/views/schemas/sortUrlQueryParamsSchema.ts +++ b/packages/twenty-front/src/modules/views/schemas/sortUrlQueryParamsSchema.ts @@ -1,4 +1,4 @@ -import { ViewSortDirection } from '~/generated/graphql'; +import { ViewSortDirection } from '~/generated-metadata/graphql'; import z from 'zod'; export const sortUrlQueryParamsSchema = z.object({ diff --git a/packages/twenty-front/src/modules/views/types/CoreViewSortEssential.ts b/packages/twenty-front/src/modules/views/types/CoreViewSortEssential.ts index 10895317ec..4c8cc81e03 100644 --- a/packages/twenty-front/src/modules/views/types/CoreViewSortEssential.ts +++ b/packages/twenty-front/src/modules/views/types/CoreViewSortEssential.ts @@ -1,4 +1,4 @@ -import { type CoreViewSort } from '~/generated/graphql'; +import { type CoreViewSort } from '~/generated-metadata/graphql'; export type CoreViewSortEssential = Pick< CoreViewSort, diff --git a/packages/twenty-front/src/modules/views/types/GraphQLView.ts b/packages/twenty-front/src/modules/views/types/GraphQLView.ts index 2cb8c4491c..7212731d89 100644 --- a/packages/twenty-front/src/modules/views/types/GraphQLView.ts +++ b/packages/twenty-front/src/modules/views/types/GraphQLView.ts @@ -7,9 +7,10 @@ import { type ViewGroup } from '@/views/types/ViewGroup'; import { type ViewKey } from '@/views/types/ViewKey'; import { type ViewOpenRecordInType } from '@/views/types/ViewOpenRecordInType'; import { type ViewType } from '@/views/types/ViewType'; -import { type ViewVisibility } from '~/generated-metadata/graphql'; -import { type ViewCalendarLayout } from '~/generated/graphql'; - +import { + type ViewVisibility, + type ViewCalendarLayout, +} from '~/generated-metadata/graphql'; export type GraphQLView = { id: string; name: string; diff --git a/packages/twenty-front/src/modules/views/types/View.ts b/packages/twenty-front/src/modules/views/types/View.ts index b7f2bdf6b1..f8f2e617ce 100644 --- a/packages/twenty-front/src/modules/views/types/View.ts +++ b/packages/twenty-front/src/modules/views/types/View.ts @@ -7,8 +7,10 @@ import { type ViewGroup } from '@/views/types/ViewGroup'; import { type ViewKey } from '@/views/types/ViewKey'; import { type ViewOpenRecordInType } from '@/views/types/ViewOpenRecordInType'; import { type ViewType } from '@/views/types/ViewType'; -import { type ViewVisibility } from '~/generated-metadata/graphql'; -import { type ViewCalendarLayout } from '~/generated/graphql'; +import { + type ViewVisibility, + type ViewCalendarLayout, +} from '~/generated-metadata/graphql'; export type View = { id: string; diff --git a/packages/twenty-front/src/modules/views/utils/__tests__/areViewSortsEqual.test.ts b/packages/twenty-front/src/modules/views/utils/__tests__/areViewSortsEqual.test.ts index 7be6408575..225f0175e0 100644 --- a/packages/twenty-front/src/modules/views/utils/__tests__/areViewSortsEqual.test.ts +++ b/packages/twenty-front/src/modules/views/utils/__tests__/areViewSortsEqual.test.ts @@ -1,5 +1,8 @@ import { areViewSortsEqual } from '@/views/utils/areViewSortsEqual'; -import { type CoreViewSort, ViewSortDirection } from '~/generated/graphql'; +import { + type CoreViewSort, + ViewSortDirection, +} from '~/generated-metadata/graphql'; describe('areViewSortsEqual', () => { const baseSort: CoreViewSort = { diff --git a/packages/twenty-front/src/modules/views/utils/__tests__/getViewSortsToCreate.test.ts b/packages/twenty-front/src/modules/views/utils/__tests__/getViewSortsToCreate.test.ts index 12ddb14a67..4199a8b9f9 100644 --- a/packages/twenty-front/src/modules/views/utils/__tests__/getViewSortsToCreate.test.ts +++ b/packages/twenty-front/src/modules/views/utils/__tests__/getViewSortsToCreate.test.ts @@ -1,5 +1,5 @@ import { type CoreViewSortEssential } from '@/views/types/CoreViewSortEssential'; -import { ViewSortDirection } from '~/generated/graphql'; +import { ViewSortDirection } from '~/generated-metadata/graphql'; import { getViewSortsToCreate } from '@/views/utils/getViewSortsToCreate'; describe('getViewSortsToCreate', () => { diff --git a/packages/twenty-front/src/modules/views/utils/__tests__/getViewSortsToDelete.test.ts b/packages/twenty-front/src/modules/views/utils/__tests__/getViewSortsToDelete.test.ts index a790b64b02..7d6c4315b1 100644 --- a/packages/twenty-front/src/modules/views/utils/__tests__/getViewSortsToDelete.test.ts +++ b/packages/twenty-front/src/modules/views/utils/__tests__/getViewSortsToDelete.test.ts @@ -1,5 +1,5 @@ import { type CoreViewSortEssential } from '@/views/types/CoreViewSortEssential'; -import { ViewSortDirection } from '~/generated/graphql'; +import { ViewSortDirection } from '~/generated-metadata/graphql'; import { getViewSortsToDelete } from '@/views/utils/getViewSortsToDelete'; describe('getViewSortsToDelete', () => { diff --git a/packages/twenty-front/src/modules/views/utils/__tests__/getViewSortsToUpdate.test.ts b/packages/twenty-front/src/modules/views/utils/__tests__/getViewSortsToUpdate.test.ts index e53dcf4f7a..c863a37bef 100644 --- a/packages/twenty-front/src/modules/views/utils/__tests__/getViewSortsToUpdate.test.ts +++ b/packages/twenty-front/src/modules/views/utils/__tests__/getViewSortsToUpdate.test.ts @@ -1,5 +1,5 @@ import { type CoreViewSortEssential } from '@/views/types/CoreViewSortEssential'; -import { ViewSortDirection } from '~/generated/graphql'; +import { ViewSortDirection } from '~/generated-metadata/graphql'; import { getViewSortsToUpdate } from '@/views/utils/getViewSortsToUpdate'; describe('getViewSortsToUpdate', () => { diff --git a/packages/twenty-front/src/modules/views/utils/areViewSortsEqual.ts b/packages/twenty-front/src/modules/views/utils/areViewSortsEqual.ts index 2924680cd9..742e9561cf 100644 --- a/packages/twenty-front/src/modules/views/utils/areViewSortsEqual.ts +++ b/packages/twenty-front/src/modules/views/utils/areViewSortsEqual.ts @@ -1,4 +1,4 @@ -import { type CoreViewSort } from '~/generated/graphql'; +import { type CoreViewSort } from '~/generated-metadata/graphql'; import { compareStrictlyExceptForNullAndUndefined } from '~/utils/compareStrictlyExceptForNullAndUndefined'; export const areViewSortsEqual = ( diff --git a/packages/twenty-front/src/modules/views/utils/convertCoreViewFieldToViewField.ts b/packages/twenty-front/src/modules/views/utils/convertCoreViewFieldToViewField.ts index 4c3b1fe552..408dc7de51 100644 --- a/packages/twenty-front/src/modules/views/utils/convertCoreViewFieldToViewField.ts +++ b/packages/twenty-front/src/modules/views/utils/convertCoreViewFieldToViewField.ts @@ -1,7 +1,7 @@ import { type FieldMetadata } from '@/object-record/record-field/ui/types/FieldMetadata'; import { type ColumnDefinition } from '@/object-record/record-table/types/ColumnDefinition'; import { type ViewField } from '@/views/types/ViewField'; -import { type CoreViewField } from '~/generated/graphql'; +import { type CoreViewField } from '~/generated-metadata/graphql'; export const convertCoreViewFieldToViewField = ( coreViewField: Pick< diff --git a/packages/twenty-front/src/modules/views/utils/convertCoreViewFilterGroupToViewFilterGroup.ts b/packages/twenty-front/src/modules/views/utils/convertCoreViewFilterGroupToViewFilterGroup.ts index ce9d9fe838..57a46fc989 100644 --- a/packages/twenty-front/src/modules/views/utils/convertCoreViewFilterGroupToViewFilterGroup.ts +++ b/packages/twenty-front/src/modules/views/utils/convertCoreViewFilterGroupToViewFilterGroup.ts @@ -1,6 +1,6 @@ import { type ViewFilterGroup } from '@/views/types/ViewFilterGroup'; import { ViewFilterGroupLogicalOperator } from '@/views/types/ViewFilterGroupLogicalOperator'; -import { type CoreViewFilterGroup } from '~/generated/graphql'; +import { type CoreViewFilterGroup } from '~/generated-metadata/graphql'; export const convertCoreViewFilterGroupToViewFilterGroup = ( coreViewFilterGroup: Pick< diff --git a/packages/twenty-front/src/modules/views/utils/convertCoreViewFilterToViewFilter.ts b/packages/twenty-front/src/modules/views/utils/convertCoreViewFilterToViewFilter.ts index edac628931..9d6927762a 100644 --- a/packages/twenty-front/src/modules/views/utils/convertCoreViewFilterToViewFilter.ts +++ b/packages/twenty-front/src/modules/views/utils/convertCoreViewFilterToViewFilter.ts @@ -1,7 +1,7 @@ import { type CompositeFieldSubFieldName } from '@/settings/data-model/types/CompositeFieldSubFieldName'; import { type ViewFilter } from '@/views/types/ViewFilter'; import { convertViewFilterValueToString } from 'twenty-shared/utils'; -import { type CoreViewFilter } from '~/generated/graphql'; +import { type CoreViewFilter } from '~/generated-metadata/graphql'; export const convertCoreViewFilterToViewFilter = ( coreViewFilter: Pick< @@ -22,7 +22,7 @@ export const convertCoreViewFilterToViewFilter = ( operand: coreViewFilter.operand, value: convertViewFilterValueToString(coreViewFilter.value), displayValue: convertViewFilterValueToString(coreViewFilter.value), - viewFilterGroupId: coreViewFilter.viewFilterGroupId, + viewFilterGroupId: coreViewFilter.viewFilterGroupId ?? undefined, positionInViewFilterGroup: coreViewFilter.positionInViewFilterGroup, subFieldName: coreViewFilter.subFieldName as CompositeFieldSubFieldName, }; diff --git a/packages/twenty-front/src/modules/views/utils/convertCoreViewGroupToViewGroup.ts b/packages/twenty-front/src/modules/views/utils/convertCoreViewGroupToViewGroup.ts index 210a8536b1..1d9523216f 100644 --- a/packages/twenty-front/src/modules/views/utils/convertCoreViewGroupToViewGroup.ts +++ b/packages/twenty-front/src/modules/views/utils/convertCoreViewGroupToViewGroup.ts @@ -1,5 +1,5 @@ import { type ViewGroup } from '@/views/types/ViewGroup'; -import { type CoreViewGroup } from '~/generated/graphql'; +import { type CoreViewGroup } from '~/generated-metadata/graphql'; export const convertCoreViewGroupToViewGroup = ( coreViewGroup: Pick< diff --git a/packages/twenty-front/src/modules/views/utils/convertCoreViewOpenRecordInToViewOpenRecordIn.ts b/packages/twenty-front/src/modules/views/utils/convertCoreViewOpenRecordInToViewOpenRecordIn.ts index c5e8d198de..38ec6b89fe 100644 --- a/packages/twenty-front/src/modules/views/utils/convertCoreViewOpenRecordInToViewOpenRecordIn.ts +++ b/packages/twenty-front/src/modules/views/utils/convertCoreViewOpenRecordInToViewOpenRecordIn.ts @@ -1,5 +1,5 @@ import { ViewOpenRecordInType } from '@/views/types/ViewOpenRecordInType'; -import { ViewOpenRecordIn as CoreViewOpenRecordIn } from '~/generated/graphql'; +import { ViewOpenRecordIn as CoreViewOpenRecordIn } from '~/generated-metadata/graphql'; export const convertCoreViewOpenRecordInToViewOpenRecordIn = ( openIn: CoreViewOpenRecordIn, diff --git a/packages/twenty-front/src/modules/views/utils/convertCoreViewTypeToViewType.ts b/packages/twenty-front/src/modules/views/utils/convertCoreViewTypeToViewType.ts index bb32be8f14..0349ca5db4 100644 --- a/packages/twenty-front/src/modules/views/utils/convertCoreViewTypeToViewType.ts +++ b/packages/twenty-front/src/modules/views/utils/convertCoreViewTypeToViewType.ts @@ -1,5 +1,5 @@ import { ViewType } from '@/views/types/ViewType'; -import { ViewType as CoreViewType } from '~/generated/graphql'; +import { ViewType as CoreViewType } from '~/generated-metadata/graphql'; export const convertCoreViewTypeToViewType = ( coreViewType: CoreViewType, diff --git a/packages/twenty-front/src/modules/views/utils/getViewSortsToCreate.ts b/packages/twenty-front/src/modules/views/utils/getViewSortsToCreate.ts index cf405d0fce..e39c0f241d 100644 --- a/packages/twenty-front/src/modules/views/utils/getViewSortsToCreate.ts +++ b/packages/twenty-front/src/modules/views/utils/getViewSortsToCreate.ts @@ -1,6 +1,6 @@ import { type CoreViewSortEssential } from '@/views/types/CoreViewSortEssential'; import { isDefined } from 'twenty-shared/utils'; -import { type CoreViewSort } from '~/generated/graphql'; +import { type CoreViewSort } from '~/generated-metadata/graphql'; export const getViewSortsToCreate = ( currentViewSorts: Pick[], diff --git a/packages/twenty-front/src/modules/views/utils/mapRecordSortToViewSort.ts b/packages/twenty-front/src/modules/views/utils/mapRecordSortToViewSort.ts index dc11287873..32d37db27e 100644 --- a/packages/twenty-front/src/modules/views/utils/mapRecordSortToViewSort.ts +++ b/packages/twenty-front/src/modules/views/utils/mapRecordSortToViewSort.ts @@ -1,5 +1,5 @@ import { type RecordSort } from '@/object-record/record-sort/types/RecordSort'; -import { type CoreViewSort } from '~/generated/graphql'; +import { type CoreViewSort } from '~/generated-metadata/graphql'; export const mapRecordSortToViewSort = ( recordSort: RecordSort, diff --git a/packages/twenty-front/src/modules/views/utils/mapViewFiltersToFilters.ts b/packages/twenty-front/src/modules/views/utils/mapViewFiltersToFilters.ts index 41ed4bd7b2..38a34d2843 100644 --- a/packages/twenty-front/src/modules/views/utils/mapViewFiltersToFilters.ts +++ b/packages/twenty-front/src/modules/views/utils/mapViewFiltersToFilters.ts @@ -5,7 +5,7 @@ import { type FieldMetadataItem } from '@/object-metadata/types/FieldMetadataIte import { isSystemSearchVectorField } from '@/object-record/utils/isSystemSearchVectorField'; import { type CompositeFieldSubFieldName } from '@/settings/data-model/types/CompositeFieldSubFieldName'; import { getFilterTypeFromFieldType, isDefined } from 'twenty-shared/utils'; -import { type CoreViewFilter } from '~/generated/graphql'; +import { type CoreViewFilter } from '~/generated-metadata/graphql'; import { type ViewFilter } from '@/views/types/ViewFilter'; export const mapViewFiltersToFilters = ( @@ -43,7 +43,7 @@ export const mapViewFiltersToFilters = ( ? viewFilter.displayValue : viewFilter.value, operand, - recordFilterGroupId: viewFilter.viewFilterGroupId, + recordFilterGroupId: viewFilter.viewFilterGroupId ?? undefined, positionInRecordFilterGroup: viewFilter.positionInViewFilterGroup, label, type: filterType, diff --git a/packages/twenty-front/src/modules/views/view-picker/components/ViewPickerContentEffect.tsx b/packages/twenty-front/src/modules/views/view-picker/components/ViewPickerContentEffect.tsx index 77fcab318e..cc4baff298 100644 --- a/packages/twenty-front/src/modules/views/view-picker/components/ViewPickerContentEffect.tsx +++ b/packages/twenty-front/src/modules/views/view-picker/components/ViewPickerContentEffect.tsx @@ -21,8 +21,10 @@ import { viewPickerTypeComponentState } from '@/views/view-picker/states/viewPic import { viewPickerVisibilityComponentState } from '@/views/view-picker/states/viewPickerVisibilityComponentState'; import { useRecoilValue } from 'recoil'; import { isDefined } from 'twenty-shared/utils'; -import { ViewVisibility } from '~/generated-metadata/graphql'; -import { PermissionFlagType } from '~/generated/graphql'; +import { + ViewVisibility, + PermissionFlagType, +} from '~/generated-metadata/graphql'; export const ViewPickerContentEffect = () => { const setViewPickerSelectedIcon = useSetRecoilComponentState( diff --git a/packages/twenty-front/src/modules/views/view-picker/components/ViewPickerOptionDropdown.tsx b/packages/twenty-front/src/modules/views/view-picker/components/ViewPickerOptionDropdown.tsx index 0b6c532739..c0bae306f1 100644 --- a/packages/twenty-front/src/modules/views/view-picker/components/ViewPickerOptionDropdown.tsx +++ b/packages/twenty-front/src/modules/views/view-picker/components/ViewPickerOptionDropdown.tsx @@ -22,8 +22,11 @@ import { useIcons, } from 'twenty-ui/display'; import { MenuItem } from 'twenty-ui/navigation'; -import { FeatureFlagKey, ViewVisibility } from '~/generated-metadata/graphql'; -import { PermissionFlagType } from '~/generated/graphql'; +import { + FeatureFlagKey, + ViewVisibility, + PermissionFlagType, +} from '~/generated-metadata/graphql'; type ViewPickerOptionDropdownProps = { isIndexView: boolean; diff --git a/packages/twenty-front/src/modules/workflow/workflow-diagram/components/WorkflowCard.tsx b/packages/twenty-front/src/modules/workflow/workflow-diagram/components/WorkflowCard.tsx index 32ff76b5d9..475f95cffb 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-diagram/components/WorkflowCard.tsx +++ b/packages/twenty-front/src/modules/workflow/workflow-diagram/components/WorkflowCard.tsx @@ -6,7 +6,7 @@ import { WorkflowSSESubscribeEffect } from '@/workflow/workflow-diagram/componen import { WorkflowVisualizerEffect } from '@/workflow/workflow-diagram/components/WorkflowVisualizerEffect'; import { WorkflowVisualizerComponentInstanceContext } from '@/workflow/workflow-diagram/states/contexts/WorkflowVisualizerComponentInstanceContext'; import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled'; -import { FeatureFlagKey } from '~/generated/graphql'; +import { FeatureFlagKey } from '~/generated-metadata/graphql'; export const WorkflowCard = () => { const targetRecord = useTargetRecord(); diff --git a/packages/twenty-front/src/modules/workflow/workflow-diagram/components/WorkflowRunCard.tsx b/packages/twenty-front/src/modules/workflow/workflow-diagram/components/WorkflowRunCard.tsx index fb6a71ee85..3702b692f5 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-diagram/components/WorkflowRunCard.tsx +++ b/packages/twenty-front/src/modules/workflow/workflow-diagram/components/WorkflowRunCard.tsx @@ -13,7 +13,7 @@ import { useTheme } from '@emotion/react'; import styled from '@emotion/styled'; import { Suspense, useId } from 'react'; import Skeleton, { SkeletonTheme } from 'react-loading-skeleton'; -import { FeatureFlagKey } from '~/generated/graphql'; +import { FeatureFlagKey } from '~/generated-metadata/graphql'; const StyledLoadingSkeletonContainer = styled.div` display: flex; diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/components/WorkflowAiAgentPermissionList.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/components/WorkflowAiAgentPermissionList.tsx index a18e7a0f5e..51219ceec7 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/components/WorkflowAiAgentPermissionList.tsx +++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/components/WorkflowAiAgentPermissionList.tsx @@ -1,7 +1,7 @@ import { useFilteredObjectMetadataItems } from '@/object-metadata/hooks/useFilteredObjectMetadataItems'; import { type SettingsRoleObjectPermissionKey } from '@/settings/roles/role-permissions/objects-permissions/constants/SettingsRoleObjectPermissionIconConfig'; import { t } from '@lingui/core/macro'; -import { type ObjectPermission } from '~/generated/graphql'; +import { type ObjectPermission } from '~/generated-metadata/graphql'; import { filterBySearchQuery } from '~/utils/filterBySearchQuery'; import { CRUD_PERMISSIONS } from '@/workflow/workflow-steps/workflow-actions/ai-agent-action/constants/WorkflowAiAgentCrudPermissions'; import { WorkflowAiAgentPermissionsPermissionRow } from './WorkflowAiAgentPermissionsPermissionRow'; diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/find-records-action/components/WorkflowFindRecordsSorts.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/find-records-action/components/WorkflowFindRecordsSorts.tsx index 3fa00bba20..b47df036e0 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/find-records-action/components/WorkflowFindRecordsSorts.tsx +++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/find-records-action/components/WorkflowFindRecordsSorts.tsx @@ -7,7 +7,7 @@ import { useLingui } from '@lingui/react/macro'; import { IconArrowsSort, IconTrash, useIcons } from 'twenty-ui/display'; import { Button, type SelectOption } from 'twenty-ui/input'; import { v4 as uuidv4 } from 'uuid'; -import { ViewSortDirection } from '~/generated/graphql'; +import { ViewSortDirection } from '~/generated-metadata/graphql'; const StyledContainer = styled.div` display: flex; diff --git a/packages/twenty-front/src/modules/workflow/workflow-variables/utils/generate/__tests__/generateRecordEventOutputSchema.test.ts b/packages/twenty-front/src/modules/workflow/workflow-variables/utils/generate/__tests__/generateRecordEventOutputSchema.test.ts index 03171dbd11..d87860529e 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-variables/utils/generate/__tests__/generateRecordEventOutputSchema.test.ts +++ b/packages/twenty-front/src/modules/workflow/workflow-variables/utils/generate/__tests__/generateRecordEventOutputSchema.test.ts @@ -1,7 +1,7 @@ import { type ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem'; import { generateRecordEventOutputSchema } from '@/workflow/workflow-variables/utils/generate/generateRecordEventOutputSchema'; import { FieldMetadataType, RelationType } from 'twenty-shared/types'; -import { DatabaseEventAction } from '~/generated/graphql'; +import { DatabaseEventAction } from '~/generated-metadata/graphql'; const createMockObjectMetadataItem = ( overrides: Partial = {}, diff --git a/packages/twenty-front/src/modules/workflow/workflow-variables/utils/generate/computeStepOutputSchema.ts b/packages/twenty-front/src/modules/workflow/workflow-variables/utils/generate/computeStepOutputSchema.ts index b6e2eef2e5..420adcde01 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-variables/utils/generate/computeStepOutputSchema.ts +++ b/packages/twenty-front/src/modules/workflow/workflow-variables/utils/generate/computeStepOutputSchema.ts @@ -11,7 +11,7 @@ import { generateRecordEventOutputSchema } from '@/workflow/workflow-variables/u import { generateRecordOutputSchema } from '@/workflow/workflow-variables/utils/generate/generateRecordOutputSchema'; import { FieldMetadataType } from 'twenty-shared/types'; import { isDefined } from 'twenty-shared/utils'; -import { DatabaseEventAction } from '~/generated/graphql'; +import { DatabaseEventAction } from '~/generated-metadata/graphql'; const PERSISTED_OUTPUT_SCHEMA_TYPES = [ 'CODE', diff --git a/packages/twenty-front/src/modules/workflow/workflow-variables/utils/generate/generateRecordEventOutputSchema.ts b/packages/twenty-front/src/modules/workflow/workflow-variables/utils/generate/generateRecordEventOutputSchema.ts index 1dd9d6e646..8f207cb270 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-variables/utils/generate/generateRecordEventOutputSchema.ts +++ b/packages/twenty-front/src/modules/workflow/workflow-variables/utils/generate/generateRecordEventOutputSchema.ts @@ -12,7 +12,7 @@ import { RelationType, } from 'twenty-shared/types'; import { capitalize, isDefined } from 'twenty-shared/utils'; -import { DatabaseEventAction } from '~/generated/graphql'; +import { DatabaseEventAction } from '~/generated-metadata/graphql'; const camelToTitleCase = (camelCaseText: string): string => capitalize( diff --git a/packages/twenty-front/src/modules/workspace-invitation/hooks/__tests__/useCreateWorkspaceInvitation.test.tsx b/packages/twenty-front/src/modules/workspace-invitation/hooks/__tests__/useCreateWorkspaceInvitation.test.tsx index d467643ba4..85a35aad64 100644 --- a/packages/twenty-front/src/modules/workspace-invitation/hooks/__tests__/useCreateWorkspaceInvitation.test.tsx +++ b/packages/twenty-front/src/modules/workspace-invitation/hooks/__tests__/useCreateWorkspaceInvitation.test.tsx @@ -5,6 +5,7 @@ import { getJestMetadataAndApolloMocksWrapper } from '~/testing/jest/getJestMeta const mutationSendInvitationsCallSpy = jest.fn(); jest.mock('~/generated-metadata/graphql', () => ({ + ...jest.requireActual('~/generated-metadata/graphql'), useSendInvitationsMutation: () => [mutationSendInvitationsCallSpy], })); diff --git a/packages/twenty-front/src/modules/workspace-invitation/hooks/__tests__/useDeleteWorkspaceInvitation.test.tsx b/packages/twenty-front/src/modules/workspace-invitation/hooks/__tests__/useDeleteWorkspaceInvitation.test.tsx index 11d10c29e9..0ebdf0c369 100644 --- a/packages/twenty-front/src/modules/workspace-invitation/hooks/__tests__/useDeleteWorkspaceInvitation.test.tsx +++ b/packages/twenty-front/src/modules/workspace-invitation/hooks/__tests__/useDeleteWorkspaceInvitation.test.tsx @@ -5,6 +5,7 @@ import { getJestMetadataAndApolloMocksWrapper } from '~/testing/jest/getJestMeta const mutationDeleteWorkspaceInvitationCallSpy = jest.fn(); jest.mock('~/generated-metadata/graphql', () => ({ + ...jest.requireActual('~/generated-metadata/graphql'), useDeleteWorkspaceInvitationMutation: () => [ mutationDeleteWorkspaceInvitationCallSpy, ], diff --git a/packages/twenty-front/src/modules/workspace-invitation/hooks/__tests__/useResendWorkspaceInvitation.test.tsx b/packages/twenty-front/src/modules/workspace-invitation/hooks/__tests__/useResendWorkspaceInvitation.test.tsx index 677845952e..ed64dd9b00 100644 --- a/packages/twenty-front/src/modules/workspace-invitation/hooks/__tests__/useResendWorkspaceInvitation.test.tsx +++ b/packages/twenty-front/src/modules/workspace-invitation/hooks/__tests__/useResendWorkspaceInvitation.test.tsx @@ -5,6 +5,7 @@ import { getJestMetadataAndApolloMocksWrapper } from '~/testing/jest/getJestMeta const mutationResendWorspaceInvitationCallSpy = jest.fn(); jest.mock('~/generated-metadata/graphql', () => ({ + ...jest.requireActual('~/generated-metadata/graphql'), useResendWorkspaceInvitationMutation: () => [ mutationResendWorspaceInvitationCallSpy, ], diff --git a/packages/twenty-front/src/modules/workspace-member/types/WorkspaceMember.ts b/packages/twenty-front/src/modules/workspace-member/types/WorkspaceMember.ts index 2bab8e4b33..f868a0fc18 100644 --- a/packages/twenty-front/src/modules/workspace-member/types/WorkspaceMember.ts +++ b/packages/twenty-front/src/modules/workspace-member/types/WorkspaceMember.ts @@ -2,7 +2,7 @@ import { type WorkspaceMemberDateFormatEnum, type WorkspaceMemberNumberFormatEnum, type WorkspaceMemberTimeFormatEnum, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export type ColorScheme = 'Dark' | 'Light' | 'System'; diff --git a/packages/twenty-front/src/modules/workspace/components/WorkspaceProviderEffect.tsx b/packages/twenty-front/src/modules/workspace/components/WorkspaceProviderEffect.tsx index f730eb79af..1dc9346f33 100644 --- a/packages/twenty-front/src/modules/workspace/components/WorkspaceProviderEffect.tsx +++ b/packages/twenty-front/src/modules/workspace/components/WorkspaceProviderEffect.tsx @@ -10,7 +10,7 @@ import { useInitializeQueryParamState } from '@/app/hooks/useInitializeQueryPara import { useGetPublicWorkspaceDataByDomain } from '@/domain-manager/hooks/useGetPublicWorkspaceDataByDomain'; import { useIsCurrentLocationOnDefaultDomain } from '@/domain-manager/hooks/useIsCurrentLocationOnDefaultDomain'; import { isDefined } from 'twenty-shared/utils'; -import { type WorkspaceUrls } from '~/generated/graphql'; +import { type WorkspaceUrls } from '~/generated-metadata/graphql'; import { getWorkspaceUrl } from '~/utils/getWorkspaceUrl'; export const WorkspaceProviderEffect = () => { diff --git a/packages/twenty-front/src/modules/workspace/hooks/__tests__/useSubscriptionStatus.test.ts b/packages/twenty-front/src/modules/workspace/hooks/__tests__/useSubscriptionStatus.test.ts index f4cfb4a25a..4d76277aee 100644 --- a/packages/twenty-front/src/modules/workspace/hooks/__tests__/useSubscriptionStatus.test.ts +++ b/packages/twenty-front/src/modules/workspace/hooks/__tests__/useSubscriptionStatus.test.ts @@ -10,7 +10,7 @@ import { useSubscriptionStatus } from '@/workspace/hooks/useSubscriptionStatus'; import { SubscriptionStatus, WorkspaceActivationStatus, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; const currentWorkspace = { id: '1', diff --git a/packages/twenty-front/src/modules/workspace/hooks/useFeatureFlagsMap.ts b/packages/twenty-front/src/modules/workspace/hooks/useFeatureFlagsMap.ts index d56d1ef6e0..038f5bc7ec 100644 --- a/packages/twenty-front/src/modules/workspace/hooks/useFeatureFlagsMap.ts +++ b/packages/twenty-front/src/modules/workspace/hooks/useFeatureFlagsMap.ts @@ -1,7 +1,7 @@ import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState'; import { extractFeatureFlagMapFromWorkspace } from '@/workspace/utils/extractFeatureFlagMapFromWorkspace'; import { useRecoilValue } from 'recoil'; -import { type FeatureFlagKey } from '~/generated/graphql'; +import { type FeatureFlagKey } from '~/generated-metadata/graphql'; export const useFeatureFlagsMap = (): Record => { const currentWorkspace = useRecoilValue(currentWorkspaceState); diff --git a/packages/twenty-front/src/modules/workspace/hooks/useIsFeatureEnabled.ts b/packages/twenty-front/src/modules/workspace/hooks/useIsFeatureEnabled.ts index 2d1676d786..7c38faf950 100644 --- a/packages/twenty-front/src/modules/workspace/hooks/useIsFeatureEnabled.ts +++ b/packages/twenty-front/src/modules/workspace/hooks/useIsFeatureEnabled.ts @@ -1,7 +1,7 @@ import { useRecoilValue } from 'recoil'; import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState'; -import { type FeatureFlagKey } from '~/generated/graphql'; +import { type FeatureFlagKey } from '~/generated-metadata/graphql'; export const useIsFeatureEnabled = (featureKey: FeatureFlagKey | null) => { const currentWorkspace = useRecoilValue(currentWorkspaceState); diff --git a/packages/twenty-front/src/modules/workspace/hooks/useSubscriptionStatus.ts b/packages/twenty-front/src/modules/workspace/hooks/useSubscriptionStatus.ts index 6141775aaa..ad1016942a 100644 --- a/packages/twenty-front/src/modules/workspace/hooks/useSubscriptionStatus.ts +++ b/packages/twenty-front/src/modules/workspace/hooks/useSubscriptionStatus.ts @@ -1,7 +1,7 @@ import { useRecoilValue } from 'recoil'; import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState'; -import { type SubscriptionStatus } from '~/generated/graphql'; +import { type SubscriptionStatus } from '~/generated-metadata/graphql'; export const useSubscriptionStatus = (): SubscriptionStatus | undefined => { const currentWorkspace = useRecoilValue(currentWorkspaceState); diff --git a/packages/twenty-front/src/modules/workspace/states/workspaceAuthBypassProvidersState.ts b/packages/twenty-front/src/modules/workspace/states/workspaceAuthBypassProvidersState.ts index acfa6a882f..c0c5161d0b 100644 --- a/packages/twenty-front/src/modules/workspace/states/workspaceAuthBypassProvidersState.ts +++ b/packages/twenty-front/src/modules/workspace/states/workspaceAuthBypassProvidersState.ts @@ -1,4 +1,4 @@ -import { type AuthBypassProviders } from '~/generated/graphql'; +import { type AuthBypassProviders } from '~/generated-metadata/graphql'; import { createState } from 'twenty-ui/utilities'; export const workspaceAuthBypassProvidersState = diff --git a/packages/twenty-front/src/modules/workspace/states/workspaceAuthProvidersState.ts b/packages/twenty-front/src/modules/workspace/states/workspaceAuthProvidersState.ts index f9b885cf9c..15f1230523 100644 --- a/packages/twenty-front/src/modules/workspace/states/workspaceAuthProvidersState.ts +++ b/packages/twenty-front/src/modules/workspace/states/workspaceAuthProvidersState.ts @@ -1,4 +1,4 @@ -import { type AuthProviders } from '~/generated/graphql'; +import { type AuthProviders } from '~/generated-metadata/graphql'; import { createState } from 'twenty-ui/utilities'; export const workspaceAuthProvidersState = createState({ diff --git a/packages/twenty-front/src/modules/workspace/utils/extractFeatureFlagMapFromWorkspace.ts b/packages/twenty-front/src/modules/workspace/utils/extractFeatureFlagMapFromWorkspace.ts index 8e2e31ec04..78d33f786a 100644 --- a/packages/twenty-front/src/modules/workspace/utils/extractFeatureFlagMapFromWorkspace.ts +++ b/packages/twenty-front/src/modules/workspace/utils/extractFeatureFlagMapFromWorkspace.ts @@ -1,5 +1,5 @@ import { type CurrentWorkspace } from '@/auth/states/currentWorkspaceState'; -import { FeatureFlagKey } from '~/generated/graphql'; +import { FeatureFlagKey } from '~/generated-metadata/graphql'; import { buildRecordFromKeysWithSameValue } from '~/utils/array/buildRecordFromKeysWithSameValue'; export const extractFeatureFlagMapFromWorkspace = ( diff --git a/packages/twenty-front/src/pages/auth/SignInUp.tsx b/packages/twenty-front/src/pages/auth/SignInUp.tsx index 5d2ee89e44..2a1a3ea191 100644 --- a/packages/twenty-front/src/pages/auth/SignInUp.tsx +++ b/packages/twenty-front/src/pages/auth/SignInUp.tsx @@ -33,7 +33,7 @@ import { useSearchParams } from 'react-router-dom'; import { isDefined } from 'twenty-shared/utils'; import { Loader } from 'twenty-ui/feedback'; import { AnimatedEaseIn } from 'twenty-ui/utilities'; -import { type PublicWorkspaceDataOutput } from '~/generated/graphql'; +import { type PublicWorkspaceDataOutput } from '~/generated-metadata/graphql'; const StyledLoaderContainer = styled.div` align-items: center; diff --git a/packages/twenty-front/src/pages/onboarding/SyncEmails.tsx b/packages/twenty-front/src/pages/onboarding/SyncEmails.tsx index e80586defd..e7959e2c85 100644 --- a/packages/twenty-front/src/pages/onboarding/SyncEmails.tsx +++ b/packages/twenty-front/src/pages/onboarding/SyncEmails.tsx @@ -25,8 +25,8 @@ import { ClickToActionLink } from 'twenty-ui/navigation'; import { CalendarChannelVisibility, MessageChannelVisibility, - useSkipSyncEmailOnboardingStepMutation, -} from '~/generated-metadata/graphql'; +} from '~/generated/graphql'; +import { useSkipSyncEmailOnboardingStepMutation } from '~/generated-metadata/graphql'; import { lastAuthenticatedMethodState } from '@/auth/states/lastAuthenticatedMethodState'; import { AuthenticatedMethod } from '@/auth/types/AuthenticatedMethod.enum'; diff --git a/packages/twenty-front/src/pages/onboarding/__stories__/ChooseYourPlan.stories.tsx b/packages/twenty-front/src/pages/onboarding/__stories__/ChooseYourPlan.stories.tsx index 08f79ceec4..a33f3a9db8 100644 --- a/packages/twenty-front/src/pages/onboarding/__stories__/ChooseYourPlan.stories.tsx +++ b/packages/twenty-front/src/pages/onboarding/__stories__/ChooseYourPlan.stories.tsx @@ -5,7 +5,7 @@ import { within } from 'storybook/test'; import { GET_CURRENT_USER } from '@/users/graphql/queries/getCurrentUser'; import { AppPath } from 'twenty-shared/types'; -import { OnboardingStatus } from '~/generated/graphql'; +import { OnboardingStatus } from '~/generated-metadata/graphql'; import { ChooseYourPlan } from '~/pages/onboarding/ChooseYourPlan'; import { PageDecorator, diff --git a/packages/twenty-front/src/pages/onboarding/__stories__/CreateProfile.stories.tsx b/packages/twenty-front/src/pages/onboarding/__stories__/CreateProfile.stories.tsx index cd755a05d8..eb8f5712a1 100644 --- a/packages/twenty-front/src/pages/onboarding/__stories__/CreateProfile.stories.tsx +++ b/packages/twenty-front/src/pages/onboarding/__stories__/CreateProfile.stories.tsx @@ -5,7 +5,7 @@ import { within } from 'storybook/test'; import { GET_CURRENT_USER } from '@/users/graphql/queries/getCurrentUser'; import { AppPath } from 'twenty-shared/types'; -import { OnboardingStatus } from '~/generated/graphql'; +import { OnboardingStatus } from '~/generated-metadata/graphql'; import { CreateProfile } from '~/pages/onboarding/CreateProfile'; import { PageDecorator, diff --git a/packages/twenty-front/src/pages/onboarding/__stories__/CreateWorkspace.stories.tsx b/packages/twenty-front/src/pages/onboarding/__stories__/CreateWorkspace.stories.tsx index 225f5505bc..69973d9430 100644 --- a/packages/twenty-front/src/pages/onboarding/__stories__/CreateWorkspace.stories.tsx +++ b/packages/twenty-front/src/pages/onboarding/__stories__/CreateWorkspace.stories.tsx @@ -5,7 +5,7 @@ import { within } from 'storybook/test'; import { GET_CURRENT_USER } from '@/users/graphql/queries/getCurrentUser'; import { AppPath } from 'twenty-shared/types'; -import { OnboardingStatus } from '~/generated/graphql'; +import { OnboardingStatus } from '~/generated-metadata/graphql'; import { CreateWorkspace } from '~/pages/onboarding/CreateWorkspace'; import { PageDecorator, diff --git a/packages/twenty-front/src/pages/onboarding/__stories__/InviteTeam.stories.tsx b/packages/twenty-front/src/pages/onboarding/__stories__/InviteTeam.stories.tsx index 0945ceadf2..c05389e295 100644 --- a/packages/twenty-front/src/pages/onboarding/__stories__/InviteTeam.stories.tsx +++ b/packages/twenty-front/src/pages/onboarding/__stories__/InviteTeam.stories.tsx @@ -4,7 +4,7 @@ import { HttpResponse, graphql } from 'msw'; import { within } from 'storybook/test'; import { AppPath } from 'twenty-shared/types'; -import { OnboardingStatus } from '~/generated/graphql'; +import { OnboardingStatus } from '~/generated-metadata/graphql'; import { GET_CURRENT_USER } from '~/modules/users/graphql/queries/getCurrentUser'; import { InviteTeam } from '~/pages/onboarding/InviteTeam'; import { diff --git a/packages/twenty-front/src/pages/onboarding/__stories__/PaymentSuccess.stories.tsx b/packages/twenty-front/src/pages/onboarding/__stories__/PaymentSuccess.stories.tsx index 55173a27ac..9da677a93a 100644 --- a/packages/twenty-front/src/pages/onboarding/__stories__/PaymentSuccess.stories.tsx +++ b/packages/twenty-front/src/pages/onboarding/__stories__/PaymentSuccess.stories.tsx @@ -5,7 +5,7 @@ import { within } from 'storybook/test'; import { GET_CURRENT_USER } from '@/users/graphql/queries/getCurrentUser'; import { AppPath } from 'twenty-shared/types'; -import { OnboardingStatus } from '~/generated/graphql'; +import { OnboardingStatus } from '~/generated-metadata/graphql'; import { PaymentSuccess } from '~/pages/onboarding/PaymentSuccess'; import { PageDecorator, diff --git a/packages/twenty-front/src/pages/onboarding/__stories__/SyncEmails.stories.tsx b/packages/twenty-front/src/pages/onboarding/__stories__/SyncEmails.stories.tsx index bbd9c79bc8..b050b63bf5 100644 --- a/packages/twenty-front/src/pages/onboarding/__stories__/SyncEmails.stories.tsx +++ b/packages/twenty-front/src/pages/onboarding/__stories__/SyncEmails.stories.tsx @@ -4,7 +4,7 @@ import { HttpResponse, graphql } from 'msw'; import { within } from 'storybook/test'; import { AppPath } from 'twenty-shared/types'; -import { OnboardingStatus } from '~/generated/graphql'; +import { OnboardingStatus } from '~/generated-metadata/graphql'; import { GET_CURRENT_USER } from '~/modules/users/graphql/queries/getCurrentUser'; import { SyncEmails } from '~/pages/onboarding/SyncEmails'; import { diff --git a/packages/twenty-front/src/pages/onboarding/internal/ChooseYourPlanContent.tsx b/packages/twenty-front/src/pages/onboarding/internal/ChooseYourPlanContent.tsx index 08ff380534..eaa32a6eb2 100644 --- a/packages/twenty-front/src/pages/onboarding/internal/ChooseYourPlanContent.tsx +++ b/packages/twenty-front/src/pages/onboarding/internal/ChooseYourPlanContent.tsx @@ -22,8 +22,7 @@ import { ClickToActionLink, TWENTY_PRICING_LINK, } from 'twenty-ui/navigation'; -import { BillingPlanKey } from '~/generated-metadata/graphql'; -import { type Billing } from '~/generated/graphql'; +import { BillingPlanKey, type Billing } from '~/generated-metadata/graphql'; const StyledSubscriptionContainer = styled.div<{ withLongerMarginBottom: boolean; diff --git a/packages/twenty-front/src/pages/settings/ai/components/SettingsAgentSettingsTab.tsx b/packages/twenty-front/src/pages/settings/ai/components/SettingsAgentSettingsTab.tsx index 3ee8274549..7b3204d576 100644 --- a/packages/twenty-front/src/pages/settings/ai/components/SettingsAgentSettingsTab.tsx +++ b/packages/twenty-front/src/pages/settings/ai/components/SettingsAgentSettingsTab.tsx @@ -16,7 +16,7 @@ import { isDefined } from 'twenty-shared/utils'; import { H2Title, IconTrash } from 'twenty-ui/display'; import { Button } from 'twenty-ui/input'; import { Section } from 'twenty-ui/layout'; -import { type Agent } from '~/generated/graphql'; +import { type Agent } from '~/generated-metadata/graphql'; import { SettingsAgentDeleteConfirmationModal } from '~/pages/settings/ai/components/SettingsAgentDeleteConfirmationModal'; import { SettingsAgentResponseFormat } from '~/pages/settings/ai/components/SettingsAgentResponseFormat'; import { computeMetadataNameFromLabel } from '~/pages/settings/data-model/utils/computeMetadataNameFromLabel'; diff --git a/packages/twenty-front/src/pages/settings/applications/SettingsApplications.tsx b/packages/twenty-front/src/pages/settings/applications/SettingsApplications.tsx index 3848baff58..25625fe56f 100644 --- a/packages/twenty-front/src/pages/settings/applications/SettingsApplications.tsx +++ b/packages/twenty-front/src/pages/settings/applications/SettingsApplications.tsx @@ -8,8 +8,10 @@ import { useLingui } from '@lingui/react/macro'; import { SettingsPath } from 'twenty-shared/types'; import { getSettingsPath } from 'twenty-shared/utils'; import { IconApps, IconCode, IconDownload } from 'twenty-ui/display'; -import { useFindManyApplicationsQuery } from '~/generated-metadata/graphql'; -import { type FeatureFlagKey } from '~/generated/graphql'; +import { + type FeatureFlagKey, + useFindManyApplicationsQuery, +} from '~/generated-metadata/graphql'; import { SettingsApplicationsTable } from '~/pages/settings/applications/components/SettingsApplicationsTable'; import { SettingsApplicationsAvailableTab } from '~/pages/settings/applications/tabs/SettingsApplicationsAvailableTab'; import { SettingsApplicationsCreateTab } from '~/pages/settings/applications/tabs/SettingsApplicationsCreateTab'; diff --git a/packages/twenty-front/src/pages/settings/applications/SettingsAvailableApplicationDetails.tsx b/packages/twenty-front/src/pages/settings/applications/SettingsAvailableApplicationDetails.tsx index 4a46ffbadd..069a2feb5a 100644 --- a/packages/twenty-front/src/pages/settings/applications/SettingsAvailableApplicationDetails.tsx +++ b/packages/twenty-front/src/pages/settings/applications/SettingsAvailableApplicationDetails.tsx @@ -26,7 +26,7 @@ import { } from 'twenty-ui/display'; import { Button } from 'twenty-ui/input'; import { Section } from 'twenty-ui/layout'; -import { PermissionFlagType } from '~/generated/graphql'; +import { PermissionFlagType } from '~/generated-metadata/graphql'; import { useMarketplaceApps } from '~/pages/settings/applications/hooks/useMarketplaceApps'; const AVAILABLE_APPLICATION_DETAIL_ID = 'available-application-detail'; diff --git a/packages/twenty-front/src/pages/settings/applications/components/SettingsApplicationVersionContainer.tsx b/packages/twenty-front/src/pages/settings/applications/components/SettingsApplicationVersionContainer.tsx index ae75ca5394..e4f581b4cd 100644 --- a/packages/twenty-front/src/pages/settings/applications/components/SettingsApplicationVersionContainer.tsx +++ b/packages/twenty-front/src/pages/settings/applications/components/SettingsApplicationVersionContainer.tsx @@ -3,7 +3,7 @@ import { SettingsAdminVersionDisplay } from '@/settings/admin-panel/components/S import { t } from '@lingui/core/macro'; import { isDefined } from 'twenty-shared/utils'; import { IconCircleDot, IconStatusChange } from 'twenty-ui/display'; -import type { Application } from '~/generated/graphql'; +import type { Application } from '~/generated-metadata/graphql'; export const SettingsApplicationVersionContainer = ({ application, diff --git a/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationDetailAboutTab.tsx b/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationDetailAboutTab.tsx index 8d2bde8bc2..92f09658a0 100644 --- a/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationDetailAboutTab.tsx +++ b/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationDetailAboutTab.tsx @@ -3,7 +3,6 @@ import { t } from '@lingui/core/macro'; import { isDefined } from 'twenty-shared/utils'; import { H2Title, IconTrash } from 'twenty-ui/display'; import { Section } from 'twenty-ui/layout'; -import type { Application } from '~/generated/graphql'; import { SettingsApplicationVersionContainer } from '~/pages/settings/applications/components/SettingsApplicationVersionContainer'; import { Button } from 'twenty-ui/input'; import { ConfirmationModal } from '@/ui/layout/modal/components/ConfirmationModal'; @@ -11,7 +10,10 @@ import { Trans } from '@lingui/react/macro'; import { SettingsPath } from 'twenty-shared/types'; import { useModal } from '@/ui/layout/modal/hooks/useModal'; import { useState } from 'react'; -import { useUninstallApplicationMutation } from '~/generated-metadata/graphql'; +import { + type Application, + useUninstallApplicationMutation, +} from '~/generated-metadata/graphql'; import { useSnackBar } from '@/ui/feedback/snack-bar-manager/hooks/useSnackBar'; import { useNavigateSettings } from '~/hooks/useNavigateSettings'; diff --git a/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationDetailContentTab.tsx b/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationDetailContentTab.tsx index 251fa72235..2644a9640e 100644 --- a/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationDetailContentTab.tsx +++ b/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationDetailContentTab.tsx @@ -5,7 +5,7 @@ import { useRecoilValue } from 'recoil'; import { isDefined } from 'twenty-shared/utils'; import { H2Title } from 'twenty-ui/display'; import { Section } from 'twenty-ui/layout'; -import { type Application } from '~/generated/graphql'; +import { type Application } from '~/generated-metadata/graphql'; import { SettingsAIAgentsTable } from '~/pages/settings/ai/components/SettingsAIAgentsTable'; import { SettingsObjectTable } from '~/pages/settings/data-model/SettingsObjectTable'; diff --git a/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationDetailEnvironmentVariablesTable.tsx b/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationDetailEnvironmentVariablesTable.tsx index ff58f88332..9d522b2131 100644 --- a/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationDetailEnvironmentVariablesTable.tsx +++ b/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationDetailEnvironmentVariablesTable.tsx @@ -1,4 +1,4 @@ -import { type ApplicationVariable } from '~/generated/graphql'; +import { type ApplicationVariable } from '~/generated-metadata/graphql'; import { t } from '@lingui/core/macro'; import { H2Title } from 'twenty-ui/display'; import { Section } from 'twenty-ui/layout'; diff --git a/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationDetailSettingsTab.tsx b/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationDetailSettingsTab.tsx index d31d38a38b..8768b2b40f 100644 --- a/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationDetailSettingsTab.tsx +++ b/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationDetailSettingsTab.tsx @@ -1,5 +1,5 @@ import { isDefined } from 'twenty-shared/utils'; -import type { Application } from '~/generated/graphql'; +import type { Application } from '~/generated-metadata/graphql'; import { useUpdateOneApplicationVariable } from '~/pages/settings/applications/hooks/useUpdateOneApplicationVariable'; import { SettingsApplicationDetailEnvironmentVariablesTable } from '~/pages/settings/applications/tabs/SettingsApplicationDetailEnvironmentVariablesTable'; diff --git a/packages/twenty-front/src/pages/settings/applications/types/applicationWithoutRelation.ts b/packages/twenty-front/src/pages/settings/applications/types/applicationWithoutRelation.ts index f76971bdbd..a2615cf699 100644 --- a/packages/twenty-front/src/pages/settings/applications/types/applicationWithoutRelation.ts +++ b/packages/twenty-front/src/pages/settings/applications/types/applicationWithoutRelation.ts @@ -1,4 +1,4 @@ -import { type Application } from '~/generated/graphql'; +import { type Application } from '~/generated-metadata/graphql'; export type ApplicationWithoutRelation = Pick< Application, diff --git a/packages/twenty-front/src/pages/settings/data-model/SettingsObjectDetailPage.tsx b/packages/twenty-front/src/pages/settings/data-model/SettingsObjectDetailPage.tsx index d3d250fec5..9ecc0a839a 100644 --- a/packages/twenty-front/src/pages/settings/data-model/SettingsObjectDetailPage.tsx +++ b/packages/twenty-front/src/pages/settings/data-model/SettingsObjectDetailPage.tsx @@ -29,7 +29,7 @@ import { } from 'twenty-ui/display'; import { Button } from 'twenty-ui/input'; import { UndecoratedLink } from 'twenty-ui/navigation'; -import { FeatureFlagKey } from '~/generated/graphql'; +import { FeatureFlagKey } from '~/generated-metadata/graphql'; import { useNavigateApp } from '~/hooks/useNavigateApp'; import { SETTINGS_OBJECT_DETAIL_TABS } from '~/pages/settings/data-model/constants/SettingsObjectDetailTabs'; import { updatedObjectNamePluralState } from '~/pages/settings/data-model/states/updatedObjectNamePluralState'; diff --git a/packages/twenty-front/src/pages/settings/domains/SettingsDomains.tsx b/packages/twenty-front/src/pages/settings/domains/SettingsDomains.tsx index 7f795d7f8b..3b45116bfb 100644 --- a/packages/twenty-front/src/pages/settings/domains/SettingsDomains.tsx +++ b/packages/twenty-front/src/pages/settings/domains/SettingsDomains.tsx @@ -12,7 +12,7 @@ import { SettingsPath } from 'twenty-shared/types'; import { getSettingsPath } from 'twenty-shared/utils'; import { H2Title } from 'twenty-ui/display'; import { Section } from 'twenty-ui/layout'; -import { FeatureFlagKey } from '~/generated/graphql'; +import { FeatureFlagKey } from '~/generated-metadata/graphql'; import { SettingsEmailingDomains } from '~/pages/settings/emailing-domains/SettingsEmailingDomains'; const StyledMainContent = styled.div` diff --git a/packages/twenty-front/src/pages/settings/emailing-domains/utils/getEmailingDomainStatusColor.ts b/packages/twenty-front/src/pages/settings/emailing-domains/utils/getEmailingDomainStatusColor.ts index c149dd89ed..ba3c07c365 100644 --- a/packages/twenty-front/src/pages/settings/emailing-domains/utils/getEmailingDomainStatusColor.ts +++ b/packages/twenty-front/src/pages/settings/emailing-domains/utils/getEmailingDomainStatusColor.ts @@ -1,4 +1,4 @@ -import { EmailingDomainStatus } from '~/generated/graphql'; +import { EmailingDomainStatus } from '~/generated-metadata/graphql'; export const getColorByEmailingDomainStatus = ( status: EmailingDomainStatus, diff --git a/packages/twenty-front/src/pages/settings/emailing-domains/utils/getEmailingDomainStatusText.ts b/packages/twenty-front/src/pages/settings/emailing-domains/utils/getEmailingDomainStatusText.ts index ab539f678f..8907a905d6 100644 --- a/packages/twenty-front/src/pages/settings/emailing-domains/utils/getEmailingDomainStatusText.ts +++ b/packages/twenty-front/src/pages/settings/emailing-domains/utils/getEmailingDomainStatusText.ts @@ -1,5 +1,5 @@ import { t } from '@lingui/core/macro'; -import { EmailingDomainStatus } from '~/generated/graphql'; +import { EmailingDomainStatus } from '~/generated-metadata/graphql'; export const getTextByEmailingDomainStatus = (status: EmailingDomainStatus) => { switch (status) { diff --git a/packages/twenty-front/src/pages/settings/members/SettingsWorkspaceMember.tsx b/packages/twenty-front/src/pages/settings/members/SettingsWorkspaceMember.tsx index 6ec9f6ce00..0a428617e3 100644 --- a/packages/twenty-front/src/pages/settings/members/SettingsWorkspaceMember.tsx +++ b/packages/twenty-front/src/pages/settings/members/SettingsWorkspaceMember.tsx @@ -29,10 +29,10 @@ import { MemberPermissionsTab } from '@/settings/members/components/MemberPermis import { useWorkspaceMemberRoles } from '@/settings/members/hooks/useWorkspaceMemberRoles'; import { type WorkspaceMember } from '@/workspace-member/types/WorkspaceMember'; import { + PermissionFlagType, useDeleteUserWorkspaceMutation, useImpersonateMutation, } from '~/generated-metadata/graphql'; -import { PermissionFlagType } from '~/generated/graphql'; const SETTINGS_WORKSPACE_MEMBER_TABS = { COMPONENT_INSTANCE_ID: 'settings-workspace-member-tabs', diff --git a/packages/twenty-front/src/testing/mock-data/config.ts b/packages/twenty-front/src/testing/mock-data/config.ts index e76a02aba5..0672401277 100644 --- a/packages/twenty-front/src/testing/mock-data/config.ts +++ b/packages/twenty-front/src/testing/mock-data/config.ts @@ -1,5 +1,5 @@ import { type ClientConfig } from '@/client-config/types/ClientConfig'; -import { CaptchaDriverType, SupportDriver } from '~/generated/graphql'; +import { CaptchaDriverType, SupportDriver } from '~/generated-metadata/graphql'; export const mockedClientConfig: ClientConfig = { aiModels: [], diff --git a/packages/twenty-front/src/testing/mock-data/roles.ts b/packages/twenty-front/src/testing/mock-data/roles.ts index 6b2dfceb7b..75739e638d 100644 --- a/packages/twenty-front/src/testing/mock-data/roles.ts +++ b/packages/twenty-front/src/testing/mock-data/roles.ts @@ -1,4 +1,4 @@ -import { PermissionFlagType, type Role } from '~/generated/graphql'; +import { PermissionFlagType, type Role } from '~/generated-metadata/graphql'; import { mockWorkspaceMembers } from '~/testing/mock-data/workspace-members'; const rolesMock: Role[] = [ diff --git a/packages/twenty-front/src/testing/mock-data/roles/roles-mock.ts b/packages/twenty-front/src/testing/mock-data/roles/roles-mock.ts index 42c383dec4..4c8237e51e 100644 --- a/packages/twenty-front/src/testing/mock-data/roles/roles-mock.ts +++ b/packages/twenty-front/src/testing/mock-data/roles/roles-mock.ts @@ -3,7 +3,7 @@ import { type FieldPermission, type ObjectPermission, type Role, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; import { getJestMetadataAndApolloMocksWrapper } from '~/testing/jest/getJestMetadataAndApolloMocksWrapper'; export const MOCK_ROLE_ID_GRANTS_ALL = 'role-id-1'; diff --git a/packages/twenty-front/src/testing/mock-data/users.ts b/packages/twenty-front/src/testing/mock-data/users.ts index 41326c52e2..feaee59b31 100644 --- a/packages/twenty-front/src/testing/mock-data/users.ts +++ b/packages/twenty-front/src/testing/mock-data/users.ts @@ -13,7 +13,7 @@ import { WorkspaceActivationStatus, WorkspaceMemberDateFormatEnum, WorkspaceMemberTimeFormatEnum, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; import { mockBillingPlans } from '~/testing/mock-data/billing-plans'; import { generatedMockObjectMetadataItems } from '~/testing/utils/generatedMockObjectMetadataItems'; diff --git a/packages/twenty-front/src/testing/mock-data/widget-configurations.ts b/packages/twenty-front/src/testing/mock-data/widget-configurations.ts index 996b98c841..68fd09e627 100644 --- a/packages/twenty-front/src/testing/mock-data/widget-configurations.ts +++ b/packages/twenty-front/src/testing/mock-data/widget-configurations.ts @@ -15,7 +15,7 @@ import { type WidgetConfiguration, WidgetConfigurationType, WidgetType, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export const TEST_FIELD_METADATA_ID_1 = '20202020-1111-4111-a111-111111111111'; export const TEST_FIELD_METADATA_ID_2 = '20202020-2222-4222-a222-222222222222'; diff --git a/packages/twenty-front/src/testing/mock-data/workspace-members.ts b/packages/twenty-front/src/testing/mock-data/workspace-members.ts index e9c35d39fa..3da5c1243a 100644 --- a/packages/twenty-front/src/testing/mock-data/workspace-members.ts +++ b/packages/twenty-front/src/testing/mock-data/workspace-members.ts @@ -3,7 +3,7 @@ import { type WorkspaceMember } from '@/workspace-member/types/WorkspaceMember'; import { WorkspaceMemberDateFormatEnum, WorkspaceMemberTimeFormatEnum, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export const mockWorkspaceMembers: WorkspaceMember[] = [ { diff --git a/packages/twenty-front/src/utils/__tests__/getWorkspaceUrl.test.ts b/packages/twenty-front/src/utils/__tests__/getWorkspaceUrl.test.ts index 935be988c0..c29e9eb337 100644 --- a/packages/twenty-front/src/utils/__tests__/getWorkspaceUrl.test.ts +++ b/packages/twenty-front/src/utils/__tests__/getWorkspaceUrl.test.ts @@ -1,4 +1,4 @@ -import { type WorkspaceUrls } from '~/generated/graphql'; +import { type WorkspaceUrls } from '~/generated-metadata/graphql'; import { getWorkspaceUrl } from '~/utils/getWorkspaceUrl'; describe('getWorkspaceUrl', () => { diff --git a/packages/twenty-front/src/utils/dates/formatZonedDateTimeDatePart.ts b/packages/twenty-front/src/utils/dates/formatZonedDateTimeDatePart.ts index 203ca8b4fb..5335578c18 100644 --- a/packages/twenty-front/src/utils/dates/formatZonedDateTimeDatePart.ts +++ b/packages/twenty-front/src/utils/dates/formatZonedDateTimeDatePart.ts @@ -1,6 +1,6 @@ import { detectDateFormat } from '@/localization/utils/detection/detectDateFormat'; import { type Temporal } from 'temporal-polyfill'; -import { WorkspaceMemberDateFormatEnum } from '~/generated/graphql'; +import { WorkspaceMemberDateFormatEnum } from '~/generated-metadata/graphql'; export const formatZonedDateTimeDatePart = ( zonedDateTime: Temporal.ZonedDateTime, diff --git a/packages/twenty-front/src/utils/dates/formatZonedDateTimeTimePart.ts b/packages/twenty-front/src/utils/dates/formatZonedDateTimeTimePart.ts index df444e9817..d6ba01a7e4 100644 --- a/packages/twenty-front/src/utils/dates/formatZonedDateTimeTimePart.ts +++ b/packages/twenty-front/src/utils/dates/formatZonedDateTimeTimePart.ts @@ -1,6 +1,6 @@ import { detectTimeFormat } from '@/localization/utils/detection/detectTimeFormat'; import { type Temporal } from 'temporal-polyfill'; -import { WorkspaceMemberTimeFormatEnum } from '~/generated/graphql'; +import { WorkspaceMemberTimeFormatEnum } from '~/generated-metadata/graphql'; export const formatZonedDateTimeTimePart = ( zonedDateTime: Temporal.ZonedDateTime, diff --git a/packages/twenty-front/src/utils/getWorkspaceUrl.ts b/packages/twenty-front/src/utils/getWorkspaceUrl.ts index db4c9461b4..f6ea50b73b 100644 --- a/packages/twenty-front/src/utils/getWorkspaceUrl.ts +++ b/packages/twenty-front/src/utils/getWorkspaceUrl.ts @@ -1,4 +1,4 @@ -import { type WorkspaceUrls } from '~/generated/graphql'; +import { type WorkspaceUrls } from '~/generated-metadata/graphql'; export const getWorkspaceUrl = (workspaceUrls: WorkspaceUrls) => { return workspaceUrls.customUrl ?? workspaceUrls.subdomainUrl; diff --git a/packages/twenty-front/src/utils/sort.ts b/packages/twenty-front/src/utils/sort.ts index c09f245f2a..efa36ddf2b 100644 --- a/packages/twenty-front/src/utils/sort.ts +++ b/packages/twenty-front/src/utils/sort.ts @@ -1,6 +1,6 @@ import { isNonEmptyString } from '@sniptt/guards'; -import { type Maybe } from '~/generated/graphql'; +import { type Maybe } from '~/generated-metadata/graphql'; export const sortNullsFirst = ( fieldValueA: Maybe, diff --git a/packages/twenty-server/patches/@nestjs+graphql+12.1.1.patch b/packages/twenty-server/patches/@nestjs+graphql+12.1.1.patch index a5709204db..6f60f64be0 100644 --- a/packages/twenty-server/patches/@nestjs+graphql+12.1.1.patch +++ b/packages/twenty-server/patches/@nestjs+graphql+12.1.1.patch @@ -1,5 +1,5 @@ diff --git a/dist/interfaces/gql-module-options.interface.d.ts b/dist/interfaces/gql-module-options.interface.d.ts -index 1234567..abcdefg 100644 +index 72bab49dcc2b411408c75adf64c3f250cdeaa195..068dc04966e3f7ac7c7093f9ed8f29f24337cebc 100644 --- a/dist/interfaces/gql-module-options.interface.d.ts +++ b/dist/interfaces/gql-module-options.interface.d.ts @@ -97,6 +97,10 @@ export interface GqlModuleOptions { @@ -14,26 +14,178 @@ index 1234567..abcdefg 100644 export interface GqlOptionsFactory = GqlModuleOptions> { createGqlOptions(): Promise> | Omit; diff --git a/dist/schema-builder/graphql-schema.factory.js b/dist/schema-builder/graphql-schema.factory.js -index f349a6e..425815c 100644 +index f349a6e8ea629f8784143b2596e9e95b3255d348..790b062233936dcb336bc615887870d5e7a24de8 100644 --- a/dist/schema-builder/graphql-schema.factory.js +++ b/dist/schema-builder/graphql-schema.factory.js -@@ -32,6 +32,7 @@ let GraphQLSchemaFactory = GraphQLSchemaFactory_1 = class GraphQLSchemaFactory { +@@ -16,6 +16,7 @@ const subscription_type_factory_1 = require("./factories/subscription-type.facto + const lazy_metadata_storage_1 = require("./storages/lazy-metadata.storage"); + const type_metadata_storage_1 = require("./storages/type-metadata.storage"); + const type_definitions_generator_1 = require("./type-definitions.generator"); ++const get_interfaces_array_util_1 = require("./utils/get-interfaces-array.util"); + let GraphQLSchemaFactory = GraphQLSchemaFactory_1 = class GraphQLSchemaFactory { + constructor(queryTypeFactory, mutationTypeFactory, subscriptionTypeFactory, orphanedTypesFactory, typeDefinitionsGenerator) { + this.queryTypeFactory = queryTypeFactory; +@@ -32,9 +33,14 @@ let GraphQLSchemaFactory = GraphQLSchemaFactory_1 = class GraphQLSchemaFactory { else { options = scalarsOrOptions; } + this.typeDefinitionsGenerator.clearTypeDefinitionStorage(); ++ this.orphanedTypesFactory.orphanedReferenceRegistry.clear(); lazy_metadata_storage_1.LazyMetadataStorage.load(resolvers); type_metadata_storage_1.TypeMetadataStorage.compile(options.orphanedTypes); - this.typeDefinitionsGenerator.generate(options); +- this.typeDefinitionsGenerator.generate(options); ++ const reachableTypes = Array.isArray(resolvers) ++ ? this.computeReachableTypes(resolvers, options.orphanedTypes) ++ : undefined; ++ this.typeDefinitionsGenerator.generate(options, reachableTypes); + const schema = new graphql_1.GraphQLSchema({ + mutation: this.mutationTypeFactory.create(resolvers, options), + query: this.queryTypeFactory.create(resolvers, options), +@@ -68,6 +74,116 @@ let GraphQLSchemaFactory = GraphQLSchemaFactory_1 = class GraphQLSchemaFactory { + .forEach((classRef) => this.addScalarTypeByClassRef(classRef, scalarsMap)); + options.scalarsMap = scalarsMap; + } ++ computeReachableTypes(resolverClasses, orphanedTypes) { ++ const SCALAR_TYPES = [String, Number, Boolean, Date]; ++ const reachableTypes = new Set(); ++ const pendingTypes = []; ++ const resolveTypeFn = (typeFn) => { ++ try { return typeFn === null || typeFn === void 0 ? void 0 : typeFn(); } catch (_) { return undefined; } ++ }; ++ const markTypeForVisit = (typeReference) => { ++ if (!typeReference || reachableTypes.has(typeReference)) { ++ return; ++ } ++ if (typeof typeReference === 'function' && !SCALAR_TYPES.includes(typeReference)) { ++ pendingTypes.push(typeReference); ++ return; ++ } ++ // Symbols are union type identifiers from createUnionType() ++ if (typeof typeReference === 'symbol') { ++ reachableTypes.add(typeReference); ++ for (const unionMetadata of type_metadata_storage_1.TypeMetadataStorage.getUnionsMetadata()) { ++ if (unionMetadata.id === typeReference) { ++ for (const memberType of resolveTypeFn(unionMetadata.typesFn) || []) { ++ markTypeForVisit(memberType); ++ } ++ } ++ } ++ } ++ }; ++ const getTypeMetadataByTarget = (target) => [ ++ type_metadata_storage_1.TypeMetadataStorage.getObjectTypeMetadataByTarget(target), ++ type_metadata_storage_1.TypeMetadataStorage.getInputTypeMetadataByTarget(target), ++ type_metadata_storage_1.TypeMetadataStorage.getInterfaceMetadataByTarget(target), ++ type_metadata_storage_1.TypeMetadataStorage.getArgumentsMetadataByTarget(target), ++ ].filter(Boolean); ++ // Seed from resolver query/mutation/subscription handlers ++ const resolverHandlers = [ ++ ...type_metadata_storage_1.TypeMetadataStorage.getQueriesMetadata(), ++ ...type_metadata_storage_1.TypeMetadataStorage.getMutationsMetadata(), ++ ...type_metadata_storage_1.TypeMetadataStorage.getSubscriptionsMetadata(), ++ ].filter((handler) => resolverClasses.includes(handler.target)); ++ for (const handler of resolverHandlers) { ++ markTypeForVisit(resolveTypeFn(handler.typeFn)); ++ for (const argument of handler.methodArgs || []) { ++ markTypeForVisit(resolveTypeFn(argument.typeFn)); ++ } ++ } ++ for (const orphanedType of orphanedTypes || []) { ++ markTypeForVisit(orphanedType); ++ } ++ // Walk all fields, arguments, and interfaces from each pending type ++ const visitAllPendingTypes = () => { ++ while (pendingTypes.length > 0) { ++ const currentType = pendingTypes.shift(); ++ if (reachableTypes.has(currentType)) { ++ continue; ++ } ++ reachableTypes.add(currentType); ++ // Walk prototype chain to catch inherited metadata ++ // (e.g. PartialType / OmitType dynamic parents) ++ let ancestor = currentType; ++ while (ancestor && ancestor !== Function.prototype && ancestor !== Object) { ++ for (const typeMetadata of getTypeMetadataByTarget(ancestor)) { ++ for (const property of typeMetadata.properties || []) { ++ markTypeForVisit(resolveTypeFn(property.typeFn)); ++ for (const argument of property.methodArgs || []) { ++ markTypeForVisit(resolveTypeFn(argument.typeFn)); ++ } ++ } ++ for (const interfaceType of (0, get_interfaces_array_util_1.getInterfacesArray)(typeMetadata.interfaces)) { ++ markTypeForVisit(interfaceType); ++ } ++ } ++ ancestor = Object.getPrototypeOf(ancestor); ++ // Ancestors with registered metadata must also be in the ++ // reachable set for field resolution to work ++ if (ancestor && ancestor !== Function.prototype && ancestor !== Object ++ && typeof ancestor === 'function' && !SCALAR_TYPES.includes(ancestor) ++ && !reachableTypes.has(ancestor) && getTypeMetadataByTarget(ancestor).length > 0) { ++ reachableTypes.add(ancestor); ++ } ++ } ++ } ++ }; ++ // Pass 1: follow field references from resolver return types and arguments ++ visitAllPendingTypes(); ++ // Pass 2: include types that implement a reachable interface ++ // (interfaces don't have back-pointers to their implementors) ++ for (const objectTypeMetadata of type_metadata_storage_1.TypeMetadataStorage.getObjectTypesMetadata()) { ++ if ((0, get_interfaces_array_util_1.getInterfacesArray)(objectTypeMetadata.interfaces) ++ .some((interfaceType) => reachableTypes.has(interfaceType))) { ++ markTypeForVisit(objectTypeMetadata.target); ++ } ++ } ++ visitAllPendingTypes(); ++ // Pass 3: include entire unions when any member is reachable ++ // (union membership is stored on the union, not on the member types) ++ for (const unionMetadata of type_metadata_storage_1.TypeMetadataStorage.getUnionsMetadata()) { ++ if (reachableTypes.has(unionMetadata.id)) { ++ continue; ++ } ++ const memberTypes = resolveTypeFn(unionMetadata.typesFn) || []; ++ if (memberTypes.some((memberType) => reachableTypes.has(memberType))) { ++ reachableTypes.add(unionMetadata.id); ++ for (const memberType of memberTypes) { ++ markTypeForVisit(memberType); ++ } ++ } ++ } ++ visitAllPendingTypes(); ++ return reachableTypes; ++ } + addScalarTypeByClassRef(classRef, scalarsMap) { + try { + const scalarNameMetadata = Reflect.getMetadata(graphql_constants_1.SCALAR_NAME_METADATA, classRef); +diff --git a/dist/schema-builder/services/orphaned-reference.registry.js b/dist/schema-builder/services/orphaned-reference.registry.js +index f63bf917164e05b6a363d40e871303863800c4f3..101c67ee876a8c9758a3ed35fdb8b656a7a873ba 100644 +--- a/dist/schema-builder/services/orphaned-reference.registry.js ++++ b/dist/schema-builder/services/orphaned-reference.registry.js +@@ -21,6 +21,9 @@ let OrphanedReferenceRegistry = class OrphanedReferenceRegistry { + getAll() { + return [...this.registry.values()]; + } ++ clear() { ++ this.registry.clear(); ++ } + }; + exports.OrphanedReferenceRegistry = OrphanedReferenceRegistry; + exports.OrphanedReferenceRegistry = OrphanedReferenceRegistry = tslib_1.__decorate([ diff --git a/dist/schema-builder/storages/type-definitions.storage.js b/dist/schema-builder/storages/type-definitions.storage.js -index a19dee7..466ee86 100644 +index a19dee7a15b355a83124479f7e5e6cb91795070d..d28bdc8f03b4e77db93396ff28fb47d8176f0c21 100644 --- a/dist/schema-builder/storages/type-definitions.storage.js +++ b/dist/schema-builder/storages/type-definitions.storage.js -@@ -81,6 +81,10 @@ let TypeDefinitionsStorage = class TypeDefinitionsStorage { +@@ -81,6 +81,15 @@ let TypeDefinitionsStorage = class TypeDefinitionsStorage { } return; } + clear() { ++ // Only invalidate the lazy link caches, NOT the type Maps. ++ // The Maps accumulate types from all schema builds. This is ++ // needed because resolveType closures from earlier schemas ++ // look up types in objectTypeDefinitions at query time. ++ // The add* methods use Map.set() so duplicates are overwritten. + this.inputTypeDefinitionsLinks = null; + this.outputTypeDefinitionsLinks = null; + } @@ -41,26 +193,96 @@ index a19dee7..466ee86 100644 exports.TypeDefinitionsStorage = TypeDefinitionsStorage; exports.TypeDefinitionsStorage = TypeDefinitionsStorage = tslib_1.__decorate([ diff --git a/dist/schema-builder/type-definitions.generator.js b/dist/schema-builder/type-definitions.generator.js -index d5423f1..701a3b2 100644 +index d5423f1603ea2dbe32f70778cb715de648960cf3..47c80de38dc9045b1ee043dd6f74bb22a66d3b4a 100644 --- a/dist/schema-builder/type-definitions.generator.js +++ b/dist/schema-builder/type-definitions.generator.js -@@ -26,6 +26,9 @@ let TypeDefinitionsGenerator = class TypeDefinitionsGenerator { - this.generateObjectTypeDefs(options); - this.generateInputTypeDefs(options); +@@ -19,25 +19,37 @@ let TypeDefinitionsGenerator = class TypeDefinitionsGenerator { + this.interfaceDefinitionFactory = interfaceDefinitionFactory; + this.unionDefinitionFactory = unionDefinitionFactory; } +- generate(options) { +- this.generateUnionDefs(); ++ generate(options, reachableTypes) { ++ this.generateUnionDefs(reachableTypes); + this.generateEnumDefs(); +- this.generateInterfaceDefs(options); +- this.generateObjectTypeDefs(options); +- this.generateInputTypeDefs(options); ++ this.generateInterfaceDefs(options, reachableTypes); ++ this.generateObjectTypeDefs(options, reachableTypes); ++ this.generateInputTypeDefs(options, reachableTypes); + } +- generateInputTypeDefs(options) { +- const metadata = type_metadata_storage_1.TypeMetadataStorage.getInputTypesMetadata(); + clearTypeDefinitionStorage() { + this.typeDefinitionsStorage.clear(); + } - generateInputTypeDefs(options) { - const metadata = type_metadata_storage_1.TypeMetadataStorage.getInputTypesMetadata(); ++ generateInputTypeDefs(options, reachableTypes) { ++ let metadata = type_metadata_storage_1.TypeMetadataStorage.getInputTypesMetadata(); ++ if (reachableTypes) { ++ metadata = metadata.filter((inputMetadata) => reachableTypes.has(inputMetadata.target)); ++ } const inputTypeDefs = metadata.map((metadata) => this.inputTypeDefinitionFactory.create(metadata, options)); + this.typeDefinitionsStorage.addInputTypes(inputTypeDefs); + } +- generateObjectTypeDefs(options) { +- const metadata = type_metadata_storage_1.TypeMetadataStorage.getObjectTypesMetadata(); ++ generateObjectTypeDefs(options, reachableTypes) { ++ let metadata = type_metadata_storage_1.TypeMetadataStorage.getObjectTypesMetadata(); ++ if (reachableTypes) { ++ metadata = metadata.filter((objectMetadata) => reachableTypes.has(objectMetadata.target)); ++ } + const objectTypeDefs = metadata.map((metadata) => this.objectTypeDefinitionFactory.create(metadata, options)); + this.typeDefinitionsStorage.addObjectTypes(objectTypeDefs); + } +- generateInterfaceDefs(options) { +- const metadata = type_metadata_storage_1.TypeMetadataStorage.getInterfacesMetadata(); ++ generateInterfaceDefs(options, reachableTypes) { ++ let metadata = type_metadata_storage_1.TypeMetadataStorage.getInterfacesMetadata(); ++ if (reachableTypes) { ++ metadata = metadata.filter((interfaceMetadata) => reachableTypes.has(interfaceMetadata.target)); ++ } + const interfaceDefs = metadata.map((metadata) => this.interfaceDefinitionFactory.create(metadata, options)); + this.typeDefinitionsStorage.addInterfaces(interfaceDefs); + } +@@ -46,8 +58,22 @@ let TypeDefinitionsGenerator = class TypeDefinitionsGenerator { + const enumDefs = metadata.map((metadata) => this.enumDefinitionFactory.create(metadata)); + this.typeDefinitionsStorage.addEnums(enumDefs); + } +- generateUnionDefs() { +- const metadata = type_metadata_storage_1.TypeMetadataStorage.getUnionsMetadata(); ++ generateUnionDefs(reachableTypes) { ++ let metadata = type_metadata_storage_1.TypeMetadataStorage.getUnionsMetadata(); ++ if (reachableTypes) { ++ metadata = metadata.filter((unionMetadata) => { ++ if (reachableTypes.has(unionMetadata.id)) { ++ return true; ++ } ++ try { ++ const memberTypes = unionMetadata.typesFn(); ++ return memberTypes.some((memberType) => reachableTypes.has(memberType)); ++ } ++ catch (_) { ++ return true; ++ } ++ }); ++ } + const unionDefs = metadata.map((metadata) => this.unionDefinitionFactory.create(metadata)); + this.typeDefinitionsStorage.addUnions(unionDefs); + } diff --git a/dist/services/resolvers-explorer.service.js b/dist/services/resolvers-explorer.service.js -index 1234567..abcdefg 100644 +index 1cc43269cd0c4fbe446789b38970118f0c1856c7..3eeb77fcd3c78a134896faa3424209abc47b971a 100644 --- a/dist/services/resolvers-explorer.service.js +++ b/dist/services/resolvers-explorer.service.js -@@ -43,6 +43,15 @@ let ResolversExplorerService = ResolversExplorerService_1 = class ResolversExplo - filterResolvers(gqlAdapter, wrapper, moduleRef) { - const { instance } = wrapper; +@@ -21,6 +21,7 @@ const graphql_constants_1 = require("../graphql.constants"); + const decorate_field_resolver_util_1 = require("../utils/decorate-field-resolver.util"); + const extract_metadata_util_1 = require("../utils/extract-metadata.util"); + const base_explorer_service_1 = require("./base-explorer.service"); ++const RESOLVER_SCHEMA_SCOPE_KEY = 'RESOLVER_SCHEMA_SCOPE'; + let ResolversExplorerService = ResolversExplorerService_1 = class ResolversExplorerService extends base_explorer_service_1.BaseExplorerService { + constructor(modulesContainer, metadataScanner, externalContextCreator, gqlOptions, moduleRef, serializedGraph) { + super(); +@@ -45,6 +46,15 @@ let ResolversExplorerService = ResolversExplorerService_1 = class ResolversExplo if (!instance) { return undefined; } @@ -68,25 +290,27 @@ index 1234567..abcdefg 100644 + if (resolverSchemaScope && wrapper.metatype) { + // Default to 'metadata' for unscoped resolvers (e.g. nestjs-query auto-generated CRUD) + // TODO: remove this fallback once nestjs-query is deprecated -+ const scope = Reflect.getMetadata('RESOLVER_SCHEMA_SCOPE', wrapper.metatype) || 'metadata'; -+ if (scope !== resolverSchemaScope) { ++ const resolverScope = Reflect.getMetadata(RESOLVER_SCHEMA_SCOPE_KEY, wrapper.metatype) || 'metadata'; ++ if (resolverScope !== resolverSchemaScope) { + return undefined; + } + } const prototype = Object.getPrototypeOf(instance); -@@ -147,5 +154,14 @@ let ResolversExplorerService = ResolversExplorerService_1 = class ResolversExplo + const predicate = (resolverType, isReferenceResolver, isPropertyResolver) => (0, shared_utils_1.isUndefined)(resolverType) || + (!isReferenceResolver && +@@ -147,6 +157,15 @@ let ResolversExplorerService = ResolversExplorerService_1 = class ResolversExplo getAllCtors() { const modules = this.getModules(this.modulesContainer, this.gqlOptions.include || []); const resolvers = this.flatMap(modules, this.mapToCtor).filter(Boolean); -- return resolvers; + const resolverSchemaScope = this.gqlOptions.resolverSchemaScope; + if (resolverSchemaScope) { -+ return resolvers.filter((ctor) => { ++ return resolvers.filter((resolverConstructor) => { + // Default to 'metadata' for unscoped resolvers (e.g. nestjs-query auto-generated CRUD) + // TODO: remove this fallback once nestjs-query is deprecated -+ const scope = Reflect.getMetadata('RESOLVER_SCHEMA_SCOPE', ctor) || 'metadata'; -+ return scope === resolverSchemaScope; ++ const resolverScope = Reflect.getMetadata(RESOLVER_SCHEMA_SCOPE_KEY, resolverConstructor) || 'metadata'; ++ return resolverScope === resolverSchemaScope; + }); + } -+ return resolvers; + return resolvers; } + mapToCtor(wrapper) { diff --git a/packages/twenty-server/src/engine/api/graphql/metadata.module-factory.ts b/packages/twenty-server/src/engine/api/graphql/metadata.module-factory.ts index b5824bd6ab..cab0e94c6f 100644 --- a/packages/twenty-server/src/engine/api/graphql/metadata.module-factory.ts +++ b/packages/twenty-server/src/engine/api/graphql/metadata.module-factory.ts @@ -5,6 +5,7 @@ import { NodeEnvironment } from 'src/engine/core-modules/twenty-config/interface import { useCachedMetadata } from 'src/engine/api/graphql/graphql-config/hooks/use-cached-metadata'; import { MetadataGraphQLApiModule } from 'src/engine/api/graphql/metadata-graphql-api.module'; +import { ClientConfig } from 'src/engine/core-modules/client-config/client-config.entity'; import { type CacheStorageService } from 'src/engine/core-modules/cache-storage/services/cache-storage.service'; import { type ExceptionHandlerService } from 'src/engine/core-modules/exception-handler/exception-handler.service'; import { useDisableIntrospectionAndSuggestionsForUnauthenticatedUsers } from 'src/engine/core-modules/graphql/hooks/use-disable-introspection-and-suggestions-for-unauthenticated-users.hook'; @@ -28,6 +29,9 @@ export const metadataModuleFactory = async ( autoSchemaFile: true, include: [MetadataGraphQLApiModule], resolverSchemaScope: 'metadata', + buildSchemaOptions: { + orphanedTypes: [ClientConfig], + }, renderGraphiQL() { return renderApolloPlayground({ path: 'metadata' }); }, diff --git a/packages/twenty-server/test/integration/graphql/suites/user.integration-spec.ts b/packages/twenty-server/test/integration/graphql/suites/user.integration-spec.ts index a59dbc9e80..27a2bb1d64 100644 --- a/packages/twenty-server/test/integration/graphql/suites/user.integration-spec.ts +++ b/packages/twenty-server/test/integration/graphql/suites/user.integration-spec.ts @@ -104,7 +104,6 @@ describe('deleteUser', () => { workspaceMember(filter: $workspaceMemberFilter) { id userId - userWorkspaceId } } `, diff --git a/yarn.lock b/yarn.lock index 73046067e9..7ba741196a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -11353,7 +11353,7 @@ __metadata: "@nestjs/graphql@patch:@nestjs/graphql@12.1.1#./patches/@nestjs+graphql+12.1.1.patch::locator=twenty-server%40workspace%3Apackages%2Ftwenty-server": version: 12.1.1 - resolution: "@nestjs/graphql@patch:@nestjs/graphql@npm%3A12.1.1#./patches/@nestjs+graphql+12.1.1.patch::version=12.1.1&hash=234fda&locator=twenty-server%40workspace%3Apackages%2Ftwenty-server" + resolution: "@nestjs/graphql@patch:@nestjs/graphql@npm%3A12.1.1#./patches/@nestjs+graphql+12.1.1.patch::version=12.1.1&hash=c6f13a&locator=twenty-server%40workspace%3Apackages%2Ftwenty-server" dependencies: "@graphql-tools/merge": "npm:9.0.1" "@graphql-tools/schema": "npm:10.0.2" @@ -11387,7 +11387,7 @@ __metadata: optional: true ts-morph: optional: true - checksum: 10c0/f17193b0e2a324a1de74813d66eb3473d359f7779b30cf92b9ed5a3f9fb557612306a3ebbbe8f48481a3e95930785207a1b51bf0fdb698c8b83a608112380af9 + checksum: 10c0/807541d7f7d8a3261787c04bd9456ad1a3198645b967ad68371406f5038ec5e5f3dd26912a914cce25465b828e7d1b037558c79461adb93efbc78382424444c2 languageName: node linkType: hard