Skip to content

The open alternative to Salesforce, designed for AI.

refactor: remove "core" naming from views and eliminate converter layer (#18667)

Charles Bochet5c745059add9
diff --git a/packages/twenty-front/scripts/mock-data/generate-views.ts b/packages/twenty-front/scripts/mock-data/generate-views.ts
index 7e09f1f0cd0..9e7c2909cc9 100644
--- a/packages/twenty-front/scripts/mock-data/generate-views.ts
+++ b/packages/twenty-front/scripts/mock-data/generate-views.ts
@@ -1,9 +1,9 @@
/* oxlint-disable no-console, lingui/no-unlocalized-strings */
import { graphqlRequest, writeGeneratedFile } from './utils.js';
-const FIND_ALL_CORE_VIEWS_QUERY = `
- query FindAllCoreViews {
- getCoreViews {
+const FIND_ALL_VIEWS_QUERY = `
+ query FindAllViews {
+ getViews {
id
name
objectMetadataId
@@ -101,19 +101,19 @@ export const generateViews = async (token: string) => {
const data = (await graphqlRequest(
'/metadata',
- FIND_ALL_CORE_VIEWS_QUERY,
+ FIND_ALL_VIEWS_QUERY,
token,
)) as {
- getCoreViews: Record<string, unknown>[];
+ getViews: Record<string, unknown>[];
};
- console.log(` Got ${data.getCoreViews.length} views.`);
+ console.log(` Got ${data.getViews.length} views.`);
writeGeneratedFile(
'metadata/views/mock-views-data.ts',
- 'mockedCoreViews',
- 'CoreViewWithRelations[]',
- "import { type CoreViewWithRelations } from '@/views/types/CoreViewWithRelations';",
- data.getCoreViews,
+ 'mockedViews',
+ 'ViewWithRelations[]',
+ "import { type ViewWithRelations } from '@/views/types/ViewWithRelations';",
+ data.getViews,
);
};
diff --git a/packages/twenty-front/src/generated-metadata/graphql.ts b/packages/twenty-front/src/generated-metadata/graphql.ts
index 95040531b75..feb7e297d8b 100644
--- a/packages/twenty-front/src/generated-metadata/graphql.ts
+++ b/packages/twenty-front/src/generated-metadata/graphql.ts
@@ -954,125 +954,6 @@ export type ConnectionParametersOutput = {
username?: Maybe<Scalars['String']>;
};
-export type CoreView = {
- __typename?: 'CoreView';
- anyFieldFilterValue?: Maybe<Scalars['String']>;
- calendarFieldMetadataId?: Maybe<Scalars['UUID']>;
- calendarLayout?: Maybe<ViewCalendarLayout>;
- createdAt: Scalars['DateTime'];
- createdByUserWorkspaceId?: Maybe<Scalars['UUID']>;
- deletedAt?: Maybe<Scalars['DateTime']>;
- icon: Scalars['String'];
- id: Scalars['UUID'];
- isCompact: Scalars['Boolean'];
- isCustom: Scalars['Boolean'];
- kanbanAggregateOperation?: Maybe<AggregateOperations>;
- kanbanAggregateOperationFieldMetadataId?: Maybe<Scalars['UUID']>;
- key?: Maybe<ViewKey>;
- mainGroupByFieldMetadataId?: Maybe<Scalars['UUID']>;
- name: Scalars['String'];
- objectMetadataId: Scalars['UUID'];
- openRecordIn: ViewOpenRecordIn;
- position: Scalars['Float'];
- shouldHideEmptyGroups: Scalars['Boolean'];
- type: ViewType;
- updatedAt: Scalars['DateTime'];
- viewFieldGroups: Array<CoreViewFieldGroup>;
- viewFields: Array<CoreViewField>;
- viewFilterGroups: Array<CoreViewFilterGroup>;
- viewFilters: Array<CoreViewFilter>;
- viewGroups: Array<CoreViewGroup>;
- viewSorts: Array<CoreViewSort>;
- visibility: ViewVisibility;
- workspaceId: Scalars['UUID'];
-};
-
-export type CoreViewField = {
- __typename?: 'CoreViewField';
- aggregateOperation?: Maybe<AggregateOperations>;
- createdAt: Scalars['DateTime'];
- deletedAt?: Maybe<Scalars['DateTime']>;
- fieldMetadataId: Scalars['UUID'];
- id: Scalars['UUID'];
- isOverridden: Scalars['Boolean'];
- isVisible: Scalars['Boolean'];
- position: Scalars['Float'];
- size: Scalars['Float'];
- updatedAt: Scalars['DateTime'];
- viewFieldGroupId?: Maybe<Scalars['UUID']>;
- viewId: Scalars['UUID'];
- workspaceId: Scalars['UUID'];
-};
-
-export type CoreViewFieldGroup = {
- __typename?: 'CoreViewFieldGroup';
- createdAt: Scalars['DateTime'];
- deletedAt?: Maybe<Scalars['DateTime']>;
- id: Scalars['UUID'];
- isOverridden: Scalars['Boolean'];
- isVisible: Scalars['Boolean'];
- name: Scalars['String'];
- position: Scalars['Float'];
- updatedAt: Scalars['DateTime'];
- viewFields: Array<CoreViewField>;
- viewId: Scalars['UUID'];
- workspaceId: Scalars['UUID'];
-};
-
-export type CoreViewFilter = {
- __typename?: 'CoreViewFilter';
- createdAt: Scalars['DateTime'];
- deletedAt?: Maybe<Scalars['DateTime']>;
- fieldMetadataId: Scalars['UUID'];
- id: Scalars['UUID'];
- operand: ViewFilterOperand;
- positionInViewFilterGroup?: Maybe<Scalars['Float']>;
- subFieldName?: Maybe<Scalars['String']>;
- updatedAt: Scalars['DateTime'];
- value: Scalars['JSON'];
- viewFilterGroupId?: Maybe<Scalars['UUID']>;
- viewId: Scalars['UUID'];
- workspaceId: Scalars['UUID'];
-};
-
-export type CoreViewFilterGroup = {
- __typename?: 'CoreViewFilterGroup';
- createdAt: Scalars['DateTime'];
- deletedAt?: Maybe<Scalars['DateTime']>;
- id: Scalars['UUID'];
- logicalOperator: ViewFilterGroupLogicalOperator;
- parentViewFilterGroupId?: Maybe<Scalars['UUID']>;
- positionInViewFilterGroup?: Maybe<Scalars['Float']>;
- updatedAt: Scalars['DateTime'];
- viewId: Scalars['UUID'];
- workspaceId: Scalars['UUID'];
-};
-
-export type CoreViewGroup = {
- __typename?: 'CoreViewGroup';
- createdAt: Scalars['DateTime'];
- deletedAt?: Maybe<Scalars['DateTime']>;
- 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<Scalars['DateTime']>;
- direction: ViewSortDirection;
- fieldMetadataId: Scalars['UUID'];
- id: Scalars['UUID'];
- updatedAt: Scalars['DateTime'];
- viewId: Scalars['UUID'];
- workspaceId: Scalars['UUID'];
-};
-
export type CreateAgentInput = {
description?: InputMaybe<Scalars['String']>;
evaluationInputs?: InputMaybe<Array<Scalars['String']>>;
@@ -2484,20 +2365,13 @@ export type Mutation = {
createApprovedAccessDomain: ApprovedAccessDomain;
createChatThread: AgentChatThread;
createCommandMenuItem: CommandMenuItem;
- createCoreView: CoreView;
- createCoreViewField: CoreViewField;
- createCoreViewFieldGroup: CoreViewFieldGroup;
- createCoreViewFilter: CoreViewFilter;
- createCoreViewFilterGroup: CoreViewFilterGroup;
- createCoreViewGroup: CoreViewGroup;
- createCoreViewSort: CoreViewSort;
createDatabaseConfigVariable: Scalars['Boolean'];
createDevelopmentApplication: DevelopmentApplication;
createEmailingDomain: EmailingDomain;
createFrontComponent: FrontComponent;
- createManyCoreViewFieldGroups: Array<CoreViewFieldGroup>;
- createManyCoreViewFields: Array<CoreViewField>;
- createManyCoreViewGroups: Array<CoreViewGroup>;
+ createManyViewFieldGroups: Array<ViewFieldGroup>;
+ createManyViewFields: Array<ViewField>;
+ createManyViewGroups: Array<ViewGroup>;
createNavigationMenuItem: NavigationMenuItem;
createOIDCIdentityProvider: SetupSso;
createObjectEvent: Analytics;
@@ -2513,19 +2387,19 @@ export type Mutation = {
createPublicDomain: PublicDomain;
createSAMLIdentityProvider: SetupSso;
createSkill: Skill;
+ createView: View;
+ createViewField: ViewField;
+ createViewFieldGroup: ViewFieldGroup;
+ createViewFilter: ViewFilter;
+ createViewFilterGroup: ViewFilterGroup;
+ createViewGroup: ViewGroup;
+ createViewSort: ViewSort;
createWebhook: Webhook;
deactivateSkill: Skill;
deleteApplicationRegistration: Scalars['Boolean'];
deleteApplicationRegistrationVariable: Scalars['Boolean'];
deleteApprovedAccessDomain: Scalars['Boolean'];
deleteCommandMenuItem: CommandMenuItem;
- deleteCoreView: Scalars['Boolean'];
- deleteCoreViewField: CoreViewField;
- deleteCoreViewFieldGroup: CoreViewFieldGroup;
- deleteCoreViewFilter: CoreViewFilter;
- deleteCoreViewFilterGroup: Scalars['Boolean'];
- deleteCoreViewGroup: CoreViewGroup;
- deleteCoreViewSort: Scalars['Boolean'];
deleteCurrentWorkspace: Workspace;
deleteDatabaseConfigVariable: Scalars['Boolean'];
deleteEmailingDomain: Scalars['Boolean'];
@@ -2543,18 +2417,25 @@ export type Mutation = {
deleteTwoFactorAuthenticationMethod: DeleteTwoFactorAuthenticationMethod;
deleteUser: User;
deleteUserFromWorkspace: UserWorkspace;
+ deleteView: Scalars['Boolean'];
+ deleteViewField: ViewField;
+ deleteViewFieldGroup: ViewFieldGroup;
+ deleteViewFilter: ViewFilter;
+ deleteViewFilterGroup: Scalars['Boolean'];
+ deleteViewGroup: ViewGroup;
+ deleteViewSort: Scalars['Boolean'];
deleteWebhook: Webhook;
deleteWorkspaceInvitation: Scalars['String'];
- destroyCoreView: Scalars['Boolean'];
- destroyCoreViewField: CoreViewField;
- destroyCoreViewFieldGroup: CoreViewFieldGroup;
- destroyCoreViewFilter: CoreViewFilter;
- destroyCoreViewFilterGroup: Scalars['Boolean'];
- destroyCoreViewGroup: CoreViewGroup;
- destroyCoreViewSort: Scalars['Boolean'];
destroyPageLayout: Scalars['Boolean'];
destroyPageLayoutTab: Scalars['Boolean'];
destroyPageLayoutWidget: Scalars['Boolean'];
+ destroyView: Scalars['Boolean'];
+ destroyViewField: ViewField;
+ destroyViewFieldGroup: ViewFieldGroup;
+ destroyViewFilter: ViewFilter;
+ destroyViewFilterGroup: Scalars['Boolean'];
+ destroyViewGroup: ViewGroup;
+ destroyViewSort: Scalars['Boolean'];
disablePostgresProxy: PostgresCredentials;
duplicateDashboard: DuplicatedDashboard;
editSSOIdentityProvider: EditSso;
@@ -2609,13 +2490,6 @@ export type Mutation = {
updateApplicationRegistration: ApplicationRegistration;
updateApplicationRegistrationVariable: ApplicationRegistrationVariable;
updateCommandMenuItem: CommandMenuItem;
- updateCoreView: CoreView;
- updateCoreViewField: CoreViewField;
- updateCoreViewFieldGroup: CoreViewFieldGroup;
- updateCoreViewFilter: CoreViewFilter;
- updateCoreViewFilterGroup: CoreViewFilterGroup;
- updateCoreViewGroup: CoreViewGroup;
- updateCoreViewSort: CoreViewSort;
updateDatabaseConfigVariable: Scalars['Boolean'];
updateFrontComponent: FrontComponent;
updateLabPublicFeatureFlag: FeatureFlag;
@@ -2633,6 +2507,13 @@ export type Mutation = {
updatePasswordViaResetToken: InvalidatePassword;
updateSkill: Skill;
updateUserEmail: Scalars['Boolean'];
+ updateView: View;
+ updateViewField: ViewField;
+ updateViewFieldGroup: ViewFieldGroup;
+ updateViewFilter: ViewFilter;
+ updateViewFilterGroup: ViewFilterGroup;
+ updateViewGroup: ViewGroup;
+ updateViewSort: ViewSort;
updateWebhook: Webhook;
updateWorkspace: Workspace;
updateWorkspaceFeatureFlag: Scalars['Boolean'];
@@ -2647,7 +2528,7 @@ export type Mutation = {
uploadWorkspaceLogo: FileWithSignedUrl;
uploadWorkspaceMemberProfilePicture: FileWithSignedUrl;
upsertFieldPermissions: Array<FieldPermission>;
- upsertFieldsWidget: CoreView;
+ upsertFieldsWidget: View;
upsertObjectPermissions: Array<ObjectPermission>;
upsertPermissionFlags: Array<PermissionFlag>;
upsertRowLevelPermissionPredicates: UpsertRowLevelPermissionPredicatesResult;
@@ -2734,41 +2615,6 @@ export type MutationCreateCommandMenuItemArgs = {
};
-export type MutationCreateCoreViewArgs = {
- input: CreateViewInput;
-};
-
-
-export type MutationCreateCoreViewFieldArgs = {
- input: CreateViewFieldInput;
-};
-
-
-export type MutationCreateCoreViewFieldGroupArgs = {
- input: CreateViewFieldGroupInput;
-};
-
-
-export type MutationCreateCoreViewFilterArgs = {
- input: CreateViewFilterInput;
-};
-
-
-export type MutationCreateCoreViewFilterGroupArgs = {
- input: CreateViewFilterGroupInput;
-};
-
-
-export type MutationCreateCoreViewGroupArgs = {
- input: CreateViewGroupInput;
-};
-
-
-export type MutationCreateCoreViewSortArgs = {
- input: CreateViewSortInput;
-};
-
-
export type MutationCreateDatabaseConfigVariableArgs = {
key: Scalars['String'];
value: Scalars['JSON'];
@@ -2792,17 +2638,17 @@ export type MutationCreateFrontComponentArgs = {
};
-export type MutationCreateManyCoreViewFieldGroupsArgs = {
+export type MutationCreateManyViewFieldGroupsArgs = {
inputs: Array<CreateViewFieldGroupInput>;
};
-export type MutationCreateManyCoreViewFieldsArgs = {
+export type MutationCreateManyViewFieldsArgs = {
inputs: Array<CreateViewFieldInput>;
};
-export type MutationCreateManyCoreViewGroupsArgs = {
+export type MutationCreateManyViewGroupsArgs = {
inputs: Array<CreateViewGroupInput>;
};
@@ -2885,68 +2731,68 @@ export type MutationCreateSkillArgs = {
};
-export type MutationCreateWebhookArgs = {
- input: CreateWebhookInput;
+export type MutationCreateViewArgs = {
+ input: CreateViewInput;
};
-export type MutationDeactivateSkillArgs = {
- id: Scalars['UUID'];
+export type MutationCreateViewFieldArgs = {
+ input: CreateViewFieldInput;
};
-export type MutationDeleteApplicationRegistrationArgs = {
- id: Scalars['String'];
+export type MutationCreateViewFieldGroupArgs = {
+ input: CreateViewFieldGroupInput;
};
-export type MutationDeleteApplicationRegistrationVariableArgs = {
- id: Scalars['String'];
+export type MutationCreateViewFilterArgs = {
+ input: CreateViewFilterInput;
};
-export type MutationDeleteApprovedAccessDomainArgs = {
- input: DeleteApprovedAccessDomainInput;
+export type MutationCreateViewFilterGroupArgs = {
+ input: CreateViewFilterGroupInput;
};
-export type MutationDeleteCommandMenuItemArgs = {
- id: Scalars['UUID'];
+export type MutationCreateViewGroupArgs = {
+ input: CreateViewGroupInput;
};
-export type MutationDeleteCoreViewArgs = {
- id: Scalars['String'];
+export type MutationCreateViewSortArgs = {
+ input: CreateViewSortInput;
};
-export type MutationDeleteCoreViewFieldArgs = {
- input: DeleteViewFieldInput;
+export type MutationCreateWebhookArgs = {
+ input: CreateWebhookInput;
};
-export type MutationDeleteCoreViewFieldGroupArgs = {
- input: DeleteViewFieldGroupInput;
+export type MutationDeactivateSkillArgs = {
+ id: Scalars['UUID'];
};
-export type MutationDeleteCoreViewFilterArgs = {
- input: DeleteViewFilterInput;
+export type MutationDeleteApplicationRegistrationArgs = {
+ id: Scalars['String'];
};
-export type MutationDeleteCoreViewFilterGroupArgs = {
+export type MutationDeleteApplicationRegistrationVariableArgs = {
id: Scalars['String'];
};
-export type MutationDeleteCoreViewGroupArgs = {
- input: DeleteViewGroupInput;
+export type MutationDeleteApprovedAccessDomainArgs = {
+ input: DeleteApprovedAccessDomainInput;
};
-export type MutationDeleteCoreViewSortArgs = {
- input: DeleteViewSortInput;
+export type MutationDeleteCommandMenuItemArgs = {
+ id: Scalars['UUID'];
};
@@ -3026,48 +2872,48 @@ export type MutationDeleteUserFromWorkspaceArgs = {
};
-export type MutationDeleteWebhookArgs = {
- id: Scalars['UUID'];
+export type MutationDeleteViewArgs = {
+ id: Scalars['String'];
};
-export type MutationDeleteWorkspaceInvitationArgs = {
- appTokenId: Scalars['String'];
+export type MutationDeleteViewFieldArgs = {
+ input: DeleteViewFieldInput;
};
-export type MutationDestroyCoreViewArgs = {
- id: Scalars['String'];
+export type MutationDeleteViewFieldGroupArgs = {
+ input: DeleteViewFieldGroupInput;
};
-export type MutationDestroyCoreViewFieldArgs = {
- input: DestroyViewFieldInput;
+export type MutationDeleteViewFilterArgs = {
+ input: DeleteViewFilterInput;
};
-export type MutationDestroyCoreViewFieldGroupArgs = {
- input: DestroyViewFieldGroupInput;
+export type MutationDeleteViewFilterGroupArgs = {
+ id: Scalars['String'];
};
-export type MutationDestroyCoreViewFilterArgs = {
- input: DestroyViewFilterInput;
+export type MutationDeleteViewGroupArgs = {
+ input: DeleteViewGroupInput;
};
-export type MutationDestroyCoreViewFilterGroupArgs = {
- id: Scalars['String'];
+export type MutationDeleteViewSortArgs = {
+ input: DeleteViewSortInput;
};
-export type MutationDestroyCoreViewGroupArgs = {
- input: DestroyViewGroupInput;
+export type MutationDeleteWebhookArgs = {
+ id: Scalars['UUID'];
};
-export type MutationDestroyCoreViewSortArgs = {
- input: DestroyViewSortInput;
+export type MutationDeleteWorkspaceInvitationArgs = {
+ appTokenId: Scalars['String'];
};
@@ -3086,6 +2932,41 @@ export type MutationDestroyPageLayoutWidgetArgs = {
};
+export type MutationDestroyViewArgs = {
+ id: Scalars['String'];
+};
+
+
+export type MutationDestroyViewFieldArgs = {
+ input: DestroyViewFieldInput;
+};
+
+
+export type MutationDestroyViewFieldGroupArgs = {
+ input: DestroyViewFieldGroupInput;
+};
+
+
+export type MutationDestroyViewFilterArgs = {
+ input: DestroyViewFilterInput;
+};
+
+
+export type MutationDestroyViewFilterGroupArgs = {
+ id: Scalars['String'];
+};
+
+
+export type MutationDestroyViewGroupArgs = {
+ input: DestroyViewGroupInput;
+};
+
+
+export type MutationDestroyViewSortArgs = {
+ input: DestroyViewSortInput;
+};
+
+
export type MutationDuplicateDashboardArgs = {
id: Scalars['UUID'];
};
@@ -3343,43 +3224,6 @@ export type MutationUpdateCommandMenuItemArgs = {
};
-export type MutationUpdateCoreViewArgs = {
- id: Scalars['String'];
- input: UpdateViewInput;
-};
-
-
-export type MutationUpdateCoreViewFieldArgs = {
- input: UpdateViewFieldInput;
-};
-
-
-export type MutationUpdateCoreViewFieldGroupArgs = {
- input: UpdateViewFieldGroupInput;
-};
-
-
-export type MutationUpdateCoreViewFilterArgs = {
- input: UpdateViewFilterInput;
-};
-
-
-export type MutationUpdateCoreViewFilterGroupArgs = {
- id: Scalars['String'];
- input: UpdateViewFilterGroupInput;
-};
-
-
-export type MutationUpdateCoreViewGroupArgs = {
- input: UpdateViewGroupInput;
-};
-
-
-export type MutationUpdateCoreViewSortArgs = {
- input: UpdateViewSortInput;
-};
-
-
export type MutationUpdateDatabaseConfigVariableArgs = {
key: Scalars['String'];
value: Scalars['JSON'];
@@ -3474,6 +3318,43 @@ export type MutationUpdateUserEmailArgs = {
};
+export type MutationUpdateViewArgs = {
+ id: Scalars['String'];
+ input: UpdateViewInput;
+};
+
+
+export type MutationUpdateViewFieldArgs = {
+ input: UpdateViewFieldInput;
+};
+
+
+export type MutationUpdateViewFieldGroupArgs = {
+ input: UpdateViewFieldGroupInput;
+};
+
+
+export type MutationUpdateViewFilterArgs = {
+ input: UpdateViewFilterInput;
+};
+
+
+export type MutationUpdateViewFilterGroupArgs = {
+ id: Scalars['String'];
+ input: UpdateViewFilterGroupInput;
+};
+
+
+export type MutationUpdateViewGroupArgs = {
+ input: UpdateViewGroupInput;
+};
+
+
+export type MutationUpdateViewSortArgs = {
+ input: UpdateViewSortInput;
+};
+
+
export type MutationUpdateWebhookArgs = {
input: UpdateWebhookInput;
};
@@ -4107,20 +3988,6 @@ export type Query = {
getAvailablePackages: Scalars['JSON'];
getConfigVariablesGrouped: ConfigVariables;
getConnectedImapSmtpCaldavAccount: ConnectedImapSmtpCaldavAccount;
- getCoreView?: Maybe<CoreView>;
- getCoreViewField?: Maybe<CoreViewField>;
- getCoreViewFieldGroup?: Maybe<CoreViewFieldGroup>;
- getCoreViewFieldGroups: Array<CoreViewFieldGroup>;
- getCoreViewFields: Array<CoreViewField>;
- getCoreViewFilter?: Maybe<CoreViewFilter>;
- getCoreViewFilterGroup?: Maybe<CoreViewFilterGroup>;
- getCoreViewFilterGroups: Array<CoreViewFilterGroup>;
- getCoreViewFilters: Array<CoreViewFilter>;
- getCoreViewGroup?: Maybe<CoreViewGroup>;
- getCoreViewGroups: Array<CoreViewGroup>;
- getCoreViewSort?: Maybe<CoreViewSort>;
- getCoreViewSorts: Array<CoreViewSort>;
- getCoreViews: Array<CoreView>;
getDatabaseConfigVariable: ConfigVariable;
getEmailingDomains: Array<EmailingDomain>;
getIndicatorHealthStatus: AdminPanelHealthServiceData;
@@ -4141,6 +4008,20 @@ export type Query = {
getSystemHealthStatus: SystemHealth;
getToolIndex: Array<ToolIndexEntry>;
getToolInputSchema?: Maybe<Scalars['JSON']>;
+ getView?: Maybe<View>;
+ getViewField?: Maybe<ViewField>;
+ getViewFieldGroup?: Maybe<ViewFieldGroup>;
+ getViewFieldGroups: Array<ViewFieldGroup>;
+ getViewFields: Array<ViewField>;
+ getViewFilter?: Maybe<ViewFilter>;
+ getViewFilterGroup?: Maybe<ViewFilterGroup>;
+ getViewFilterGroups: Array<ViewFilterGroup>;
+ getViewFilters: Array<ViewFilter>;
+ getViewGroup?: Maybe<ViewGroup>;
+ getViewGroups: Array<ViewGroup>;
+ getViewSort?: Maybe<ViewSort>;
+ getViewSorts: Array<ViewSort>;
+ getViews: Array<View>;
index: Index;
indexMetadatas: IndexConnection;
lineChartData: LineChartData;
@@ -4325,144 +4206,144 @@ export type QueryGetConnectedImapSmtpCaldavAccountArgs = {
};
-export type QueryGetCoreViewArgs = {
- id: Scalars['String'];
+export type QueryGetDatabaseConfigVariableArgs = {
+ key: Scalars['String'];
};
-export type QueryGetCoreViewFieldArgs = {
- id: Scalars['String'];
+export type QueryGetIndicatorHealthStatusArgs = {
+ indicatorId: HealthIndicatorId;
};
-export type QueryGetCoreViewFieldGroupArgs = {
- id: Scalars['String'];
+export type QueryGetLogicFunctionSourceCodeArgs = {
+ input: LogicFunctionIdInput;
};
-export type QueryGetCoreViewFieldGroupsArgs = {
- viewId: Scalars['String'];
+export type QueryGetPageLayoutArgs = {
+ id: Scalars['String'];
};
-export type QueryGetCoreViewFieldsArgs = {
- viewId: Scalars['String'];
+export type QueryGetPageLayoutTabArgs = {
+ id: Scalars['String'];
};
-export type QueryGetCoreViewFilterArgs = {
- id: Scalars['String'];
+export type QueryGetPageLayoutTabsArgs = {
+ pageLayoutId: Scalars['String'];
};
-export type QueryGetCoreViewFilterGroupArgs = {
+export type QueryGetPageLayoutWidgetArgs = {
id: Scalars['String'];
};
-export type QueryGetCoreViewFilterGroupsArgs = {
- viewId?: InputMaybe<Scalars['String']>;
+export type QueryGetPageLayoutWidgetsArgs = {
+ pageLayoutTabId: Scalars['String'];
};
-export type QueryGetCoreViewFiltersArgs = {
- viewId?: InputMaybe<Scalars['String']>;
+export type QueryGetPageLayoutsArgs = {
+ objectMetadataId?: InputMaybe<Scalars['String']>;
+ pageLayoutType?: InputMaybe<PageLayoutType>;
};
-export type QueryGetCoreViewGroupArgs = {
- id: Scalars['String'];
+export type QueryGetPublicWorkspaceDataByDomainArgs = {
+ origin?: InputMaybe<Scalars['String']>;
};
-export type QueryGetCoreViewGroupsArgs = {
- viewId?: InputMaybe<Scalars['String']>;
+export type QueryGetQueueJobsArgs = {
+ limit?: InputMaybe<Scalars['Int']>;
+ offset?: InputMaybe<Scalars['Int']>;
+ queueName: Scalars['String'];
+ state: JobState;
};
-export type QueryGetCoreViewSortArgs = {
- id: Scalars['String'];
+export type QueryGetQueueMetricsArgs = {
+ queueName: Scalars['String'];
+ timeRange?: InputMaybe<QueueMetricsTimeRange>;
};
-export type QueryGetCoreViewSortsArgs = {
- viewId?: InputMaybe<Scalars['String']>;
+export type QueryGetToolInputSchemaArgs = {
+ toolName: Scalars['String'];
};
-export type QueryGetCoreViewsArgs = {
- objectMetadataId?: InputMaybe<Scalars['String']>;
- viewTypes?: InputMaybe<Array<ViewType>>;
+export type QueryGetViewArgs = {
+ id: Scalars['String'];
};
-export type QueryGetDatabaseConfigVariableArgs = {
- key: Scalars['String'];
+export type QueryGetViewFieldArgs = {
+ id: Scalars['String'];
};
-export type QueryGetIndicatorHealthStatusArgs = {
- indicatorId: HealthIndicatorId;
+export type QueryGetViewFieldGroupArgs = {
+ id: Scalars['String'];
};
-export type QueryGetLogicFunctionSourceCodeArgs = {
- input: LogicFunctionIdInput;
+export type QueryGetViewFieldGroupsArgs = {
+ viewId: Scalars['String'];
};
-export type QueryGetPageLayoutArgs = {
- id: Scalars['String'];
+export type QueryGetViewFieldsArgs = {
+ viewId: Scalars['String'];
};
-export type QueryGetPageLayoutTabArgs = {
+export type QueryGetViewFilterArgs = {
id: Scalars['String'];
};
-export type QueryGetPageLayoutTabsArgs = {
- pageLayoutId: Scalars['String'];
+export type QueryGetViewFilterGroupArgs = {
+ id: Scalars['String'];
};
-export type QueryGetPageLayoutWidgetArgs = {
- id: Scalars['String'];
+export type QueryGetViewFilterGroupsArgs = {
+ viewId?: InputMaybe<Scalars['String']>;
};
-export type QueryGetPageLayoutWidgetsArgs = {
- pageLayoutTabId: Scalars['String'];
+export type QueryGetViewFiltersArgs = {
+ viewId?: InputMaybe<Scalars['String']>;
};
-export type QueryGetPageLayoutsArgs = {
- objectMetadataId?: InputMaybe<Scalars['String']>;
- pageLayoutType?: InputMaybe<PageLayoutType>;
+export type QueryGetViewGroupArgs = {
+ id: Scalars['String'];
};
-export type QueryGetPublicWorkspaceDataByDomainArgs = {
- origin?: InputMaybe<Scalars['String']>;
+export type QueryGetViewGroupsArgs = {
+ viewId?: InputMaybe<Scalars['String']>;
};
-export type QueryGetQueueJobsArgs = {
- limit?: InputMaybe<Scalars['Int']>;
- offset?: InputMaybe<Scalars['Int']>;
- queueName: Scalars['String'];
- state: JobState;
+export type QueryGetViewSortArgs = {
+ id: Scalars['String'];
};
-export type QueryGetQueueMetricsArgs = {
- queueName: Scalars['String'];
- timeRange?: InputMaybe<QueueMetricsTimeRange>;
+export type QueryGetViewSortsArgs = {
+ viewId?: InputMaybe<Scalars['String']>;
};
-export type QueryGetToolInputSchemaArgs = {
- toolName: Scalars['String'];
+export type QueryGetViewsArgs = {
+ objectMetadataId?: InputMaybe<Scalars['String']>;
+ viewTypes?: InputMaybe<Array<ViewType>>;
};
@@ -5484,6 +5365,39 @@ export type VersionInfo = {
latestVersion: Scalars['String'];
};
+export type View = {
+ __typename?: 'View';
+ anyFieldFilterValue?: Maybe<Scalars['String']>;
+ calendarFieldMetadataId?: Maybe<Scalars['UUID']>;
+ calendarLayout?: Maybe<ViewCalendarLayout>;
+ createdAt: Scalars['DateTime'];
+ createdByUserWorkspaceId?: Maybe<Scalars['UUID']>;
+ deletedAt?: Maybe<Scalars['DateTime']>;
+ icon: Scalars['String'];
+ id: Scalars['UUID'];
+ isCompact: Scalars['Boolean'];
+ isCustom: Scalars['Boolean'];
+ kanbanAggregateOperation?: Maybe<AggregateOperations>;
+ kanbanAggregateOperationFieldMetadataId?: Maybe<Scalars['UUID']>;
+ key?: Maybe<ViewKey>;
+ mainGroupByFieldMetadataId?: Maybe<Scalars['UUID']>;
+ name: Scalars['String'];
+ objectMetadataId: Scalars['UUID'];
+ openRecordIn: ViewOpenRecordIn;
+ position: Scalars['Float'];
+ shouldHideEmptyGroups: Scalars['Boolean'];
+ type: ViewType;
+ updatedAt: Scalars['DateTime'];
+ viewFieldGroups: Array<ViewFieldGroup>;
+ viewFields: Array<ViewField>;
+ viewFilterGroups: Array<ViewFilterGroup>;
+ viewFilters: Array<ViewFilter>;
+ viewGroups: Array<ViewGroup>;
+ viewSorts: Array<ViewSort>;
+ visibility: ViewVisibility;
+ workspaceId: Scalars['UUID'];
+};
+
export enum ViewCalendarLayout {
DAY = 'DAY',
MONTH = 'MONTH',
@@ -5495,6 +5409,67 @@ export type ViewConfiguration = {
configurationType: WidgetConfigurationType;
};
+export type ViewField = {
+ __typename?: 'ViewField';
+ aggregateOperation?: Maybe<AggregateOperations>;
+ createdAt: Scalars['DateTime'];
+ deletedAt?: Maybe<Scalars['DateTime']>;
+ fieldMetadataId: Scalars['UUID'];
+ id: Scalars['UUID'];
+ isOverridden: Scalars['Boolean'];
+ isVisible: Scalars['Boolean'];
+ position: Scalars['Float'];
+ size: Scalars['Float'];
+ updatedAt: Scalars['DateTime'];
+ viewFieldGroupId?: Maybe<Scalars['UUID']>;
+ viewId: Scalars['UUID'];
+ workspaceId: Scalars['UUID'];
+};
+
+export type ViewFieldGroup = {
+ __typename?: 'ViewFieldGroup';
+ createdAt: Scalars['DateTime'];
+ deletedAt?: Maybe<Scalars['DateTime']>;
+ id: Scalars['UUID'];
+ isOverridden: Scalars['Boolean'];
+ isVisible: Scalars['Boolean'];
+ name: Scalars['String'];
+ position: Scalars['Float'];
+ updatedAt: Scalars['DateTime'];
+ viewFields: Array<ViewField>;
+ viewId: Scalars['UUID'];
+ workspaceId: Scalars['UUID'];
+};
+
+export type ViewFilter = {
+ __typename?: 'ViewFilter';
+ createdAt: Scalars['DateTime'];
+ deletedAt?: Maybe<Scalars['DateTime']>;
+ fieldMetadataId: Scalars['UUID'];
+ id: Scalars['UUID'];
+ operand: ViewFilterOperand;
+ positionInViewFilterGroup?: Maybe<Scalars['Float']>;
+ subFieldName?: Maybe<Scalars['String']>;
+ updatedAt: Scalars['DateTime'];
+ value: Scalars['JSON'];
+ viewFilterGroupId?: Maybe<Scalars['UUID']>;
+ viewId: Scalars['UUID'];
+ workspaceId: Scalars['UUID'];
+};
+
+export type ViewFilterGroup = {
+ __typename?: 'ViewFilterGroup';
+ createdAt: Scalars['DateTime'];
+ deletedAt?: Maybe<Scalars['DateTime']>;
+ id: Scalars['UUID'];
+ logicalOperator: ViewFilterGroupLogicalOperator;
+ parentViewFilterGroupId?: Maybe<Scalars['UUID']>;
+ positionInViewFilterGroup?: Maybe<Scalars['Float']>;
+ updatedAt: Scalars['DateTime'];
+ viewId: Scalars['UUID'];
+ workspaceId: Scalars['UUID'];
+};
+
export enum ViewFilterGroupLogicalOperator {
AND = 'AND',
NOT = 'NOT',
@@ -5520,6 +5495,19 @@ export enum ViewFilterOperand {
VECTOR_SEARCH = 'VECTOR_SEARCH'
}
+export type ViewGroup = {
+ __typename?: 'ViewGroup';
+ createdAt: Scalars['DateTime'];
+ deletedAt?: Maybe<Scalars['DateTime']>;
+ fieldValue: Scalars['String'];
+ id: Scalars['UUID'];
+ isVisible: Scalars['Boolean'];
+ position: Scalars['Float'];
+ updatedAt: Scalars['DateTime'];
+ viewId: Scalars['UUID'];
+ workspaceId: Scalars['UUID'];
+};
+
export enum ViewKey {
INDEX = 'INDEX'
}
@@ -5529,6 +5517,18 @@ export enum ViewOpenRecordIn {
SIDE_PANEL = 'SIDE_PANEL'
}
+export type ViewSort = {
+ __typename?: 'ViewSort';
+ createdAt: Scalars['DateTime'];
+ deletedAt?: Maybe<Scalars['DateTime']>;
+ direction: ViewSortDirection;
+ fieldMetadataId: Scalars['UUID'];
+ id: Scalars['UUID'];
+ updatedAt: Scalars['DateTime'];
+ viewId: Scalars['UUID'];
+ workspaceId: Scalars['UUID'];
+};
+
export enum ViewSortDirection {
ASC = 'ASC',
DESC = 'DESC'
@@ -5678,12 +5678,12 @@ export type Workspace = {
updatedAt: Scalars['DateTime'];
useRecommendedModels: Scalars['Boolean'];
version?: Maybe<Scalars['String']>;
- viewFields?: Maybe<Array<CoreViewField>>;
- viewFilterGroups?: Maybe<Array<CoreViewFilterGroup>>;
- viewFilters?: Maybe<Array<CoreViewFilter>>;
- viewGroups?: Maybe<Array<CoreViewGroup>>;
- viewSorts?: Maybe<Array<CoreViewSort>>;
- views?: Maybe<Array<CoreView>>;
+ viewFields?: Maybe<Array<ViewField>>;
+ viewFilterGroups?: Maybe<Array<ViewFilterGroup>>;
+ viewFilters?: Maybe<Array<ViewFilter>>;
+ viewGroups?: Maybe<Array<ViewGroup>>;
+ viewSorts?: Maybe<Array<ViewSort>>;
+ views?: Maybe<Array<View>>;
workspaceCustomApplication?: Maybe<Application>;
workspaceCustomApplicationId: Scalars['String'];
workspaceMembersCount?: Maybe<Scalars['Float']>;
@@ -6552,7 +6552,7 @@ export type UpsertFieldsWidgetMutationVariables = Exact<{
}>;
-export type UpsertFieldsWidgetMutation = { __typename?: 'Mutation', upsertFieldsWidget: { __typename?: 'CoreView', id: string, name: string, objectMetadataId: string, type: ViewType, key?: ViewKey | null, icon: string, position: number, isCompact: boolean, openRecordIn: ViewOpenRecordIn, kanbanAggregateOperation?: AggregateOperations | null, kanbanAggregateOperationFieldMetadataId?: string | null, mainGroupByFieldMetadataId?: string | null, shouldHideEmptyGroups: boolean, anyFieldFilterValue?: string | null, calendarFieldMetadataId?: string | null, calendarLayout?: ViewCalendarLayout | null, visibility: ViewVisibility, createdByUserWorkspaceId?: string | null, viewFields: Array<{ __typename?: 'CoreViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null }>, viewFieldGroups: Array<{ __typename?: 'CoreViewFieldGroup', id: string, name: string, position: number, isVisible: boolean, viewId: string, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null, viewFields: Array<{ __typename?: 'CoreViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null }> }>, viewFilters: Array<{ __typename?: 'CoreViewFilter', id: string, fieldMetadataId: string, operand: ViewFilterOperand, value: any, viewFilterGroupId?: string | null, positionInViewFilterGroup?: number | null, subFieldName?: string | null, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null }>, viewFilterGroups: Array<{ __typename?: 'CoreViewFilterGroup', id: string, parentViewFilterGroupId?: string | null, logicalOperator: ViewFilterGroupLogicalOperator, positionInViewFilterGroup?: number | null, viewId: string }>, viewSorts: Array<{ __typename?: 'CoreViewSort', id: string, fieldMetadataId: string, direction: ViewSortDirection, viewId: string, createdAt: string, deletedAt?: string | null, updatedAt: string }>, viewGroups: Array<{ __typename?: 'CoreViewGroup', id: string, isVisible: boolean, fieldValue: string, position: number, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null }> } };
+export type UpsertFieldsWidgetMutation = { __typename?: 'Mutation', upsertFieldsWidget: { __typename?: 'View', id: string, name: string, objectMetadataId: string, type: ViewType, key?: ViewKey | null, icon: string, position: number, isCompact: boolean, openRecordIn: ViewOpenRecordIn, kanbanAggregateOperation?: AggregateOperations | null, kanbanAggregateOperationFieldMetadataId?: string | null, mainGroupByFieldMetadataId?: string | null, shouldHideEmptyGroups: boolean, anyFieldFilterValue?: string | null, calendarFieldMetadataId?: string | null, calendarLayout?: ViewCalendarLayout | null, visibility: ViewVisibility, createdByUserWorkspaceId?: string | null, viewFields: Array<{ __typename?: 'ViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null }>, viewFieldGroups: Array<{ __typename?: 'ViewFieldGroup', id: string, name: string, position: number, isVisible: boolean, viewId: string, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null, viewFields: Array<{ __typename?: 'ViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null }> }>, viewFilters: Array<{ __typename?: 'ViewFilter', id: string, fieldMetadataId: string, operand: ViewFilterOperand, value: any, viewFilterGroupId?: string | null, positionInViewFilterGroup?: number | null, subFieldName?: string | null, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null }>, viewFilterGroups: Array<{ __typename?: 'ViewFilterGroup', id: string, parentViewFilterGroupId?: string | null, logicalOperator: ViewFilterGroupLogicalOperator, positionInViewFilterGroup?: number | null, viewId: string }>, viewSorts: Array<{ __typename?: 'ViewSort', id: string, fieldMetadataId: string, direction: ViewSortDirection, viewId: string, createdAt: string, deletedAt?: string | null, updatedAt: string }>, viewGroups: Array<{ __typename?: 'ViewGroup', id: string, isVisible: boolean, fieldValue: string, position: number, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null }> } };
export type FindAllPageLayoutsQueryVariables = Exact<{ [key: string]: never; }>;
@@ -7158,330 +7158,330 @@ export type GetCurrentUserQueryVariables = Exact<{ [key: string]: never; }>;
export type GetCurrentUserQuery = { __typename?: 'Query', currentUser: { __typename?: 'User', id: string, firstName: string, lastName: string, email: string, hasPassword: boolean, canAccessFullAdminPanel: boolean, canImpersonate: boolean, supportUserHash?: string | null, onboardingStatus?: OnboardingStatus | null, userVars?: any | null, workspaceMember?: { __typename?: 'WorkspaceMember', id: string, colorScheme: string, avatarUrl?: string | null, locale?: string | null, userEmail: string, userWorkspaceId?: string | null, timeZone?: string | null, dateFormat?: WorkspaceMemberDateFormatEnum | null, timeFormat?: WorkspaceMemberTimeFormatEnum | null, calendarStartDay?: number | null, numberFormat?: WorkspaceMemberNumberFormatEnum | null, name: { __typename?: 'FullName', firstName: string, lastName: string } } | null, workspaceMembers?: Array<{ __typename?: 'WorkspaceMember', id: string, avatarUrl?: string | null, userEmail: string, userWorkspaceId?: string | null, name: { __typename?: 'FullName', firstName: string, lastName: string } }> | null, deletedWorkspaceMembers?: Array<{ __typename?: 'DeletedWorkspaceMember', id: string, avatarUrl?: string | null, userEmail: string, name: { __typename?: 'FullName', firstName: string, lastName: string } }> | null, currentUserWorkspace?: { __typename?: 'UserWorkspace', id: string, permissionFlags?: Array<PermissionFlagType> | null, objectsPermissions?: Array<{ __typename?: 'ObjectPermission', objectMetadataId: string, canReadObjectRecords?: boolean | null, canUpdateObjectRecords?: boolean | null, canSoftDeleteObjectRecords?: boolean | null, canDestroyObjectRecords?: boolean | null, restrictedFields?: any | null, rowLevelPermissionPredicates?: Array<{ __typename?: 'RowLevelPermissionPredicate', id: string, fieldMetadataId: string, objectMetadataId: string, operand: RowLevelPermissionPredicateOperand, subFieldName?: string | null, workspaceMemberFieldMetadataId?: string | null, workspaceMemberSubFieldName?: string | null, rowLevelPermissionPredicateGroupId?: string | null, positionInRowLevelPermissionPredicateGroup?: number | null, roleId: string, value?: any | null }> | null, rowLevelPermissionPredicateGroups?: Array<{ __typename?: 'RowLevelPermissionPredicateGroup', id: string, parentRowLevelPermissionPredicateGroupId?: string | null, logicalOperator: RowLevelPermissionPredicateGroupLogicalOperator, positionInRowLevelPermissionPredicateGroup?: number | null, roleId: string, objectMetadataId: string }> | null }> | null, twoFactorAuthenticationMethodSummary?: Array<{ __typename?: 'TwoFactorAuthenticationMethodSummary', twoFactorAuthenticationMethodId: string, status: string, strategy: string }> | null } | null, currentWorkspace?: { __typename?: 'Workspace', id: string, displayName?: string | null, logo?: string | null, inviteHash?: string | null, allowImpersonation: boolean, activationStatus: WorkspaceActivationStatus, isPublicInviteLinkEnabled: boolean, isGoogleAuthEnabled: boolean, isMicrosoftAuthEnabled: boolean, isPasswordAuthEnabled: boolean, isGoogleAuthBypassEnabled: boolean, isMicrosoftAuthBypassEnabled: boolean, isPasswordAuthBypassEnabled: boolean, subdomain: string, customDomain?: string | null, hasValidEnterpriseKey: boolean, hasValidSignedEnterpriseKey: boolean, hasValidEnterpriseValidityToken: boolean, isCustomDomainEnabled: boolean, metadataVersion: number, workspaceMembersCount?: number | null, fastModel: string, smartModel: string, aiAdditionalInstructions?: string | null, autoEnableNewAiModels: boolean, disabledAiModelIds?: Array<string> | null, enabledAiModelIds?: Array<string> | null, useRecommendedModels: boolean, isTwoFactorAuthenticationEnforced: boolean, trashRetentionDays: number, eventLogRetentionDays: number, editableProfileFields?: Array<string> | null, workspaceCustomApplication?: { __typename?: 'Application', id: string } | null, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null }, featureFlags?: Array<{ __typename?: 'FeatureFlag', key: FeatureFlagKey, value: boolean }> | null, currentBillingSubscription?: { __typename?: 'BillingSubscription', id: string, status: SubscriptionStatus, interval?: SubscriptionInterval | null, metadata: any, currentPeriodEnd?: string | null, phases: Array<{ __typename?: 'BillingSubscriptionSchedulePhase', start_date: number, end_date: number, items: Array<{ __typename?: 'BillingSubscriptionSchedulePhaseItem', price: string, quantity?: number | null }> }>, billingSubscriptionItems?: Array<{ __typename?: 'BillingSubscriptionItem', id: string, hasReachedCurrentPeriodCap: boolean, quantity?: number | null, stripePriceId: string, billingProduct: { __typename?: 'BillingLicensedProduct', name: string, description: string, images?: Array<string> | null, metadata: { __typename?: 'BillingProductMetadata', productKey: BillingProductKey, planKey: BillingPlanKey, priceUsageBased: BillingUsageType } } | { __typename?: 'BillingMeteredProduct', name: string, description: string, images?: Array<string> | null, metadata: { __typename?: 'BillingProductMetadata', productKey: BillingProductKey, planKey: BillingPlanKey, priceUsageBased: BillingUsageType } } }> | null } | null, billingSubscriptions: Array<{ __typename?: 'BillingSubscription', id: string, status: SubscriptionStatus, metadata: any, phases: Array<{ __typename?: 'BillingSubscriptionSchedulePhase', start_date: number, end_date: number, items: Array<{ __typename?: 'BillingSubscriptionSchedulePhaseItem', price: string, quantity?: number | null }> }> }>, billingEntitlements: Array<{ __typename?: 'BillingEntitlement', key: BillingEntitlementKey, value: boolean }>, defaultRole?: { __typename?: 'Role', id: string, label: string, description?: string | null, icon?: string | null, canUpdateAllSettings: boolean, canAccessAllTools: boolean, isEditable: boolean, canReadAllObjectRecords: boolean, canUpdateAllObjectRecords: boolean, canSoftDeleteAllObjectRecords: boolean, canDestroyAllObjectRecords: boolean, canBeAssignedToUsers: boolean, canBeAssignedToAgents: boolean, canBeAssignedToApiKeys: boolean } | null } | null, availableWorkspaces: { __typename?: 'AvailableWorkspaces', availableWorkspacesForSignIn: Array<{ __typename?: 'AvailableWorkspace', id: string, displayName?: string | null, loginToken?: string | null, inviteHash?: string | null, personalInviteToken?: string | null, logo?: string | null, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null }, sso: Array<{ __typename?: 'SSOConnection', type: IdentityProviderType, id: string, issuer: string, name: string, status: SsoIdentityProviderStatus }> }>, availableWorkspacesForSignUp: Array<{ __typename?: 'AvailableWorkspace', id: string, displayName?: string | null, loginToken?: string | null, inviteHash?: string | null, personalInviteToken?: string | null, logo?: string | null, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null }, sso: Array<{ __typename?: 'SSOConnection', type: IdentityProviderType, id: string, issuer: string, name: string, status: SsoIdentityProviderStatus }> }> } } };
-export type ViewFieldFragmentFragment = { __typename?: 'CoreViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null };
+export type ViewFieldFragmentFragment = { __typename?: 'ViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null };
-export type ViewFieldGroupFragmentFragment = { __typename?: 'CoreViewFieldGroup', id: string, name: string, position: number, isVisible: boolean, viewId: string, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null, viewFields: Array<{ __typename?: 'CoreViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null }> };
+export type ViewFieldGroupFragmentFragment = { __typename?: 'ViewFieldGroup', id: string, name: string, position: number, isVisible: boolean, viewId: string, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null, viewFields: Array<{ __typename?: 'ViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null }> };
-export type ViewFilterFragmentFragment = { __typename?: 'CoreViewFilter', id: string, fieldMetadataId: string, operand: ViewFilterOperand, value: any, viewFilterGroupId?: string | null, positionInViewFilterGroup?: number | null, subFieldName?: string | null, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null };
+export type ViewFilterFragmentFragment = { __typename?: 'ViewFilter', id: string, fieldMetadataId: string, operand: ViewFilterOperand, value: any, viewFilterGroupId?: string | null, positionInViewFilterGroup?: number | null, subFieldName?: string | null, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null };
-export type ViewFilterGroupFragmentFragment = { __typename?: 'CoreViewFilterGroup', id: string, parentViewFilterGroupId?: string | null, logicalOperator: ViewFilterGroupLogicalOperator, positionInViewFilterGroup?: number | null, viewId: string };
+export type ViewFilterGroupFragmentFragment = { __typename?: 'ViewFilterGroup', id: string, parentViewFilterGroupId?: string | null, logicalOperator: ViewFilterGroupLogicalOperator, positionInViewFilterGroup?: number | null, viewId: string };
-export type ViewFragmentFragment = { __typename?: 'CoreView', id: string, name: string, objectMetadataId: string, type: ViewType, key?: ViewKey | null, icon: string, position: number, isCompact: boolean, openRecordIn: ViewOpenRecordIn, kanbanAggregateOperation?: AggregateOperations | null, kanbanAggregateOperationFieldMetadataId?: string | null, mainGroupByFieldMetadataId?: string | null, shouldHideEmptyGroups: boolean, anyFieldFilterValue?: string | null, calendarFieldMetadataId?: string | null, calendarLayout?: ViewCalendarLayout | null, visibility: ViewVisibility, createdByUserWorkspaceId?: string | null, viewFields: Array<{ __typename?: 'CoreViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null }>, viewFieldGroups: Array<{ __typename?: 'CoreViewFieldGroup', id: string, name: string, position: number, isVisible: boolean, viewId: string, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null, viewFields: Array<{ __typename?: 'CoreViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null }> }>, viewFilters: Array<{ __typename?: 'CoreViewFilter', id: string, fieldMetadataId: string, operand: ViewFilterOperand, value: any, viewFilterGroupId?: string | null, positionInViewFilterGroup?: number | null, subFieldName?: string | null, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null }>, viewFilterGroups: Array<{ __typename?: 'CoreViewFilterGroup', id: string, parentViewFilterGroupId?: string | null, logicalOperator: ViewFilterGroupLogicalOperator, positionInViewFilterGroup?: number | null, viewId: string }>, viewSorts: Array<{ __typename?: 'CoreViewSort', id: string, fieldMetadataId: string, direction: ViewSortDirection, viewId: string, createdAt: string, deletedAt?: string | null, updatedAt: string }>, viewGroups: Array<{ __typename?: 'CoreViewGroup', id: string, isVisible: boolean, fieldValue: string, position: number, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null }> };
+export type ViewFragmentFragment = { __typename?: 'View', id: string, name: string, objectMetadataId: string, type: ViewType, key?: ViewKey | null, icon: string, position: number, isCompact: boolean, openRecordIn: ViewOpenRecordIn, kanbanAggregateOperation?: AggregateOperations | null, kanbanAggregateOperationFieldMetadataId?: string | null, mainGroupByFieldMetadataId?: string | null, shouldHideEmptyGroups: boolean, anyFieldFilterValue?: string | null, calendarFieldMetadataId?: string | null, calendarLayout?: ViewCalendarLayout | null, visibility: ViewVisibility, createdByUserWorkspaceId?: string | null, viewFields: Array<{ __typename?: 'ViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null }>, viewFieldGroups: Array<{ __typename?: 'ViewFieldGroup', id: string, name: string, position: number, isVisible: boolean, viewId: string, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null, viewFields: Array<{ __typename?: 'ViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null }> }>, viewFilters: Array<{ __typename?: 'ViewFilter', id: string, fieldMetadataId: string, operand: ViewFilterOperand, value: any, viewFilterGroupId?: string | null, positionInViewFilterGroup?: number | null, subFieldName?: string | null, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null }>, viewFilterGroups: Array<{ __typename?: 'ViewFilterGroup', id: string, parentViewFilterGroupId?: string | null, logicalOperator: ViewFilterGroupLogicalOperator, positionInViewFilterGroup?: number | null, viewId: string }>, viewSorts: Array<{ __typename?: 'ViewSort', id: string, fieldMetadataId: string, direction: ViewSortDirection, viewId: string, createdAt: string, deletedAt?: string | null, updatedAt: string }>, viewGroups: Array<{ __typename?: 'ViewGroup', id: string, isVisible: boolean, fieldValue: string, position: number, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null }> };
-export type ViewGroupFragmentFragment = { __typename?: 'CoreViewGroup', id: string, isVisible: boolean, fieldValue: string, position: number, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null };
+export type ViewGroupFragmentFragment = { __typename?: 'ViewGroup', id: string, isVisible: boolean, fieldValue: string, position: number, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null };
-export type ViewSortFragmentFragment = { __typename?: 'CoreViewSort', id: string, fieldMetadataId: string, direction: ViewSortDirection, viewId: string, createdAt: string, deletedAt?: string | null, updatedAt: string };
+export type ViewSortFragmentFragment = { __typename?: 'ViewSort', id: string, fieldMetadataId: string, direction: ViewSortDirection, viewId: string, createdAt: string, deletedAt?: string | null, updatedAt: string };
-export type CreateCoreViewMutationVariables = Exact<{
- input: CreateViewInput;
+export type CreateManyViewFieldGroupsMutationVariables = Exact<{
+ inputs: Array<CreateViewFieldGroupInput> | CreateViewFieldGroupInput;
}>;
-export type CreateCoreViewMutation = { __typename?: 'Mutation', createCoreView: { __typename?: 'CoreView', id: string, name: string, objectMetadataId: string, type: ViewType, key?: ViewKey | null, icon: string, position: number, isCompact: boolean, openRecordIn: ViewOpenRecordIn, kanbanAggregateOperation?: AggregateOperations | null, kanbanAggregateOperationFieldMetadataId?: string | null, mainGroupByFieldMetadataId?: string | null, shouldHideEmptyGroups: boolean, anyFieldFilterValue?: string | null, calendarFieldMetadataId?: string | null, calendarLayout?: ViewCalendarLayout | null, visibility: ViewVisibility, createdByUserWorkspaceId?: string | null, viewFields: Array<{ __typename?: 'CoreViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null }>, viewFieldGroups: Array<{ __typename?: 'CoreViewFieldGroup', id: string, name: string, position: number, isVisible: boolean, viewId: string, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null, viewFields: Array<{ __typename?: 'CoreViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null }> }>, viewFilters: Array<{ __typename?: 'CoreViewFilter', id: string, fieldMetadataId: string, operand: ViewFilterOperand, value: any, viewFilterGroupId?: string | null, positionInViewFilterGroup?: number | null, subFieldName?: string | null, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null }>, viewFilterGroups: Array<{ __typename?: 'CoreViewFilterGroup', id: string, parentViewFilterGroupId?: string | null, logicalOperator: ViewFilterGroupLogicalOperator, positionInViewFilterGroup?: number | null, viewId: string }>, viewSorts: Array<{ __typename?: 'CoreViewSort', id: string, fieldMetadataId: string, direction: ViewSortDirection, viewId: string, createdAt: string, deletedAt?: string | null, updatedAt: string }>, viewGroups: Array<{ __typename?: 'CoreViewGroup', id: string, isVisible: boolean, fieldValue: string, position: number, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null }> } };
+export type CreateManyViewFieldGroupsMutation = { __typename?: 'Mutation', createManyViewFieldGroups: Array<{ __typename?: 'ViewFieldGroup', id: string, name: string, position: number, isVisible: boolean, viewId: string, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null, viewFields: Array<{ __typename?: 'ViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null }> }> };
-export type CreateCoreViewFieldMutationVariables = Exact<{
- input: CreateViewFieldInput;
+export type CreateManyViewFieldsMutationVariables = Exact<{
+ inputs: Array<CreateViewFieldInput> | CreateViewFieldInput;
}>;
-export type CreateCoreViewFieldMutation = { __typename?: 'Mutation', createCoreViewField: { __typename?: 'CoreViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null } };
+export type CreateManyViewFieldsMutation = { __typename?: 'Mutation', createManyViewFields: Array<{ __typename?: 'ViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null }> };
-export type CreateCoreViewFieldGroupMutationVariables = Exact<{
- input: CreateViewFieldGroupInput;
+export type CreateManyViewGroupsMutationVariables = Exact<{
+ inputs: Array<CreateViewGroupInput> | CreateViewGroupInput;
}>;
-export type CreateCoreViewFieldGroupMutation = { __typename?: 'Mutation', createCoreViewFieldGroup: { __typename?: 'CoreViewFieldGroup', id: string, name: string, position: number, isVisible: boolean, viewId: string, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null, viewFields: Array<{ __typename?: 'CoreViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null }> } };
+export type CreateManyViewGroupsMutation = { __typename?: 'Mutation', createManyViewGroups: Array<{ __typename?: 'ViewGroup', id: string, isVisible: boolean, fieldValue: string, position: number, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null }> };
-export type CreateCoreViewFilterMutationVariables = Exact<{
- input: CreateViewFilterInput;
+export type CreateViewMutationVariables = Exact<{
+ input: CreateViewInput;
}>;
-export type CreateCoreViewFilterMutation = { __typename?: 'Mutation', createCoreViewFilter: { __typename?: 'CoreViewFilter', id: string, fieldMetadataId: string, operand: ViewFilterOperand, value: any, viewFilterGroupId?: string | null, positionInViewFilterGroup?: number | null, subFieldName?: string | null, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null } };
+export type CreateViewMutation = { __typename?: 'Mutation', createView: { __typename?: 'View', id: string, name: string, objectMetadataId: string, type: ViewType, key?: ViewKey | null, icon: string, position: number, isCompact: boolean, openRecordIn: ViewOpenRecordIn, kanbanAggregateOperation?: AggregateOperations | null, kanbanAggregateOperationFieldMetadataId?: string | null, mainGroupByFieldMetadataId?: string | null, shouldHideEmptyGroups: boolean, anyFieldFilterValue?: string | null, calendarFieldMetadataId?: string | null, calendarLayout?: ViewCalendarLayout | null, visibility: ViewVisibility, createdByUserWorkspaceId?: string | null, viewFields: Array<{ __typename?: 'ViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null }>, viewFieldGroups: Array<{ __typename?: 'ViewFieldGroup', id: string, name: string, position: number, isVisible: boolean, viewId: string, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null, viewFields: Array<{ __typename?: 'ViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null }> }>, viewFilters: Array<{ __typename?: 'ViewFilter', id: string, fieldMetadataId: string, operand: ViewFilterOperand, value: any, viewFilterGroupId?: string | null, positionInViewFilterGroup?: number | null, subFieldName?: string | null, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null }>, viewFilterGroups: Array<{ __typename?: 'ViewFilterGroup', id: string, parentViewFilterGroupId?: string | null, logicalOperator: ViewFilterGroupLogicalOperator, positionInViewFilterGroup?: number | null, viewId: string }>, viewSorts: Array<{ __typename?: 'ViewSort', id: string, fieldMetadataId: string, direction: ViewSortDirection, viewId: string, createdAt: string, deletedAt?: string | null, updatedAt: string }>, viewGroups: Array<{ __typename?: 'ViewGroup', id: string, isVisible: boolean, fieldValue: string, position: number, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null }> } };
-export type CreateCoreViewFilterGroupMutationVariables = Exact<{
- input: CreateViewFilterGroupInput;
+export type CreateViewFieldMutationVariables = Exact<{
+ input: CreateViewFieldInput;
}>;
-export type CreateCoreViewFilterGroupMutation = { __typename?: 'Mutation', createCoreViewFilterGroup: { __typename?: 'CoreViewFilterGroup', id: string, parentViewFilterGroupId?: string | null, logicalOperator: ViewFilterGroupLogicalOperator, positionInViewFilterGroup?: number | null, viewId: string } };
+export type CreateViewFieldMutation = { __typename?: 'Mutation', createViewField: { __typename?: 'ViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null } };
-export type CreateCoreViewGroupMutationVariables = Exact<{
- input: CreateViewGroupInput;
+export type CreateViewFieldGroupMutationVariables = Exact<{
+ input: CreateViewFieldGroupInput;
}>;
-export type CreateCoreViewGroupMutation = { __typename?: 'Mutation', createCoreViewGroup: { __typename?: 'CoreViewGroup', id: string, isVisible: boolean, fieldValue: string, position: number, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null } };
+export type CreateViewFieldGroupMutation = { __typename?: 'Mutation', createViewFieldGroup: { __typename?: 'ViewFieldGroup', id: string, name: string, position: number, isVisible: boolean, viewId: string, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null, viewFields: Array<{ __typename?: 'ViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null }> } };
-export type CreateCoreViewSortMutationVariables = Exact<{
- input: CreateViewSortInput;
+export type CreateViewFilterMutationVariables = Exact<{
+ input: CreateViewFilterInput;
}>;
-export type CreateCoreViewSortMutation = { __typename?: 'Mutation', createCoreViewSort: { __typename?: 'CoreViewSort', id: string, fieldMetadataId: string, direction: ViewSortDirection, viewId: string, createdAt: string, deletedAt?: string | null, updatedAt: string } };
+export type CreateViewFilterMutation = { __typename?: 'Mutation', createViewFilter: { __typename?: 'ViewFilter', id: string, fieldMetadataId: string, operand: ViewFilterOperand, value: any, viewFilterGroupId?: string | null, positionInViewFilterGroup?: number | null, subFieldName?: string | null, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null } };
-export type CreateManyCoreViewFieldGroupsMutationVariables = Exact<{
- inputs: Array<CreateViewFieldGroupInput> | CreateViewFieldGroupInput;
+export type CreateViewFilterGroupMutationVariables = Exact<{
+ input: CreateViewFilterGroupInput;
}>;
-export type CreateManyCoreViewFieldGroupsMutation = { __typename?: 'Mutation', createManyCoreViewFieldGroups: Array<{ __typename?: 'CoreViewFieldGroup', id: string, name: string, position: number, isVisible: boolean, viewId: string, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null, viewFields: Array<{ __typename?: 'CoreViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null }> }> };
+export type CreateViewFilterGroupMutation = { __typename?: 'Mutation', createViewFilterGroup: { __typename?: 'ViewFilterGroup', id: string, parentViewFilterGroupId?: string | null, logicalOperator: ViewFilterGroupLogicalOperator, positionInViewFilterGroup?: number | null, viewId: string } };
-export type CreateManyCoreViewFieldsMutationVariables = Exact<{
- inputs: Array<CreateViewFieldInput> | CreateViewFieldInput;
+export type CreateViewGroupMutationVariables = Exact<{
+ input: CreateViewGroupInput;
}>;
-export type CreateManyCoreViewFieldsMutation = { __typename?: 'Mutation', createManyCoreViewFields: Array<{ __typename?: 'CoreViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null }> };
+export type CreateViewGroupMutation = { __typename?: 'Mutation', createViewGroup: { __typename?: 'ViewGroup', id: string, isVisible: boolean, fieldValue: string, position: number, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null } };
-export type CreateManyCoreViewGroupsMutationVariables = Exact<{
- inputs: Array<CreateViewGroupInput> | CreateViewGroupInput;
+export type CreateViewSortMutationVariables = Exact<{
+ input: CreateViewSortInput;
}>;
-export type CreateManyCoreViewGroupsMutation = { __typename?: 'Mutation', createManyCoreViewGroups: Array<{ __typename?: 'CoreViewGroup', id: string, isVisible: boolean, fieldValue: string, position: number, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null }> };
+export type CreateViewSortMutation = { __typename?: 'Mutation', createViewSort: { __typename?: 'ViewSort', id: string, fieldMetadataId: string, direction: ViewSortDirection, viewId: string, createdAt: string, deletedAt?: string | null, updatedAt: string } };
-export type DeleteCoreViewMutationVariables = Exact<{
+export type DeleteViewMutationVariables = Exact<{
id: Scalars['String'];
}>;
-export type DeleteCoreViewMutation = { __typename?: 'Mutation', deleteCoreView: boolean };
+export type DeleteViewMutation = { __typename?: 'Mutation', deleteView: boolean };
-export type DeleteCoreViewFieldMutationVariables = Exact<{
+export type DeleteViewFieldMutationVariables = Exact<{
input: DeleteViewFieldInput;
}>;
-export type DeleteCoreViewFieldMutation = { __typename?: 'Mutation', deleteCoreViewField: { __typename?: 'CoreViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null } };
+export type DeleteViewFieldMutation = { __typename?: 'Mutation', deleteViewField: { __typename?: 'ViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null } };
-export type DeleteCoreViewFieldGroupMutationVariables = Exact<{
+export type DeleteViewFieldGroupMutationVariables = Exact<{
input: DeleteViewFieldGroupInput;
}>;
-export type DeleteCoreViewFieldGroupMutation = { __typename?: 'Mutation', deleteCoreViewFieldGroup: { __typename?: 'CoreViewFieldGroup', id: string, name: string, position: number, isVisible: boolean, viewId: string, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null, viewFields: Array<{ __typename?: 'CoreViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null }> } };
+export type DeleteViewFieldGroupMutation = { __typename?: 'Mutation', deleteViewFieldGroup: { __typename?: 'ViewFieldGroup', id: string, name: string, position: number, isVisible: boolean, viewId: string, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null, viewFields: Array<{ __typename?: 'ViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null }> } };
-export type DeleteCoreViewFilterMutationVariables = Exact<{
+export type DeleteViewFilterMutationVariables = Exact<{
input: DeleteViewFilterInput;
}>;
-export type DeleteCoreViewFilterMutation = { __typename?: 'Mutation', deleteCoreViewFilter: { __typename?: 'CoreViewFilter', id: string, fieldMetadataId: string, operand: ViewFilterOperand, value: any, viewFilterGroupId?: string | null, positionInViewFilterGroup?: number | null, subFieldName?: string | null, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null } };
+export type DeleteViewFilterMutation = { __typename?: 'Mutation', deleteViewFilter: { __typename?: 'ViewFilter', id: string, fieldMetadataId: string, operand: ViewFilterOperand, value: any, viewFilterGroupId?: string | null, positionInViewFilterGroup?: number | null, subFieldName?: string | null, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null } };
-export type DeleteCoreViewFilterGroupMutationVariables = Exact<{
+export type DeleteViewFilterGroupMutationVariables = Exact<{
id: Scalars['String'];
}>;
-export type DeleteCoreViewFilterGroupMutation = { __typename?: 'Mutation', deleteCoreViewFilterGroup: boolean };
+export type DeleteViewFilterGroupMutation = { __typename?: 'Mutation', deleteViewFilterGroup: boolean };
-export type DeleteCoreViewGroupMutationVariables = Exact<{
+export type DeleteViewGroupMutationVariables = Exact<{
input: DeleteViewGroupInput;
}>;
-export type DeleteCoreViewGroupMutation = { __typename?: 'Mutation', deleteCoreViewGroup: { __typename?: 'CoreViewGroup', id: string, isVisible: boolean, fieldValue: string, position: number, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null } };
+export type DeleteViewGroupMutation = { __typename?: 'Mutation', deleteViewGroup: { __typename?: 'ViewGroup', id: string, isVisible: boolean, fieldValue: string, position: number, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null } };
-export type DeleteCoreViewSortMutationVariables = Exact<{
+export type DeleteViewSortMutationVariables = Exact<{
input: DeleteViewSortInput;
}>;
-export type DeleteCoreViewSortMutation = { __typename?: 'Mutation', deleteCoreViewSort: boolean };
+export type DeleteViewSortMutation = { __typename?: 'Mutation', deleteViewSort: boolean };
-export type DestroyCoreViewMutationVariables = Exact<{
+export type DestroyViewMutationVariables = Exact<{
id: Scalars['String'];
}>;
-export type DestroyCoreViewMutation = { __typename?: 'Mutation', destroyCoreView: boolean };
+export type DestroyViewMutation = { __typename?: 'Mutation', destroyView: boolean };
-export type DestroyCoreViewFieldMutationVariables = Exact<{
+export type DestroyViewFieldMutationVariables = Exact<{
input: DestroyViewFieldInput;
}>;
-export type DestroyCoreViewFieldMutation = { __typename?: 'Mutation', destroyCoreViewField: { __typename?: 'CoreViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null } };
+export type DestroyViewFieldMutation = { __typename?: 'Mutation', destroyViewField: { __typename?: 'ViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null } };
-export type DestroyCoreViewFilterMutationVariables = Exact<{
+export type DestroyViewFilterMutationVariables = Exact<{
input: DestroyViewFilterInput;
}>;
-export type DestroyCoreViewFilterMutation = { __typename?: 'Mutation', destroyCoreViewFilter: { __typename?: 'CoreViewFilter', id: string, fieldMetadataId: string, operand: ViewFilterOperand, value: any, viewFilterGroupId?: string | null, positionInViewFilterGroup?: number | null, subFieldName?: string | null, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null } };
+export type DestroyViewFilterMutation = { __typename?: 'Mutation', destroyViewFilter: { __typename?: 'ViewFilter', id: string, fieldMetadataId: string, operand: ViewFilterOperand, value: any, viewFilterGroupId?: string | null, positionInViewFilterGroup?: number | null, subFieldName?: string | null, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null } };
-export type DestroyCoreViewFilterGroupMutationVariables = Exact<{
+export type DestroyViewFilterGroupMutationVariables = Exact<{
id: Scalars['String'];
}>;
-export type DestroyCoreViewFilterGroupMutation = { __typename?: 'Mutation', destroyCoreViewFilterGroup: boolean };
+export type DestroyViewFilterGroupMutation = { __typename?: 'Mutation', destroyViewFilterGroup: boolean };
-export type DestroyCoreViewGroupMutationVariables = Exact<{
+export type DestroyViewGroupMutationVariables = Exact<{
input: DestroyViewGroupInput;
}>;
-export type DestroyCoreViewGroupMutation = { __typename?: 'Mutation', destroyCoreViewGroup: { __typename?: 'CoreViewGroup', id: string, isVisible: boolean, fieldValue: string, position: number, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null } };
+export type DestroyViewGroupMutation = { __typename?: 'Mutation', destroyViewGroup: { __typename?: 'ViewGroup', id: string, isVisible: boolean, fieldValue: string, position: number, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null } };
-export type DestroyCoreViewSortMutationVariables = Exact<{
+export type DestroyViewSortMutationVariables = Exact<{
input: DestroyViewSortInput;
}>;
-export type DestroyCoreViewSortMutation = { __typename?: 'Mutation', destroyCoreViewSort: boolean };
+export type DestroyViewSortMutation = { __typename?: 'Mutation', destroyViewSort: boolean };
-export type UpdateCoreViewMutationVariables = Exact<{
+export type UpdateViewMutationVariables = Exact<{
id: Scalars['String'];
input: UpdateViewInput;
}>;
-export type UpdateCoreViewMutation = { __typename?: 'Mutation', updateCoreView: { __typename?: 'CoreView', id: string, name: string, objectMetadataId: string, type: ViewType, key?: ViewKey | null, icon: string, position: number, isCompact: boolean, openRecordIn: ViewOpenRecordIn, kanbanAggregateOperation?: AggregateOperations | null, kanbanAggregateOperationFieldMetadataId?: string | null, mainGroupByFieldMetadataId?: string | null, shouldHideEmptyGroups: boolean, anyFieldFilterValue?: string | null, calendarFieldMetadataId?: string | null, calendarLayout?: ViewCalendarLayout | null, visibility: ViewVisibility, createdByUserWorkspaceId?: string | null, viewFields: Array<{ __typename?: 'CoreViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null }>, viewFieldGroups: Array<{ __typename?: 'CoreViewFieldGroup', id: string, name: string, position: number, isVisible: boolean, viewId: string, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null, viewFields: Array<{ __typename?: 'CoreViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null }> }>, viewFilters: Array<{ __typename?: 'CoreViewFilter', id: string, fieldMetadataId: string, operand: ViewFilterOperand, value: any, viewFilterGroupId?: string | null, positionInViewFilterGroup?: number | null, subFieldName?: string | null, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null }>, viewFilterGroups: Array<{ __typename?: 'CoreViewFilterGroup', id: string, parentViewFilterGroupId?: string | null, logicalOperator: ViewFilterGroupLogicalOperator, positionInViewFilterGroup?: number | null, viewId: string }>, viewSorts: Array<{ __typename?: 'CoreViewSort', id: string, fieldMetadataId: string, direction: ViewSortDirection, viewId: string, createdAt: string, deletedAt?: string | null, updatedAt: string }>, viewGroups: Array<{ __typename?: 'CoreViewGroup', id: string, isVisible: boolean, fieldValue: string, position: number, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null }> } };
+export type UpdateViewMutation = { __typename?: 'Mutation', updateView: { __typename?: 'View', id: string, name: string, objectMetadataId: string, type: ViewType, key?: ViewKey | null, icon: string, position: number, isCompact: boolean, openRecordIn: ViewOpenRecordIn, kanbanAggregateOperation?: AggregateOperations | null, kanbanAggregateOperationFieldMetadataId?: string | null, mainGroupByFieldMetadataId?: string | null, shouldHideEmptyGroups: boolean, anyFieldFilterValue?: string | null, calendarFieldMetadataId?: string | null, calendarLayout?: ViewCalendarLayout | null, visibility: ViewVisibility, createdByUserWorkspaceId?: string | null, viewFields: Array<{ __typename?: 'ViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null }>, viewFieldGroups: Array<{ __typename?: 'ViewFieldGroup', id: string, name: string, position: number, isVisible: boolean, viewId: string, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null, viewFields: Array<{ __typename?: 'ViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null }> }>, viewFilters: Array<{ __typename?: 'ViewFilter', id: string, fieldMetadataId: string, operand: ViewFilterOperand, value: any, viewFilterGroupId?: string | null, positionInViewFilterGroup?: number | null, subFieldName?: string | null, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null }>, viewFilterGroups: Array<{ __typename?: 'ViewFilterGroup', id: string, parentViewFilterGroupId?: string | null, logicalOperator: ViewFilterGroupLogicalOperator, positionInViewFilterGroup?: number | null, viewId: string }>, viewSorts: Array<{ __typename?: 'ViewSort', id: string, fieldMetadataId: string, direction: ViewSortDirection, viewId: string, createdAt: string, deletedAt?: string | null, updatedAt: string }>, viewGroups: Array<{ __typename?: 'ViewGroup', id: string, isVisible: boolean, fieldValue: string, position: number, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null }> } };
-export type UpdateCoreViewFieldMutationVariables = Exact<{
+export type UpdateViewFieldMutationVariables = Exact<{
input: UpdateViewFieldInput;
}>;
-export type UpdateCoreViewFieldMutation = { __typename?: 'Mutation', updateCoreViewField: { __typename?: 'CoreViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null } };
+export type UpdateViewFieldMutation = { __typename?: 'Mutation', updateViewField: { __typename?: 'ViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null } };
-export type UpdateCoreViewFieldGroupMutationVariables = Exact<{
+export type UpdateViewFieldGroupMutationVariables = Exact<{
input: UpdateViewFieldGroupInput;
}>;
-export type UpdateCoreViewFieldGroupMutation = { __typename?: 'Mutation', updateCoreViewFieldGroup: { __typename?: 'CoreViewFieldGroup', id: string, name: string, position: number, isVisible: boolean, viewId: string, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null, viewFields: Array<{ __typename?: 'CoreViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null }> } };
+export type UpdateViewFieldGroupMutation = { __typename?: 'Mutation', updateViewFieldGroup: { __typename?: 'ViewFieldGroup', id: string, name: string, position: number, isVisible: boolean, viewId: string, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null, viewFields: Array<{ __typename?: 'ViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null }> } };
-export type UpdateCoreViewFilterMutationVariables = Exact<{
+export type UpdateViewFilterMutationVariables = Exact<{
input: UpdateViewFilterInput;
}>;
-export type UpdateCoreViewFilterMutation = { __typename?: 'Mutation', updateCoreViewFilter: { __typename?: 'CoreViewFilter', id: string, fieldMetadataId: string, operand: ViewFilterOperand, value: any, viewFilterGroupId?: string | null, positionInViewFilterGroup?: number | null, subFieldName?: string | null, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null } };
+export type UpdateViewFilterMutation = { __typename?: 'Mutation', updateViewFilter: { __typename?: 'ViewFilter', id: string, fieldMetadataId: string, operand: ViewFilterOperand, value: any, viewFilterGroupId?: string | null, positionInViewFilterGroup?: number | null, subFieldName?: string | null, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null } };
-export type UpdateCoreViewFilterGroupMutationVariables = Exact<{
+export type UpdateViewFilterGroupMutationVariables = Exact<{
id: Scalars['String'];
input: UpdateViewFilterGroupInput;
}>;
-export type UpdateCoreViewFilterGroupMutation = { __typename?: 'Mutation', updateCoreViewFilterGroup: { __typename?: 'CoreViewFilterGroup', id: string, parentViewFilterGroupId?: string | null, logicalOperator: ViewFilterGroupLogicalOperator, positionInViewFilterGroup?: number | null, viewId: string } };
+export type UpdateViewFilterGroupMutation = { __typename?: 'Mutation', updateViewFilterGroup: { __typename?: 'ViewFilterGroup', id: string, parentViewFilterGroupId?: string | null, logicalOperator: ViewFilterGroupLogicalOperator, positionInViewFilterGroup?: number | null, viewId: string } };
-export type UpdateCoreViewGroupMutationVariables = Exact<{
+export type UpdateViewGroupMutationVariables = Exact<{
input: UpdateViewGroupInput;
}>;
-export type UpdateCoreViewGroupMutation = { __typename?: 'Mutation', updateCoreViewGroup: { __typename?: 'CoreViewGroup', id: string, isVisible: boolean, fieldValue: string, position: number, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null } };
+export type UpdateViewGroupMutation = { __typename?: 'Mutation', updateViewGroup: { __typename?: 'ViewGroup', id: string, isVisible: boolean, fieldValue: string, position: number, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null } };
-export type UpdateCoreViewSortMutationVariables = Exact<{
+export type UpdateViewSortMutationVariables = Exact<{
input: UpdateViewSortInput;
}>;
-export type UpdateCoreViewSortMutation = { __typename?: 'Mutation', updateCoreViewSort: { __typename?: 'CoreViewSort', id: string, fieldMetadataId: string, direction: ViewSortDirection, viewId: string, createdAt: string, deletedAt?: string | null, updatedAt: string } };
+export type UpdateViewSortMutation = { __typename?: 'Mutation', updateViewSort: { __typename?: 'ViewSort', id: string, fieldMetadataId: string, direction: ViewSortDirection, viewId: string, createdAt: string, deletedAt?: string | null, updatedAt: string } };
-export type FindAllCoreViewsQueryVariables = Exact<{
+export type FindAllViewsQueryVariables = Exact<{
viewTypes?: InputMaybe<Array<ViewType> | ViewType>;
}>;
-export type FindAllCoreViewsQuery = { __typename?: 'Query', getCoreViews: Array<{ __typename?: 'CoreView', id: string, name: string, objectMetadataId: string, type: ViewType, key?: ViewKey | null, icon: string, position: number, isCompact: boolean, openRecordIn: ViewOpenRecordIn, kanbanAggregateOperation?: AggregateOperations | null, kanbanAggregateOperationFieldMetadataId?: string | null, mainGroupByFieldMetadataId?: string | null, shouldHideEmptyGroups: boolean, anyFieldFilterValue?: string | null, calendarFieldMetadataId?: string | null, calendarLayout?: ViewCalendarLayout | null, visibility: ViewVisibility, createdByUserWorkspaceId?: string | null, viewFields: Array<{ __typename?: 'CoreViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null }>, viewFieldGroups: Array<{ __typename?: 'CoreViewFieldGroup', id: string, name: string, position: number, isVisible: boolean, viewId: string, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null, viewFields: Array<{ __typename?: 'CoreViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null }> }>, viewFilters: Array<{ __typename?: 'CoreViewFilter', id: string, fieldMetadataId: string, operand: ViewFilterOperand, value: any, viewFilterGroupId?: string | null, positionInViewFilterGroup?: number | null, subFieldName?: string | null, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null }>, viewFilterGroups: Array<{ __typename?: 'CoreViewFilterGroup', id: string, parentViewFilterGroupId?: string | null, logicalOperator: ViewFilterGroupLogicalOperator, positionInViewFilterGroup?: number | null, viewId: string }>, viewSorts: Array<{ __typename?: 'CoreViewSort', id: string, fieldMetadataId: string, direction: ViewSortDirection, viewId: string, createdAt: string, deletedAt?: string | null, updatedAt: string }>, viewGroups: Array<{ __typename?: 'CoreViewGroup', id: string, isVisible: boolean, fieldValue: string, position: number, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null }> }> };
+export type FindAllViewsQuery = { __typename?: 'Query', getViews: Array<{ __typename?: 'View', id: string, name: string, objectMetadataId: string, type: ViewType, key?: ViewKey | null, icon: string, position: number, isCompact: boolean, openRecordIn: ViewOpenRecordIn, kanbanAggregateOperation?: AggregateOperations | null, kanbanAggregateOperationFieldMetadataId?: string | null, mainGroupByFieldMetadataId?: string | null, shouldHideEmptyGroups: boolean, anyFieldFilterValue?: string | null, calendarFieldMetadataId?: string | null, calendarLayout?: ViewCalendarLayout | null, visibility: ViewVisibility, createdByUserWorkspaceId?: string | null, viewFields: Array<{ __typename?: 'ViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null }>, viewFieldGroups: Array<{ __typename?: 'ViewFieldGroup', id: string, name: string, position: number, isVisible: boolean, viewId: string, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null, viewFields: Array<{ __typename?: 'ViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null }> }>, viewFilters: Array<{ __typename?: 'ViewFilter', id: string, fieldMetadataId: string, operand: ViewFilterOperand, value: any, viewFilterGroupId?: string | null, positionInViewFilterGroup?: number | null, subFieldName?: string | null, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null }>, viewFilterGroups: Array<{ __typename?: 'ViewFilterGroup', id: string, parentViewFilterGroupId?: string | null, logicalOperator: ViewFilterGroupLogicalOperator, positionInViewFilterGroup?: number | null, viewId: string }>, viewSorts: Array<{ __typename?: 'ViewSort', id: string, fieldMetadataId: string, direction: ViewSortDirection, viewId: string, createdAt: string, deletedAt?: string | null, updatedAt: string }>, viewGroups: Array<{ __typename?: 'ViewGroup', id: string, isVisible: boolean, fieldValue: string, position: number, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null }> }> };
-export type FindFieldsWidgetCoreViewsQueryVariables = Exact<{
+export type FindFieldsWidgetViewsQueryVariables = Exact<{
viewTypes?: InputMaybe<Array<ViewType> | ViewType>;
}>;
-export type FindFieldsWidgetCoreViewsQuery = { __typename?: 'Query', getCoreViews: Array<{ __typename?: 'CoreView', id: string, name: string, objectMetadataId: string, type: ViewType, key?: ViewKey | null, icon: string, position: number, isCompact: boolean, openRecordIn: ViewOpenRecordIn, kanbanAggregateOperation?: AggregateOperations | null, kanbanAggregateOperationFieldMetadataId?: string | null, mainGroupByFieldMetadataId?: string | null, shouldHideEmptyGroups: boolean, anyFieldFilterValue?: string | null, calendarFieldMetadataId?: string | null, calendarLayout?: ViewCalendarLayout | null, visibility: ViewVisibility, createdByUserWorkspaceId?: string | null, viewFields: Array<{ __typename?: 'CoreViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null }>, viewFieldGroups: Array<{ __typename?: 'CoreViewFieldGroup', id: string, name: string, position: number, isVisible: boolean, viewId: string, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null, viewFields: Array<{ __typename?: 'CoreViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null }> }>, viewFilters: Array<{ __typename?: 'CoreViewFilter', id: string, fieldMetadataId: string, operand: ViewFilterOperand, value: any, viewFilterGroupId?: string | null, positionInViewFilterGroup?: number | null, subFieldName?: string | null, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null }>, viewFilterGroups: Array<{ __typename?: 'CoreViewFilterGroup', id: string, parentViewFilterGroupId?: string | null, logicalOperator: ViewFilterGroupLogicalOperator, positionInViewFilterGroup?: number | null, viewId: string }>, viewSorts: Array<{ __typename?: 'CoreViewSort', id: string, fieldMetadataId: string, direction: ViewSortDirection, viewId: string, createdAt: string, deletedAt?: string | null, updatedAt: string }>, viewGroups: Array<{ __typename?: 'CoreViewGroup', id: string, isVisible: boolean, fieldValue: string, position: number, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null }> }> };
+export type FindFieldsWidgetViewsQuery = { __typename?: 'Query', getViews: Array<{ __typename?: 'View', id: string, name: string, objectMetadataId: string, type: ViewType, key?: ViewKey | null, icon: string, position: number, isCompact: boolean, openRecordIn: ViewOpenRecordIn, kanbanAggregateOperation?: AggregateOperations | null, kanbanAggregateOperationFieldMetadataId?: string | null, mainGroupByFieldMetadataId?: string | null, shouldHideEmptyGroups: boolean, anyFieldFilterValue?: string | null, calendarFieldMetadataId?: string | null, calendarLayout?: ViewCalendarLayout | null, visibility: ViewVisibility, createdByUserWorkspaceId?: string | null, viewFields: Array<{ __typename?: 'ViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null }>, viewFieldGroups: Array<{ __typename?: 'ViewFieldGroup', id: string, name: string, position: number, isVisible: boolean, viewId: string, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null, viewFields: Array<{ __typename?: 'ViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null }> }>, viewFilters: Array<{ __typename?: 'ViewFilter', id: string, fieldMetadataId: string, operand: ViewFilterOperand, value: any, viewFilterGroupId?: string | null, positionInViewFilterGroup?: number | null, subFieldName?: string | null, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null }>, viewFilterGroups: Array<{ __typename?: 'ViewFilterGroup', id: string, parentViewFilterGroupId?: string | null, logicalOperator: ViewFilterGroupLogicalOperator, positionInViewFilterGroup?: number | null, viewId: string }>, viewSorts: Array<{ __typename?: 'ViewSort', id: string, fieldMetadataId: string, direction: ViewSortDirection, viewId: string, createdAt: string, deletedAt?: string | null, updatedAt: string }>, viewGroups: Array<{ __typename?: 'ViewGroup', id: string, isVisible: boolean, fieldValue: string, position: number, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null }> }> };
-export type FindManyCoreViewFieldsQueryVariables = Exact<{
+export type FindManyViewFieldsQueryVariables = Exact<{
viewId: Scalars['String'];
}>;
-export type FindManyCoreViewFieldsQuery = { __typename?: 'Query', getCoreViewFields: Array<{ __typename?: 'CoreViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null }> };
+export type FindManyViewFieldsQuery = { __typename?: 'Query', getViewFields: Array<{ __typename?: 'ViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null }> };
-export type FindManyCoreViewFilterGroupsQueryVariables = Exact<{
+export type FindManyViewFilterGroupsQueryVariables = Exact<{
viewId?: InputMaybe<Scalars['String']>;
}>;
-export type FindManyCoreViewFilterGroupsQuery = { __typename?: 'Query', getCoreViewFilterGroups: Array<{ __typename?: 'CoreViewFilterGroup', id: string, parentViewFilterGroupId?: string | null, logicalOperator: ViewFilterGroupLogicalOperator, positionInViewFilterGroup?: number | null, viewId: string }> };
+export type FindManyViewFilterGroupsQuery = { __typename?: 'Query', getViewFilterGroups: Array<{ __typename?: 'ViewFilterGroup', id: string, parentViewFilterGroupId?: string | null, logicalOperator: ViewFilterGroupLogicalOperator, positionInViewFilterGroup?: number | null, viewId: string }> };
-export type FindManyCoreViewFiltersQueryVariables = Exact<{
+export type FindManyViewFiltersQueryVariables = Exact<{
viewId?: InputMaybe<Scalars['String']>;
}>;
-export type FindManyCoreViewFiltersQuery = { __typename?: 'Query', getCoreViewFilters: Array<{ __typename?: 'CoreViewFilter', id: string, fieldMetadataId: string, operand: ViewFilterOperand, value: any, viewFilterGroupId?: string | null, positionInViewFilterGroup?: number | null, subFieldName?: string | null, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null }> };
+export type FindManyViewFiltersQuery = { __typename?: 'Query', getViewFilters: Array<{ __typename?: 'ViewFilter', id: string, fieldMetadataId: string, operand: ViewFilterOperand, value: any, viewFilterGroupId?: string | null, positionInViewFilterGroup?: number | null, subFieldName?: string | null, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null }> };
-export type FindManyCoreViewGroupsQueryVariables = Exact<{
+export type FindManyViewGroupsQueryVariables = Exact<{
viewId?: InputMaybe<Scalars['String']>;
}>;
-export type FindManyCoreViewGroupsQuery = { __typename?: 'Query', getCoreViewGroups: Array<{ __typename?: 'CoreViewGroup', id: string, isVisible: boolean, fieldValue: string, position: number, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null }> };
+export type FindManyViewGroupsQuery = { __typename?: 'Query', getViewGroups: Array<{ __typename?: 'ViewGroup', id: string, isVisible: boolean, fieldValue: string, position: number, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null }> };
-export type FindManyCoreViewSortsQueryVariables = Exact<{
+export type FindManyViewSortsQueryVariables = Exact<{
viewId?: InputMaybe<Scalars['String']>;
}>;
-export type FindManyCoreViewSortsQuery = { __typename?: 'Query', getCoreViewSorts: Array<{ __typename?: 'CoreViewSort', id: string, fieldMetadataId: string, direction: ViewSortDirection, viewId: string, createdAt: string, deletedAt?: string | null, updatedAt: string }> };
+export type FindManyViewSortsQuery = { __typename?: 'Query', getViewSorts: Array<{ __typename?: 'ViewSort', id: string, fieldMetadataId: string, direction: ViewSortDirection, viewId: string, createdAt: string, deletedAt?: string | null, updatedAt: string }> };
-export type FindManyCoreViewsQueryVariables = Exact<{
+export type FindManyViewsQueryVariables = Exact<{
objectMetadataId?: InputMaybe<Scalars['String']>;
viewTypes?: InputMaybe<Array<ViewType> | ViewType>;
}>;
-export type FindManyCoreViewsQuery = { __typename?: 'Query', getCoreViews: Array<{ __typename?: 'CoreView', id: string, name: string, objectMetadataId: string, type: ViewType, key?: ViewKey | null, icon: string, position: number, isCompact: boolean, openRecordIn: ViewOpenRecordIn, kanbanAggregateOperation?: AggregateOperations | null, kanbanAggregateOperationFieldMetadataId?: string | null, mainGroupByFieldMetadataId?: string | null, shouldHideEmptyGroups: boolean, anyFieldFilterValue?: string | null, calendarFieldMetadataId?: string | null, calendarLayout?: ViewCalendarLayout | null, visibility: ViewVisibility, createdByUserWorkspaceId?: string | null, viewFields: Array<{ __typename?: 'CoreViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null }>, viewFieldGroups: Array<{ __typename?: 'CoreViewFieldGroup', id: string, name: string, position: number, isVisible: boolean, viewId: string, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null, viewFields: Array<{ __typename?: 'CoreViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null }> }>, viewFilters: Array<{ __typename?: 'CoreViewFilter', id: string, fieldMetadataId: string, operand: ViewFilterOperand, value: any, viewFilterGroupId?: string | null, positionInViewFilterGroup?: number | null, subFieldName?: string | null, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null }>, viewFilterGroups: Array<{ __typename?: 'CoreViewFilterGroup', id: string, parentViewFilterGroupId?: string | null, logicalOperator: ViewFilterGroupLogicalOperator, positionInViewFilterGroup?: number | null, viewId: string }>, viewSorts: Array<{ __typename?: 'CoreViewSort', id: string, fieldMetadataId: string, direction: ViewSortDirection, viewId: string, createdAt: string, deletedAt?: string | null, updatedAt: string }>, viewGroups: Array<{ __typename?: 'CoreViewGroup', id: string, isVisible: boolean, fieldValue: string, position: number, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null }> }> };
+export type FindManyViewsQuery = { __typename?: 'Query', getViews: Array<{ __typename?: 'View', id: string, name: string, objectMetadataId: string, type: ViewType, key?: ViewKey | null, icon: string, position: number, isCompact: boolean, openRecordIn: ViewOpenRecordIn, kanbanAggregateOperation?: AggregateOperations | null, kanbanAggregateOperationFieldMetadataId?: string | null, mainGroupByFieldMetadataId?: string | null, shouldHideEmptyGroups: boolean, anyFieldFilterValue?: string | null, calendarFieldMetadataId?: string | null, calendarLayout?: ViewCalendarLayout | null, visibility: ViewVisibility, createdByUserWorkspaceId?: string | null, viewFields: Array<{ __typename?: 'ViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null }>, viewFieldGroups: Array<{ __typename?: 'ViewFieldGroup', id: string, name: string, position: number, isVisible: boolean, viewId: string, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null, viewFields: Array<{ __typename?: 'ViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null }> }>, viewFilters: Array<{ __typename?: 'ViewFilter', id: string, fieldMetadataId: string, operand: ViewFilterOperand, value: any, viewFilterGroupId?: string | null, positionInViewFilterGroup?: number | null, subFieldName?: string | null, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null }>, viewFilterGroups: Array<{ __typename?: 'ViewFilterGroup', id: string, parentViewFilterGroupId?: string | null, logicalOperator: ViewFilterGroupLogicalOperator, positionInViewFilterGroup?: number | null, viewId: string }>, viewSorts: Array<{ __typename?: 'ViewSort', id: string, fieldMetadataId: string, direction: ViewSortDirection, viewId: string, createdAt: string, deletedAt?: string | null, updatedAt: string }>, viewGroups: Array<{ __typename?: 'ViewGroup', id: string, isVisible: boolean, fieldValue: string, position: number, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null }> }> };
-export type FindOneCoreViewQueryVariables = Exact<{
+export type FindOneViewQueryVariables = Exact<{
id: Scalars['String'];
}>;
-export type FindOneCoreViewQuery = { __typename?: 'Query', getCoreView?: { __typename?: 'CoreView', id: string, name: string, objectMetadataId: string, type: ViewType, key?: ViewKey | null, icon: string, position: number, isCompact: boolean, openRecordIn: ViewOpenRecordIn, kanbanAggregateOperation?: AggregateOperations | null, kanbanAggregateOperationFieldMetadataId?: string | null, mainGroupByFieldMetadataId?: string | null, shouldHideEmptyGroups: boolean, anyFieldFilterValue?: string | null, calendarFieldMetadataId?: string | null, calendarLayout?: ViewCalendarLayout | null, visibility: ViewVisibility, createdByUserWorkspaceId?: string | null, viewFields: Array<{ __typename?: 'CoreViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null }>, viewFieldGroups: Array<{ __typename?: 'CoreViewFieldGroup', id: string, name: string, position: number, isVisible: boolean, viewId: string, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null, viewFields: Array<{ __typename?: 'CoreViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null }> }>, viewFilters: Array<{ __typename?: 'CoreViewFilter', id: string, fieldMetadataId: string, operand: ViewFilterOperand, value: any, viewFilterGroupId?: string | null, positionInViewFilterGroup?: number | null, subFieldName?: string | null, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null }>, viewFilterGroups: Array<{ __typename?: 'CoreViewFilterGroup', id: string, parentViewFilterGroupId?: string | null, logicalOperator: ViewFilterGroupLogicalOperator, positionInViewFilterGroup?: number | null, viewId: string }>, viewSorts: Array<{ __typename?: 'CoreViewSort', id: string, fieldMetadataId: string, direction: ViewSortDirection, viewId: string, createdAt: string, deletedAt?: string | null, updatedAt: string }>, viewGroups: Array<{ __typename?: 'CoreViewGroup', id: string, isVisible: boolean, fieldValue: string, position: number, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null }> } | null };
+export type FindOneViewQuery = { __typename?: 'Query', getView?: { __typename?: 'View', id: string, name: string, objectMetadataId: string, type: ViewType, key?: ViewKey | null, icon: string, position: number, isCompact: boolean, openRecordIn: ViewOpenRecordIn, kanbanAggregateOperation?: AggregateOperations | null, kanbanAggregateOperationFieldMetadataId?: string | null, mainGroupByFieldMetadataId?: string | null, shouldHideEmptyGroups: boolean, anyFieldFilterValue?: string | null, calendarFieldMetadataId?: string | null, calendarLayout?: ViewCalendarLayout | null, visibility: ViewVisibility, createdByUserWorkspaceId?: string | null, viewFields: Array<{ __typename?: 'ViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null }>, viewFieldGroups: Array<{ __typename?: 'ViewFieldGroup', id: string, name: string, position: number, isVisible: boolean, viewId: string, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null, viewFields: Array<{ __typename?: 'ViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null }> }>, viewFilters: Array<{ __typename?: 'ViewFilter', id: string, fieldMetadataId: string, operand: ViewFilterOperand, value: any, viewFilterGroupId?: string | null, positionInViewFilterGroup?: number | null, subFieldName?: string | null, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null }>, viewFilterGroups: Array<{ __typename?: 'ViewFilterGroup', id: string, parentViewFilterGroupId?: string | null, logicalOperator: ViewFilterGroupLogicalOperator, positionInViewFilterGroup?: number | null, viewId: string }>, viewSorts: Array<{ __typename?: 'ViewSort', id: string, fieldMetadataId: string, direction: ViewSortDirection, viewId: string, createdAt: string, deletedAt?: string | null, updatedAt: string }>, viewGroups: Array<{ __typename?: 'ViewGroup', id: string, isVisible: boolean, fieldValue: string, position: number, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null }> } | null };
-export type FindOneCoreViewFieldQueryVariables = Exact<{
+export type FindOneViewFieldQueryVariables = Exact<{
id: Scalars['String'];
}>;
-export type FindOneCoreViewFieldQuery = { __typename?: 'Query', getCoreViewField?: { __typename?: 'CoreViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null } | null };
+export type FindOneViewFieldQuery = { __typename?: 'Query', getViewField?: { __typename?: 'ViewField', id: string, fieldMetadataId: string, viewId: string, isVisible: boolean, position: number, size: number, aggregateOperation?: AggregateOperations | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null } | null };
-export type FindOneCoreViewFilterQueryVariables = Exact<{
+export type FindOneViewFilterQueryVariables = Exact<{
id: Scalars['String'];
}>;
-export type FindOneCoreViewFilterQuery = { __typename?: 'Query', getCoreViewFilter?: { __typename?: 'CoreViewFilter', id: string, fieldMetadataId: string, operand: ViewFilterOperand, value: any, viewFilterGroupId?: string | null, positionInViewFilterGroup?: number | null, subFieldName?: string | null, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null } | null };
+export type FindOneViewFilterQuery = { __typename?: 'Query', getViewFilter?: { __typename?: 'ViewFilter', id: string, fieldMetadataId: string, operand: ViewFilterOperand, value: any, viewFilterGroupId?: string | null, positionInViewFilterGroup?: number | null, subFieldName?: string | null, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null } | null };
-export type FindOneCoreViewFilterGroupQueryVariables = Exact<{
+export type FindOneViewFilterGroupQueryVariables = Exact<{
id: Scalars['String'];
}>;
-export type FindOneCoreViewFilterGroupQuery = { __typename?: 'Query', getCoreViewFilterGroup?: { __typename?: 'CoreViewFilterGroup', id: string, parentViewFilterGroupId?: string | null, logicalOperator: ViewFilterGroupLogicalOperator, positionInViewFilterGroup?: number | null, viewId: string } | null };
+export type FindOneViewFilterGroupQuery = { __typename?: 'Query', getViewFilterGroup?: { __typename?: 'ViewFilterGroup', id: string, parentViewFilterGroupId?: string | null, logicalOperator: ViewFilterGroupLogicalOperator, positionInViewFilterGroup?: number | null, viewId: string } | null };
-export type FindOneCoreViewGroupQueryVariables = Exact<{
+export type FindOneViewGroupQueryVariables = Exact<{
id: Scalars['String'];
}>;
-export type FindOneCoreViewGroupQuery = { __typename?: 'Query', getCoreViewGroup?: { __typename?: 'CoreViewGroup', id: string, isVisible: boolean, fieldValue: string, position: number, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null } | null };
+export type FindOneViewGroupQuery = { __typename?: 'Query', getViewGroup?: { __typename?: 'ViewGroup', id: string, isVisible: boolean, fieldValue: string, position: number, viewId: string, createdAt: string, updatedAt: string, deletedAt?: string | null } | null };
-export type FindOneCoreViewSortQueryVariables = Exact<{
+export type FindOneViewSortQueryVariables = Exact<{
id: Scalars['String'];
}>;
-export type FindOneCoreViewSortQuery = { __typename?: 'Query', getCoreViewSort?: { __typename?: 'CoreViewSort', id: string, fieldMetadataId: string, direction: ViewSortDirection, viewId: string, createdAt: string, deletedAt?: string | null, updatedAt: string } | null };
+export type FindOneViewSortQuery = { __typename?: 'Query', getViewSort?: { __typename?: 'ViewSort', id: string, fieldMetadataId: string, direction: ViewSortDirection, viewId: string, createdAt: string, deletedAt?: string | null, updatedAt: string } | null };
export type DeleteWorkspaceInvitationMutationVariables = Exact<{
appTokenId: Scalars['String'];
@@ -7597,13 +7597,13 @@ export const RoleFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind"
export const AvailableWorkspaceFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AvailableWorkspaceFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AvailableWorkspace"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"loginToken"}},{"kind":"Field","name":{"kind":"Name","value":"inviteHash"}},{"kind":"Field","name":{"kind":"Name","value":"personalInviteToken"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceUrls"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"subdomainUrl"}},{"kind":"Field","name":{"kind":"Name","value":"customUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"logo"}},{"kind":"Field","name":{"kind":"Name","value":"sso"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"issuer"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"status"}}]}}]}}]} as unknown as DocumentNode<AvailableWorkspaceFragmentFragment, unknown>;
export const AvailableWorkspacesFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AvailableWorkspacesFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AvailableWorkspaces"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"availableWorkspacesForSignIn"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AvailableWorkspaceFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"availableWorkspacesForSignUp"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AvailableWorkspaceFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AvailableWorkspaceFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AvailableWorkspace"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"loginToken"}},{"kind":"Field","name":{"kind":"Name","value":"inviteHash"}},{"kind":"Field","name":{"kind":"Name","value":"personalInviteToken"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceUrls"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"subdomainUrl"}},{"kind":"Field","name":{"kind":"Name","value":"customUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"logo"}},{"kind":"Field","name":{"kind":"Name","value":"sso"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"issuer"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"status"}}]}}]}}]} as unknown as DocumentNode<AvailableWorkspacesFragmentFragment, unknown>;
export const UserQueryFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"UserQueryFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"User"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"hasPassword"}},{"kind":"Field","name":{"kind":"Name","value":"canAccessFullAdminPanel"}},{"kind":"Field","name":{"kind":"Name","value":"canImpersonate"}},{"kind":"Field","name":{"kind":"Name","value":"supportUserHash"}},{"kind":"Field","name":{"kind":"Name","value":"onboardingStatus"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMember"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"WorkspaceMemberQueryFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMembers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PartialWorkspaceMemberQueryFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"deletedWorkspaceMembers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DeletedWorkspaceMemberQueryFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"currentUserWorkspace"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"permissionFlags"}},{"kind":"Field","name":{"kind":"Name","value":"objectsPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ObjectPermissionFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"twoFactorAuthenticationMethodSummary"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"twoFactorAuthenticationMethodId"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"strategy"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"currentWorkspace"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"logo"}},{"kind":"Field","name":{"kind":"Name","value":"inviteHash"}},{"kind":"Field","name":{"kind":"Name","value":"allowImpersonation"}},{"kind":"Field","name":{"kind":"Name","value":"activationStatus"}},{"kind":"Field","name":{"kind":"Name","value":"isPublicInviteLinkEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isGoogleAuthEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isMicrosoftAuthEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isPasswordAuthEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isGoogleAuthBypassEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isMicrosoftAuthBypassEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isPasswordAuthBypassEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"subdomain"}},{"kind":"Field","name":{"kind":"Name","value":"customDomain"}},{"kind":"Field","name":{"kind":"Name","value":"hasValidEnterpriseKey"}},{"kind":"Field","name":{"kind":"Name","value":"hasValidSignedEnterpriseKey"}},{"kind":"Field","name":{"kind":"Name","value":"hasValidEnterpriseValidityToken"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceCustomApplication"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"isCustomDomainEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceUrls"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"WorkspaceUrlsFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"featureFlags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"metadataVersion"}},{"kind":"Field","name":{"kind":"Name","value":"currentBillingSubscription"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CurrentBillingSubscriptionFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"billingSubscriptions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"billingEntitlements"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMembersCount"}},{"kind":"Field","name":{"kind":"Name","value":"defaultRole"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RoleFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"fastModel"}},{"kind":"Field","name":{"kind":"Name","value":"smartModel"}},{"kind":"Field","name":{"kind":"Name","value":"aiAdditionalInstructions"}},{"kind":"Field","name":{"kind":"Name","value":"autoEnableNewAiModels"}},{"kind":"Field","name":{"kind":"Name","value":"disabledAiModelIds"}},{"kind":"Field","name":{"kind":"Name","value":"enabledAiModelIds"}},{"kind":"Field","name":{"kind":"Name","value":"useRecommendedModels"}},{"kind":"Field","name":{"kind":"Name","value":"isTwoFactorAuthenticationEnforced"}},{"kind":"Field","name":{"kind":"Name","value":"trashRetentionDays"}},{"kind":"Field","name":{"kind":"Name","value":"eventLogRetentionDays"}},{"kind":"Field","name":{"kind":"Name","value":"editableProfileFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"availableWorkspaces"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AvailableWorkspacesFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"userVars"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RowLevelPermissionPredicateFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RowLevelPermissionPredicate"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMemberFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMemberSubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicateGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInRowLevelPermissionPredicateGroup"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"parentRowLevelPermissionPredicateGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"logicalOperator"}},{"kind":"Field","name":{"kind":"Name","value":"positionInRowLevelPermissionPredicateGroup"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseItemFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhase"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"start_date"}},{"kind":"Field","name":{"kind":"Name","value":"end_date"}},{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseItemFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AvailableWorkspaceFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AvailableWorkspace"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"loginToken"}},{"kind":"Field","name":{"kind":"Name","value":"inviteHash"}},{"kind":"Field","name":{"kind":"Name","value":"personalInviteToken"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceUrls"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"subdomainUrl"}},{"kind":"Field","name":{"kind":"Name","value":"customUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"logo"}},{"kind":"Field","name":{"kind":"Name","value":"sso"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"issuer"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"status"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"WorkspaceMemberQueryFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkspaceMember"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"colorScheme"}},{"kind":"Field","name":{"kind":"Name","value":"avatarUrl"}},{"kind":"Field","name":{"kind":"Name","value":"locale"}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}},{"kind":"Field","name":{"kind":"Name","value":"userWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"timeZone"}},{"kind":"Field","name":{"kind":"Name","value":"dateFormat"}},{"kind":"Field","name":{"kind":"Name","value":"timeFormat"}},{"kind":"Field","name":{"kind":"Name","value":"calendarStartDay"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PartialWorkspaceMemberQueryFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkspaceMember"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"avatarUrl"}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}},{"kind":"Field","name":{"kind":"Name","value":"userWorkspaceId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"DeletedWorkspaceMemberQueryFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"DeletedWorkspaceMember"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"avatarUrl"}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ObjectPermissionFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ObjectPermission"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"canReadObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDeleteObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canDestroyObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"restrictedFields"}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicates"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RowLevelPermissionPredicateFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicateGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroupFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"WorkspaceUrlsFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkspaceUrls"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"subdomainUrl"}},{"kind":"Field","name":{"kind":"Name","value":"customUrl"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CurrentBillingSubscriptionFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscription"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"interval"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"}},{"kind":"Field","name":{"kind":"Name","value":"currentPeriodEnd"}},{"kind":"Field","name":{"kind":"Name","value":"phases"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"billingSubscriptionItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"hasReachedCurrentPeriodCap"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}},{"kind":"Field","name":{"kind":"Name","value":"stripePriceId"}},{"kind":"Field","name":{"kind":"Name","value":"billingProduct"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"images"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"productKey"}},{"kind":"Field","name":{"kind":"Name","value":"planKey"}},{"kind":"Field","name":{"kind":"Name","value":"priceUsageBased"}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BillingSubscriptionFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscription"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"}},{"kind":"Field","name":{"kind":"Name","value":"phases"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RoleFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Role"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllSettings"}},{"kind":"Field","name":{"kind":"Name","value":"canAccessAllTools"}},{"kind":"Field","name":{"kind":"Name","value":"isEditable"}},{"kind":"Field","name":{"kind":"Name","value":"canReadAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDeleteAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canDestroyAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToUsers"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToAgents"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToApiKeys"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AvailableWorkspacesFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AvailableWorkspaces"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"availableWorkspacesForSignIn"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AvailableWorkspaceFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"availableWorkspacesForSignUp"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AvailableWorkspaceFragment"}}]}}]}}]} as unknown as DocumentNode<UserQueryFragmentFragment, unknown>;
-export const ViewFieldFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewField"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<ViewFieldFragmentFragment, unknown>;
-export const ViewFieldGroupFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewFieldGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewFields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewField"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<ViewFieldGroupFragmentFragment, unknown>;
-export const ViewFilterFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewFilter"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<ViewFilterFragmentFragment, unknown>;
-export const ViewFilterGroupFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewFilterGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"parentViewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"logicalOperator"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}}]}}]} as unknown as DocumentNode<ViewFilterGroupFragmentFragment, unknown>;
-export const ViewSortFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewSortFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewSort"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"direction"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<ViewSortFragmentFragment, unknown>;
-export const ViewGroupFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"fieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<ViewGroupFragmentFragment, unknown>;
-export const ViewFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreView"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isCompact"}},{"kind":"Field","name":{"kind":"Name","value":"openRecordIn"}},{"kind":"Field","name":{"kind":"Name","value":"kanbanAggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"kanbanAggregateOperationFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"mainGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"shouldHideEmptyGroups"}},{"kind":"Field","name":{"kind":"Name","value":"anyFieldFilterValue"}},{"kind":"Field","name":{"kind":"Name","value":"calendarFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"calendarLayout"}},{"kind":"Field","name":{"kind":"Name","value":"visibility"}},{"kind":"Field","name":{"kind":"Name","value":"createdByUserWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"viewFields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFieldGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldGroupFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFilters"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterGroupFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewSorts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewSortFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewGroupFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewField"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewFieldGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewFields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewFilter"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewFilterGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"parentViewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"logicalOperator"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewSortFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewSort"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"direction"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"fieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<ViewFragmentFragment, unknown>;
+export const ViewFieldFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewField"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<ViewFieldFragmentFragment, unknown>;
+export const ViewFieldGroupFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFieldGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewFields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewField"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<ViewFieldGroupFragmentFragment, unknown>;
+export const ViewFilterFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFilter"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<ViewFilterFragmentFragment, unknown>;
+export const ViewFilterGroupFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFilterGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"parentViewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"logicalOperator"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}}]}}]} as unknown as DocumentNode<ViewFilterGroupFragmentFragment, unknown>;
+export const ViewSortFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewSortFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewSort"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"direction"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<ViewSortFragmentFragment, unknown>;
+export const ViewGroupFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"fieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<ViewGroupFragmentFragment, unknown>;
+export const ViewFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"View"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isCompact"}},{"kind":"Field","name":{"kind":"Name","value":"openRecordIn"}},{"kind":"Field","name":{"kind":"Name","value":"kanbanAggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"kanbanAggregateOperationFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"mainGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"shouldHideEmptyGroups"}},{"kind":"Field","name":{"kind":"Name","value":"anyFieldFilterValue"}},{"kind":"Field","name":{"kind":"Name","value":"calendarFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"calendarLayout"}},{"kind":"Field","name":{"kind":"Name","value":"visibility"}},{"kind":"Field","name":{"kind":"Name","value":"createdByUserWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"viewFields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFieldGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldGroupFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFilters"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterGroupFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewSorts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewSortFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewGroupFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewField"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFieldGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewFields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFilter"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFilterGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"parentViewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"logicalOperator"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewSortFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewSort"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"direction"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"fieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<ViewFragmentFragment, unknown>;
export const ActivateSkillDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"ActivateSkill"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"activateSkill"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SkillFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SkillFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Skill"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<ActivateSkillMutation, ActivateSkillMutationVariables>;
export const AssignRoleToAgentDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"AssignRoleToAgent"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"agentId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"roleId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"assignRoleToAgent"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"agentId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"agentId"}}},{"kind":"Argument","name":{"kind":"Name","value":"roleId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"roleId"}}}]}]}}]} as unknown as DocumentNode<AssignRoleToAgentMutation, AssignRoleToAgentMutationVariables>;
export const CreateChatThreadDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateChatThread"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createChatThread"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]}}]} as unknown as DocumentNode<CreateChatThreadMutation, CreateChatThreadMutationVariables>;
@@ -7704,7 +7704,7 @@ export const ObjectRecordCountsDocument = {"kind":"Document","definitions":[{"ki
export const SkipBookOnboardingStepDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SkipBookOnboardingStep"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"skipBookOnboardingStep"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"success"}}]}}]}}]} as unknown as DocumentNode<SkipBookOnboardingStepMutation, SkipBookOnboardingStepMutationVariables>;
export const SkipSyncEmailOnboardingStepDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SkipSyncEmailOnboardingStep"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"skipSyncEmailOnboardingStep"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"success"}}]}}]}}]} as unknown as DocumentNode<SkipSyncEmailOnboardingStepMutation, SkipSyncEmailOnboardingStepMutationVariables>;
export const UpdatePageLayoutWithTabsAndWidgetsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdatePageLayoutWithTabsAndWidgets"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdatePageLayoutWithTabsInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updatePageLayoutWithTabsAndWidgets"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}},{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"defaultTabToFocusOnMobileAndSidePanelId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"tabs"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutTabFragment"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutWidgetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidget"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"gridPosition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}}]}},{"kind":"Field","name":{"kind":"Name","value":"position"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetGridPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetVerticalListPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"index"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetCanvasPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"configuration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LineChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"isStacked"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PieChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"groupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"groupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"dateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"orderBy"}},{"kind":"Field","name":{"kind":"Name","value":"manualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showCenterMetric"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"hideEmptyCategory"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AggregateChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"format"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}},{"kind":"Field","name":{"kind":"Name","value":"ratioAggregateConfig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"optionValue"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GaugeChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IframeConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StandaloneRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"body"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocknote"}},{"kind":"Field","name":{"kind":"Name","value":"markdown"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CalendarConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"newFieldDefaultVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"shouldAllowUserToSeeHiddenFields"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FilesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TasksConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TimelineConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowRunConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowVersionConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FrontComponentConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutTabId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutTabFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutTab"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"widgets"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutWidgetFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<UpdatePageLayoutWithTabsAndWidgetsMutation, UpdatePageLayoutWithTabsAndWidgetsMutationVariables>;
-export const UpsertFieldsWidgetDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpsertFieldsWidget"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpsertFieldsWidgetInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"upsertFieldsWidget"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewField"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewFieldGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewFields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewFilter"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewFilterGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"parentViewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"logicalOperator"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewSortFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewSort"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"direction"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"fieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreView"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isCompact"}},{"kind":"Field","name":{"kind":"Name","value":"openRecordIn"}},{"kind":"Field","name":{"kind":"Name","value":"kanbanAggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"kanbanAggregateOperationFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"mainGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"shouldHideEmptyGroups"}},{"kind":"Field","name":{"kind":"Name","value":"anyFieldFilterValue"}},{"kind":"Field","name":{"kind":"Name","value":"calendarFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"calendarLayout"}},{"kind":"Field","name":{"kind":"Name","value":"visibility"}},{"kind":"Field","name":{"kind":"Name","value":"createdByUserWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"viewFields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFieldGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldGroupFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFilters"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterGroupFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewSorts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewSortFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewGroupFragment"}}]}}]}}]} as unknown as DocumentNode<UpsertFieldsWidgetMutation, UpsertFieldsWidgetMutationVariables>;
+export const UpsertFieldsWidgetDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpsertFieldsWidget"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpsertFieldsWidgetInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"upsertFieldsWidget"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewField"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFieldGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewFields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFilter"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFilterGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"parentViewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"logicalOperator"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewSortFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewSort"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"direction"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"fieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"View"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isCompact"}},{"kind":"Field","name":{"kind":"Name","value":"openRecordIn"}},{"kind":"Field","name":{"kind":"Name","value":"kanbanAggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"kanbanAggregateOperationFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"mainGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"shouldHideEmptyGroups"}},{"kind":"Field","name":{"kind":"Name","value":"anyFieldFilterValue"}},{"kind":"Field","name":{"kind":"Name","value":"calendarFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"calendarLayout"}},{"kind":"Field","name":{"kind":"Name","value":"visibility"}},{"kind":"Field","name":{"kind":"Name","value":"createdByUserWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"viewFields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFieldGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldGroupFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFilters"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterGroupFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewSorts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewSortFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewGroupFragment"}}]}}]}}]} as unknown as DocumentNode<UpsertFieldsWidgetMutation, UpsertFieldsWidgetMutationVariables>;
export const FindAllPageLayoutsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindAllPageLayouts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getPageLayouts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutWidgetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidget"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"gridPosition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}}]}},{"kind":"Field","name":{"kind":"Name","value":"position"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetGridPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetVerticalListPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"index"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetCanvasPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"configuration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LineChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"isStacked"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PieChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"groupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"groupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"dateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"orderBy"}},{"kind":"Field","name":{"kind":"Name","value":"manualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showCenterMetric"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"hideEmptyCategory"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AggregateChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"format"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}},{"kind":"Field","name":{"kind":"Name","value":"ratioAggregateConfig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"optionValue"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GaugeChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IframeConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StandaloneRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"body"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocknote"}},{"kind":"Field","name":{"kind":"Name","value":"markdown"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CalendarConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"newFieldDefaultVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"shouldAllowUserToSeeHiddenFields"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FilesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TasksConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TimelineConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowRunConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowVersionConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FrontComponentConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutTabId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutTabFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutTab"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"widgets"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutWidgetFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayout"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"defaultTabToFocusOnMobileAndSidePanelId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"tabs"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutTabFragment"}}]}}]}}]} as unknown as DocumentNode<FindAllPageLayoutsQuery, FindAllPageLayoutsQueryVariables>;
export const FindAllRecordPageLayoutsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindAllRecordPageLayouts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getPageLayouts"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"pageLayoutType"},"value":{"kind":"EnumValue","value":"RECORD_PAGE"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutWidgetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidget"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"gridPosition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}}]}},{"kind":"Field","name":{"kind":"Name","value":"position"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetGridPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetVerticalListPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"index"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetCanvasPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"configuration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LineChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"isStacked"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PieChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"groupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"groupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"dateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"orderBy"}},{"kind":"Field","name":{"kind":"Name","value":"manualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showCenterMetric"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"hideEmptyCategory"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AggregateChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"format"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}},{"kind":"Field","name":{"kind":"Name","value":"ratioAggregateConfig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"optionValue"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GaugeChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IframeConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StandaloneRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"body"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocknote"}},{"kind":"Field","name":{"kind":"Name","value":"markdown"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CalendarConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"newFieldDefaultVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"shouldAllowUserToSeeHiddenFields"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FilesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TasksConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TimelineConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowRunConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowVersionConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FrontComponentConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutTabId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutTabFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutTab"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"widgets"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutWidgetFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayout"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"defaultTabToFocusOnMobileAndSidePanelId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"tabs"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutTabFragment"}}]}}]}}]} as unknown as DocumentNode<FindAllRecordPageLayoutsQuery, FindAllRecordPageLayoutsQueryVariables>;
export const BarChartDataDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"BarChartData"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartDataInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"barChartData"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"}},{"kind":"Field","name":{"kind":"Name","value":"indexBy"}},{"kind":"Field","name":{"kind":"Name","value":"keys"}},{"kind":"Field","name":{"kind":"Name","value":"series"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"label"}}]}},{"kind":"Field","name":{"kind":"Name","value":"xAxisLabel"}},{"kind":"Field","name":{"kind":"Name","value":"yAxisLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showLegend"}},{"kind":"Field","name":{"kind":"Name","value":"showDataLabels"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"hasTooManyGroups"}},{"kind":"Field","name":{"kind":"Name","value":"formattedToRawLookup"}}]}}]}}]} as unknown as DocumentNode<BarChartDataQuery, BarChartDataQueryVariables>;
@@ -7790,50 +7790,50 @@ export const VerifyTwoFactorAuthenticationMethodForAuthenticatedUserDocument = {
export const DeleteUserAccountDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteUserAccount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteUser"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode<DeleteUserAccountMutation, DeleteUserAccountMutationVariables>;
export const DeleteUserWorkspaceDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteUserWorkspace"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"workspaceMemberIdToDelete"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteUserFromWorkspace"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"workspaceMemberIdToDelete"},"value":{"kind":"Variable","name":{"kind":"Name","value":"workspaceMemberIdToDelete"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode<DeleteUserWorkspaceMutation, DeleteUserWorkspaceMutationVariables>;
export const GetCurrentUserDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetCurrentUser"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currentUser"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"UserQueryFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"WorkspaceMemberQueryFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkspaceMember"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"colorScheme"}},{"kind":"Field","name":{"kind":"Name","value":"avatarUrl"}},{"kind":"Field","name":{"kind":"Name","value":"locale"}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}},{"kind":"Field","name":{"kind":"Name","value":"userWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"timeZone"}},{"kind":"Field","name":{"kind":"Name","value":"dateFormat"}},{"kind":"Field","name":{"kind":"Name","value":"timeFormat"}},{"kind":"Field","name":{"kind":"Name","value":"calendarStartDay"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PartialWorkspaceMemberQueryFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkspaceMember"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"avatarUrl"}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}},{"kind":"Field","name":{"kind":"Name","value":"userWorkspaceId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"DeletedWorkspaceMemberQueryFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"DeletedWorkspaceMember"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"avatarUrl"}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RowLevelPermissionPredicateFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RowLevelPermissionPredicate"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMemberFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMemberSubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicateGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInRowLevelPermissionPredicateGroup"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"parentRowLevelPermissionPredicateGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"logicalOperator"}},{"kind":"Field","name":{"kind":"Name","value":"positionInRowLevelPermissionPredicateGroup"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ObjectPermissionFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ObjectPermission"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"canReadObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDeleteObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canDestroyObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"restrictedFields"}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicates"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RowLevelPermissionPredicateFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicateGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroupFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"WorkspaceUrlsFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkspaceUrls"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"subdomainUrl"}},{"kind":"Field","name":{"kind":"Name","value":"customUrl"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseItemFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhase"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"start_date"}},{"kind":"Field","name":{"kind":"Name","value":"end_date"}},{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseItemFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CurrentBillingSubscriptionFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscription"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"interval"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"}},{"kind":"Field","name":{"kind":"Name","value":"currentPeriodEnd"}},{"kind":"Field","name":{"kind":"Name","value":"phases"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"billingSubscriptionItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"hasReachedCurrentPeriodCap"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}},{"kind":"Field","name":{"kind":"Name","value":"stripePriceId"}},{"kind":"Field","name":{"kind":"Name","value":"billingProduct"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"images"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"productKey"}},{"kind":"Field","name":{"kind":"Name","value":"planKey"}},{"kind":"Field","name":{"kind":"Name","value":"priceUsageBased"}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BillingSubscriptionFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscription"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"}},{"kind":"Field","name":{"kind":"Name","value":"phases"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RoleFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Role"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllSettings"}},{"kind":"Field","name":{"kind":"Name","value":"canAccessAllTools"}},{"kind":"Field","name":{"kind":"Name","value":"isEditable"}},{"kind":"Field","name":{"kind":"Name","value":"canReadAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDeleteAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canDestroyAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToUsers"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToAgents"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToApiKeys"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AvailableWorkspaceFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AvailableWorkspace"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"loginToken"}},{"kind":"Field","name":{"kind":"Name","value":"inviteHash"}},{"kind":"Field","name":{"kind":"Name","value":"personalInviteToken"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceUrls"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"subdomainUrl"}},{"kind":"Field","name":{"kind":"Name","value":"customUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"logo"}},{"kind":"Field","name":{"kind":"Name","value":"sso"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"issuer"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"status"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AvailableWorkspacesFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AvailableWorkspaces"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"availableWorkspacesForSignIn"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AvailableWorkspaceFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"availableWorkspacesForSignUp"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AvailableWorkspaceFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"UserQueryFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"User"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"hasPassword"}},{"kind":"Field","name":{"kind":"Name","value":"canAccessFullAdminPanel"}},{"kind":"Field","name":{"kind":"Name","value":"canImpersonate"}},{"kind":"Field","name":{"kind":"Name","value":"supportUserHash"}},{"kind":"Field","name":{"kind":"Name","value":"onboardingStatus"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMember"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"WorkspaceMemberQueryFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMembers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PartialWorkspaceMemberQueryFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"deletedWorkspaceMembers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DeletedWorkspaceMemberQueryFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"currentUserWorkspace"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"permissionFlags"}},{"kind":"Field","name":{"kind":"Name","value":"objectsPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ObjectPermissionFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"twoFactorAuthenticationMethodSummary"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"twoFactorAuthenticationMethodId"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"strategy"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"currentWorkspace"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"logo"}},{"kind":"Field","name":{"kind":"Name","value":"inviteHash"}},{"kind":"Field","name":{"kind":"Name","value":"allowImpersonation"}},{"kind":"Field","name":{"kind":"Name","value":"activationStatus"}},{"kind":"Field","name":{"kind":"Name","value":"isPublicInviteLinkEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isGoogleAuthEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isMicrosoftAuthEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isPasswordAuthEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isGoogleAuthBypassEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isMicrosoftAuthBypassEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isPasswordAuthBypassEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"subdomain"}},{"kind":"Field","name":{"kind":"Name","value":"customDomain"}},{"kind":"Field","name":{"kind":"Name","value":"hasValidEnterpriseKey"}},{"kind":"Field","name":{"kind":"Name","value":"hasValidSignedEnterpriseKey"}},{"kind":"Field","name":{"kind":"Name","value":"hasValidEnterpriseValidityToken"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceCustomApplication"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"isCustomDomainEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceUrls"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"WorkspaceUrlsFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"featureFlags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"metadataVersion"}},{"kind":"Field","name":{"kind":"Name","value":"currentBillingSubscription"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CurrentBillingSubscriptionFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"billingSubscriptions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"billingEntitlements"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMembersCount"}},{"kind":"Field","name":{"kind":"Name","value":"defaultRole"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RoleFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"fastModel"}},{"kind":"Field","name":{"kind":"Name","value":"smartModel"}},{"kind":"Field","name":{"kind":"Name","value":"aiAdditionalInstructions"}},{"kind":"Field","name":{"kind":"Name","value":"autoEnableNewAiModels"}},{"kind":"Field","name":{"kind":"Name","value":"disabledAiModelIds"}},{"kind":"Field","name":{"kind":"Name","value":"enabledAiModelIds"}},{"kind":"Field","name":{"kind":"Name","value":"useRecommendedModels"}},{"kind":"Field","name":{"kind":"Name","value":"isTwoFactorAuthenticationEnforced"}},{"kind":"Field","name":{"kind":"Name","value":"trashRetentionDays"}},{"kind":"Field","name":{"kind":"Name","value":"eventLogRetentionDays"}},{"kind":"Field","name":{"kind":"Name","value":"editableProfileFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"availableWorkspaces"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AvailableWorkspacesFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"userVars"}}]}}]} as unknown as DocumentNode<GetCurrentUserQuery, GetCurrentUserQueryVariables>;
-export const CreateCoreViewDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateCoreView"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateViewInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createCoreView"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewField"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewFieldGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewFields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewFilter"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewFilterGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"parentViewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"logicalOperator"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewSortFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewSort"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"direction"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"fieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreView"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isCompact"}},{"kind":"Field","name":{"kind":"Name","value":"openRecordIn"}},{"kind":"Field","name":{"kind":"Name","value":"kanbanAggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"kanbanAggregateOperationFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"mainGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"shouldHideEmptyGroups"}},{"kind":"Field","name":{"kind":"Name","value":"anyFieldFilterValue"}},{"kind":"Field","name":{"kind":"Name","value":"calendarFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"calendarLayout"}},{"kind":"Field","name":{"kind":"Name","value":"visibility"}},{"kind":"Field","name":{"kind":"Name","value":"createdByUserWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"viewFields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFieldGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldGroupFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFilters"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterGroupFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewSorts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewSortFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewGroupFragment"}}]}}]}}]} as unknown as DocumentNode<CreateCoreViewMutation, CreateCoreViewMutationVariables>;
-export const CreateCoreViewFieldDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateCoreViewField"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateViewFieldInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createCoreViewField"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewField"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<CreateCoreViewFieldMutation, CreateCoreViewFieldMutationVariables>;
-export const CreateCoreViewFieldGroupDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateCoreViewFieldGroup"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateViewFieldGroupInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createCoreViewFieldGroup"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldGroupFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewField"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewFieldGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewFields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}}]}}]} as unknown as DocumentNode<CreateCoreViewFieldGroupMutation, CreateCoreViewFieldGroupMutationVariables>;
-export const CreateCoreViewFilterDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateCoreViewFilter"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateViewFilterInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createCoreViewFilter"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewFilter"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<CreateCoreViewFilterMutation, CreateCoreViewFilterMutationVariables>;
-export const CreateCoreViewFilterGroupDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateCoreViewFilterGroup"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateViewFilterGroupInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createCoreViewFilterGroup"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterGroupFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewFilterGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"parentViewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"logicalOperator"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}}]}}]} as unknown as DocumentNode<CreateCoreViewFilterGroupMutation, CreateCoreViewFilterGroupMutationVariables>;
-export const CreateCoreViewGroupDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateCoreViewGroup"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateViewGroupInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createCoreViewGroup"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewGroupFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"fieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<CreateCoreViewGroupMutation, CreateCoreViewGroupMutationVariables>;
-export const CreateCoreViewSortDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateCoreViewSort"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateViewSortInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createCoreViewSort"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewSortFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewSortFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewSort"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"direction"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<CreateCoreViewSortMutation, CreateCoreViewSortMutationVariables>;
-export const CreateManyCoreViewFieldGroupsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateManyCoreViewFieldGroups"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"inputs"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateViewFieldGroupInput"}}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createManyCoreViewFieldGroups"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"inputs"},"value":{"kind":"Variable","name":{"kind":"Name","value":"inputs"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldGroupFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewField"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewFieldGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewFields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}}]}}]} as unknown as DocumentNode<CreateManyCoreViewFieldGroupsMutation, CreateManyCoreViewFieldGroupsMutationVariables>;
-export const CreateManyCoreViewFieldsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateManyCoreViewFields"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"inputs"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateViewFieldInput"}}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createManyCoreViewFields"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"inputs"},"value":{"kind":"Variable","name":{"kind":"Name","value":"inputs"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewField"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<CreateManyCoreViewFieldsMutation, CreateManyCoreViewFieldsMutationVariables>;
-export const CreateManyCoreViewGroupsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateManyCoreViewGroups"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"inputs"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateViewGroupInput"}}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createManyCoreViewGroups"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"inputs"},"value":{"kind":"Variable","name":{"kind":"Name","value":"inputs"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewGroupFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"fieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<CreateManyCoreViewGroupsMutation, CreateManyCoreViewGroupsMutationVariables>;
-export const DeleteCoreViewDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteCoreView"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteCoreView"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}]}]}}]} as unknown as DocumentNode<DeleteCoreViewMutation, DeleteCoreViewMutationVariables>;
-export const DeleteCoreViewFieldDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteCoreViewField"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"DeleteViewFieldInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteCoreViewField"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewField"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<DeleteCoreViewFieldMutation, DeleteCoreViewFieldMutationVariables>;
-export const DeleteCoreViewFieldGroupDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteCoreViewFieldGroup"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"DeleteViewFieldGroupInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteCoreViewFieldGroup"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldGroupFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewField"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewFieldGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewFields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}}]}}]} as unknown as DocumentNode<DeleteCoreViewFieldGroupMutation, DeleteCoreViewFieldGroupMutationVariables>;
-export const DeleteCoreViewFilterDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteCoreViewFilter"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"DeleteViewFilterInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteCoreViewFilter"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewFilter"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<DeleteCoreViewFilterMutation, DeleteCoreViewFilterMutationVariables>;
-export const DeleteCoreViewFilterGroupDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteCoreViewFilterGroup"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteCoreViewFilterGroup"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}]}]}}]} as unknown as DocumentNode<DeleteCoreViewFilterGroupMutation, DeleteCoreViewFilterGroupMutationVariables>;
-export const DeleteCoreViewGroupDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteCoreViewGroup"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"DeleteViewGroupInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteCoreViewGroup"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewGroupFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"fieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<DeleteCoreViewGroupMutation, DeleteCoreViewGroupMutationVariables>;
-export const DeleteCoreViewSortDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteCoreViewSort"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"DeleteViewSortInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteCoreViewSort"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}]}]}}]} as unknown as DocumentNode<DeleteCoreViewSortMutation, DeleteCoreViewSortMutationVariables>;
-export const DestroyCoreViewDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DestroyCoreView"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"destroyCoreView"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}]}]}}]} as unknown as DocumentNode<DestroyCoreViewMutation, DestroyCoreViewMutationVariables>;
-export const DestroyCoreViewFieldDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DestroyCoreViewField"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"DestroyViewFieldInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"destroyCoreViewField"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewField"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<DestroyCoreViewFieldMutation, DestroyCoreViewFieldMutationVariables>;
-export const DestroyCoreViewFilterDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DestroyCoreViewFilter"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"DestroyViewFilterInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"destroyCoreViewFilter"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewFilter"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<DestroyCoreViewFilterMutation, DestroyCoreViewFilterMutationVariables>;
-export const DestroyCoreViewFilterGroupDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DestroyCoreViewFilterGroup"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"destroyCoreViewFilterGroup"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}]}]}}]} as unknown as DocumentNode<DestroyCoreViewFilterGroupMutation, DestroyCoreViewFilterGroupMutationVariables>;
-export const DestroyCoreViewGroupDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DestroyCoreViewGroup"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"DestroyViewGroupInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"destroyCoreViewGroup"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewGroupFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"fieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<DestroyCoreViewGroupMutation, DestroyCoreViewGroupMutationVariables>;
-export const DestroyCoreViewSortDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DestroyCoreViewSort"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"DestroyViewSortInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"destroyCoreViewSort"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}]}]}}]} as unknown as DocumentNode<DestroyCoreViewSortMutation, DestroyCoreViewSortMutationVariables>;
-export const UpdateCoreViewDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateCoreView"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateViewInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateCoreView"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}},{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewField"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewFieldGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewFields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewFilter"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewFilterGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"parentViewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"logicalOperator"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewSortFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewSort"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"direction"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"fieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreView"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isCompact"}},{"kind":"Field","name":{"kind":"Name","value":"openRecordIn"}},{"kind":"Field","name":{"kind":"Name","value":"kanbanAggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"kanbanAggregateOperationFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"mainGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"shouldHideEmptyGroups"}},{"kind":"Field","name":{"kind":"Name","value":"anyFieldFilterValue"}},{"kind":"Field","name":{"kind":"Name","value":"calendarFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"calendarLayout"}},{"kind":"Field","name":{"kind":"Name","value":"visibility"}},{"kind":"Field","name":{"kind":"Name","value":"createdByUserWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"viewFields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFieldGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldGroupFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFilters"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterGroupFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewSorts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewSortFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewGroupFragment"}}]}}]}}]} as unknown as DocumentNode<UpdateCoreViewMutation, UpdateCoreViewMutationVariables>;
-export const UpdateCoreViewFieldDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateCoreViewField"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateViewFieldInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateCoreViewField"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewField"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<UpdateCoreViewFieldMutation, UpdateCoreViewFieldMutationVariables>;
-export const UpdateCoreViewFieldGroupDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateCoreViewFieldGroup"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateViewFieldGroupInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateCoreViewFieldGroup"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldGroupFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewField"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewFieldGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewFields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}}]}}]} as unknown as DocumentNode<UpdateCoreViewFieldGroupMutation, UpdateCoreViewFieldGroupMutationVariables>;
-export const UpdateCoreViewFilterDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateCoreViewFilter"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateViewFilterInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateCoreViewFilter"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewFilter"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<UpdateCoreViewFilterMutation, UpdateCoreViewFilterMutationVariables>;
-export const UpdateCoreViewFilterGroupDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateCoreViewFilterGroup"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateViewFilterGroupInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateCoreViewFilterGroup"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}},{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterGroupFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewFilterGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"parentViewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"logicalOperator"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}}]}}]} as unknown as DocumentNode<UpdateCoreViewFilterGroupMutation, UpdateCoreViewFilterGroupMutationVariables>;
-export const UpdateCoreViewGroupDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateCoreViewGroup"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateViewGroupInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateCoreViewGroup"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewGroupFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"fieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<UpdateCoreViewGroupMutation, UpdateCoreViewGroupMutationVariables>;
-export const UpdateCoreViewSortDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateCoreViewSort"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateViewSortInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateCoreViewSort"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewSortFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewSortFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewSort"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"direction"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<UpdateCoreViewSortMutation, UpdateCoreViewSortMutationVariables>;
-export const FindAllCoreViewsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindAllCoreViews"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"viewTypes"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ViewType"}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getCoreViews"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"viewTypes"},"value":{"kind":"Variable","name":{"kind":"Name","value":"viewTypes"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewField"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewFieldGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewFields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewFilter"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewFilterGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"parentViewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"logicalOperator"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewSortFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewSort"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"direction"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"fieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreView"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isCompact"}},{"kind":"Field","name":{"kind":"Name","value":"openRecordIn"}},{"kind":"Field","name":{"kind":"Name","value":"kanbanAggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"kanbanAggregateOperationFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"mainGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"shouldHideEmptyGroups"}},{"kind":"Field","name":{"kind":"Name","value":"anyFieldFilterValue"}},{"kind":"Field","name":{"kind":"Name","value":"calendarFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"calendarLayout"}},{"kind":"Field","name":{"kind":"Name","value":"visibility"}},{"kind":"Field","name":{"kind":"Name","value":"createdByUserWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"viewFields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFieldGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldGroupFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFilters"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterGroupFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewSorts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewSortFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewGroupFragment"}}]}}]}}]} as unknown as DocumentNode<FindAllCoreViewsQuery, FindAllCoreViewsQueryVariables>;
-export const FindFieldsWidgetCoreViewsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindFieldsWidgetCoreViews"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"viewTypes"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ViewType"}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getCoreViews"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"viewTypes"},"value":{"kind":"Variable","name":{"kind":"Name","value":"viewTypes"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewField"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewFieldGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewFields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewFilter"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewFilterGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"parentViewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"logicalOperator"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewSortFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewSort"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"direction"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"fieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreView"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isCompact"}},{"kind":"Field","name":{"kind":"Name","value":"openRecordIn"}},{"kind":"Field","name":{"kind":"Name","value":"kanbanAggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"kanbanAggregateOperationFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"mainGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"shouldHideEmptyGroups"}},{"kind":"Field","name":{"kind":"Name","value":"anyFieldFilterValue"}},{"kind":"Field","name":{"kind":"Name","value":"calendarFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"calendarLayout"}},{"kind":"Field","name":{"kind":"Name","value":"visibility"}},{"kind":"Field","name":{"kind":"Name","value":"createdByUserWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"viewFields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFieldGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldGroupFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFilters"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterGroupFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewSorts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewSortFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewGroupFragment"}}]}}]}}]} as unknown as DocumentNode<FindFieldsWidgetCoreViewsQuery, FindFieldsWidgetCoreViewsQueryVariables>;
-export const FindManyCoreViewFieldsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindManyCoreViewFields"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"viewId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getCoreViewFields"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"viewId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"viewId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewField"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<FindManyCoreViewFieldsQuery, FindManyCoreViewFieldsQueryVariables>;
-export const FindManyCoreViewFilterGroupsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindManyCoreViewFilterGroups"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"viewId"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getCoreViewFilterGroups"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"viewId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"viewId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterGroupFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewFilterGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"parentViewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"logicalOperator"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}}]}}]} as unknown as DocumentNode<FindManyCoreViewFilterGroupsQuery, FindManyCoreViewFilterGroupsQueryVariables>;
-export const FindManyCoreViewFiltersDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindManyCoreViewFilters"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"viewId"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getCoreViewFilters"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"viewId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"viewId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewFilter"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<FindManyCoreViewFiltersQuery, FindManyCoreViewFiltersQueryVariables>;
-export const FindManyCoreViewGroupsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindManyCoreViewGroups"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"viewId"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getCoreViewGroups"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"viewId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"viewId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewGroupFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"fieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<FindManyCoreViewGroupsQuery, FindManyCoreViewGroupsQueryVariables>;
-export const FindManyCoreViewSortsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindManyCoreViewSorts"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"viewId"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getCoreViewSorts"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"viewId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"viewId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewSortFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewSortFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewSort"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"direction"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<FindManyCoreViewSortsQuery, FindManyCoreViewSortsQueryVariables>;
-export const FindManyCoreViewsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindManyCoreViews"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"objectMetadataId"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"viewTypes"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ViewType"}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getCoreViews"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"objectMetadataId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"objectMetadataId"}}},{"kind":"Argument","name":{"kind":"Name","value":"viewTypes"},"value":{"kind":"Variable","name":{"kind":"Name","value":"viewTypes"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewField"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewFieldGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewFields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewFilter"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewFilterGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"parentViewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"logicalOperator"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewSortFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewSort"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"direction"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"fieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreView"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isCompact"}},{"kind":"Field","name":{"kind":"Name","value":"openRecordIn"}},{"kind":"Field","name":{"kind":"Name","value":"kanbanAggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"kanbanAggregateOperationFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"mainGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"shouldHideEmptyGroups"}},{"kind":"Field","name":{"kind":"Name","value":"anyFieldFilterValue"}},{"kind":"Field","name":{"kind":"Name","value":"calendarFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"calendarLayout"}},{"kind":"Field","name":{"kind":"Name","value":"visibility"}},{"kind":"Field","name":{"kind":"Name","value":"createdByUserWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"viewFields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFieldGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldGroupFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFilters"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterGroupFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewSorts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewSortFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewGroupFragment"}}]}}]}}]} as unknown as DocumentNode<FindManyCoreViewsQuery, FindManyCoreViewsQueryVariables>;
-export const FindOneCoreViewDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindOneCoreView"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getCoreView"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewField"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewFieldGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewFields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewFilter"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewFilterGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"parentViewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"logicalOperator"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewSortFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewSort"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"direction"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"fieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreView"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isCompact"}},{"kind":"Field","name":{"kind":"Name","value":"openRecordIn"}},{"kind":"Field","name":{"kind":"Name","value":"kanbanAggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"kanbanAggregateOperationFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"mainGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"shouldHideEmptyGroups"}},{"kind":"Field","name":{"kind":"Name","value":"anyFieldFilterValue"}},{"kind":"Field","name":{"kind":"Name","value":"calendarFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"calendarLayout"}},{"kind":"Field","name":{"kind":"Name","value":"visibility"}},{"kind":"Field","name":{"kind":"Name","value":"createdByUserWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"viewFields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFieldGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldGroupFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFilters"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterGroupFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewSorts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewSortFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewGroupFragment"}}]}}]}}]} as unknown as DocumentNode<FindOneCoreViewQuery, FindOneCoreViewQueryVariables>;
-export const FindOneCoreViewFieldDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindOneCoreViewField"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getCoreViewField"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewField"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<FindOneCoreViewFieldQuery, FindOneCoreViewFieldQueryVariables>;
-export const FindOneCoreViewFilterDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindOneCoreViewFilter"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getCoreViewFilter"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewFilter"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<FindOneCoreViewFilterQuery, FindOneCoreViewFilterQueryVariables>;
-export const FindOneCoreViewFilterGroupDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindOneCoreViewFilterGroup"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getCoreViewFilterGroup"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterGroupFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewFilterGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"parentViewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"logicalOperator"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}}]}}]} as unknown as DocumentNode<FindOneCoreViewFilterGroupQuery, FindOneCoreViewFilterGroupQueryVariables>;
-export const FindOneCoreViewGroupDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindOneCoreViewGroup"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getCoreViewGroup"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewGroupFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"fieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<FindOneCoreViewGroupQuery, FindOneCoreViewGroupQueryVariables>;
-export const FindOneCoreViewSortDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindOneCoreViewSort"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getCoreViewSort"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewSortFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewSortFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreViewSort"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"direction"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<FindOneCoreViewSortQuery, FindOneCoreViewSortQueryVariables>;
+export const CreateManyViewFieldGroupsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateManyViewFieldGroups"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"inputs"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateViewFieldGroupInput"}}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createManyViewFieldGroups"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"inputs"},"value":{"kind":"Variable","name":{"kind":"Name","value":"inputs"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldGroupFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewField"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFieldGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewFields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}}]}}]} as unknown as DocumentNode<CreateManyViewFieldGroupsMutation, CreateManyViewFieldGroupsMutationVariables>;
+export const CreateManyViewFieldsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateManyViewFields"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"inputs"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateViewFieldInput"}}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createManyViewFields"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"inputs"},"value":{"kind":"Variable","name":{"kind":"Name","value":"inputs"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewField"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<CreateManyViewFieldsMutation, CreateManyViewFieldsMutationVariables>;
+export const CreateManyViewGroupsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateManyViewGroups"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"inputs"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateViewGroupInput"}}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createManyViewGroups"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"inputs"},"value":{"kind":"Variable","name":{"kind":"Name","value":"inputs"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewGroupFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"fieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<CreateManyViewGroupsMutation, CreateManyViewGroupsMutationVariables>;
+export const CreateViewDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateView"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateViewInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createView"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewField"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFieldGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewFields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFilter"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFilterGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"parentViewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"logicalOperator"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewSortFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewSort"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"direction"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"fieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"View"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isCompact"}},{"kind":"Field","name":{"kind":"Name","value":"openRecordIn"}},{"kind":"Field","name":{"kind":"Name","value":"kanbanAggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"kanbanAggregateOperationFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"mainGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"shouldHideEmptyGroups"}},{"kind":"Field","name":{"kind":"Name","value":"anyFieldFilterValue"}},{"kind":"Field","name":{"kind":"Name","value":"calendarFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"calendarLayout"}},{"kind":"Field","name":{"kind":"Name","value":"visibility"}},{"kind":"Field","name":{"kind":"Name","value":"createdByUserWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"viewFields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFieldGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldGroupFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFilters"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterGroupFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewSorts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewSortFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewGroupFragment"}}]}}]}}]} as unknown as DocumentNode<CreateViewMutation, CreateViewMutationVariables>;
+export const CreateViewFieldDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateViewField"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateViewFieldInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createViewField"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewField"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<CreateViewFieldMutation, CreateViewFieldMutationVariables>;
+export const CreateViewFieldGroupDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateViewFieldGroup"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateViewFieldGroupInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createViewFieldGroup"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldGroupFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewField"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFieldGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewFields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}}]}}]} as unknown as DocumentNode<CreateViewFieldGroupMutation, CreateViewFieldGroupMutationVariables>;
+export const CreateViewFilterDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateViewFilter"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateViewFilterInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createViewFilter"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFilter"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<CreateViewFilterMutation, CreateViewFilterMutationVariables>;
+export const CreateViewFilterGroupDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateViewFilterGroup"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateViewFilterGroupInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createViewFilterGroup"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterGroupFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFilterGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"parentViewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"logicalOperator"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}}]}}]} as unknown as DocumentNode<CreateViewFilterGroupMutation, CreateViewFilterGroupMutationVariables>;
+export const CreateViewGroupDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateViewGroup"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateViewGroupInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createViewGroup"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewGroupFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"fieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<CreateViewGroupMutation, CreateViewGroupMutationVariables>;
+export const CreateViewSortDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateViewSort"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateViewSortInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createViewSort"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewSortFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewSortFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewSort"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"direction"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<CreateViewSortMutation, CreateViewSortMutationVariables>;
+export const DeleteViewDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteView"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteView"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}]}]}}]} as unknown as DocumentNode<DeleteViewMutation, DeleteViewMutationVariables>;
+export const DeleteViewFieldDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteViewField"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"DeleteViewFieldInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteViewField"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewField"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<DeleteViewFieldMutation, DeleteViewFieldMutationVariables>;
+export const DeleteViewFieldGroupDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteViewFieldGroup"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"DeleteViewFieldGroupInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteViewFieldGroup"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldGroupFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewField"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFieldGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewFields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}}]}}]} as unknown as DocumentNode<DeleteViewFieldGroupMutation, DeleteViewFieldGroupMutationVariables>;
+export const DeleteViewFilterDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteViewFilter"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"DeleteViewFilterInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteViewFilter"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFilter"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<DeleteViewFilterMutation, DeleteViewFilterMutationVariables>;
+export const DeleteViewFilterGroupDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteViewFilterGroup"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteViewFilterGroup"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}]}]}}]} as unknown as DocumentNode<DeleteViewFilterGroupMutation, DeleteViewFilterGroupMutationVariables>;
+export const DeleteViewGroupDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteViewGroup"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"DeleteViewGroupInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteViewGroup"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewGroupFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"fieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<DeleteViewGroupMutation, DeleteViewGroupMutationVariables>;
+export const DeleteViewSortDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteViewSort"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"DeleteViewSortInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteViewSort"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}]}]}}]} as unknown as DocumentNode<DeleteViewSortMutation, DeleteViewSortMutationVariables>;
+export const DestroyViewDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DestroyView"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"destroyView"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}]}]}}]} as unknown as DocumentNode<DestroyViewMutation, DestroyViewMutationVariables>;
+export const DestroyViewFieldDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DestroyViewField"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"DestroyViewFieldInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"destroyViewField"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewField"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<DestroyViewFieldMutation, DestroyViewFieldMutationVariables>;
+export const DestroyViewFilterDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DestroyViewFilter"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"DestroyViewFilterInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"destroyViewFilter"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFilter"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<DestroyViewFilterMutation, DestroyViewFilterMutationVariables>;
+export const DestroyViewFilterGroupDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DestroyViewFilterGroup"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"destroyViewFilterGroup"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}]}]}}]} as unknown as DocumentNode<DestroyViewFilterGroupMutation, DestroyViewFilterGroupMutationVariables>;
+export const DestroyViewGroupDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DestroyViewGroup"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"DestroyViewGroupInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"destroyViewGroup"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewGroupFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"fieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<DestroyViewGroupMutation, DestroyViewGroupMutationVariables>;
+export const DestroyViewSortDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DestroyViewSort"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"DestroyViewSortInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"destroyViewSort"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}]}]}}]} as unknown as DocumentNode<DestroyViewSortMutation, DestroyViewSortMutationVariables>;
+export const UpdateViewDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateView"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateViewInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateView"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}},{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewField"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFieldGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewFields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFilter"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFilterGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"parentViewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"logicalOperator"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewSortFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewSort"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"direction"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"fieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"View"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isCompact"}},{"kind":"Field","name":{"kind":"Name","value":"openRecordIn"}},{"kind":"Field","name":{"kind":"Name","value":"kanbanAggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"kanbanAggregateOperationFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"mainGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"shouldHideEmptyGroups"}},{"kind":"Field","name":{"kind":"Name","value":"anyFieldFilterValue"}},{"kind":"Field","name":{"kind":"Name","value":"calendarFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"calendarLayout"}},{"kind":"Field","name":{"kind":"Name","value":"visibility"}},{"kind":"Field","name":{"kind":"Name","value":"createdByUserWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"viewFields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFieldGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldGroupFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFilters"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterGroupFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewSorts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewSortFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewGroupFragment"}}]}}]}}]} as unknown as DocumentNode<UpdateViewMutation, UpdateViewMutationVariables>;
+export const UpdateViewFieldDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateViewField"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateViewFieldInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateViewField"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewField"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<UpdateViewFieldMutation, UpdateViewFieldMutationVariables>;
+export const UpdateViewFieldGroupDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateViewFieldGroup"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateViewFieldGroupInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateViewFieldGroup"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldGroupFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewField"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFieldGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewFields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}}]}}]} as unknown as DocumentNode<UpdateViewFieldGroupMutation, UpdateViewFieldGroupMutationVariables>;
+export const UpdateViewFilterDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateViewFilter"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateViewFilterInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateViewFilter"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFilter"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<UpdateViewFilterMutation, UpdateViewFilterMutationVariables>;
+export const UpdateViewFilterGroupDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateViewFilterGroup"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateViewFilterGroupInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateViewFilterGroup"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}},{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterGroupFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFilterGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"parentViewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"logicalOperator"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}}]}}]} as unknown as DocumentNode<UpdateViewFilterGroupMutation, UpdateViewFilterGroupMutationVariables>;
+export const UpdateViewGroupDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateViewGroup"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateViewGroupInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateViewGroup"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewGroupFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"fieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<UpdateViewGroupMutation, UpdateViewGroupMutationVariables>;
+export const UpdateViewSortDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateViewSort"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateViewSortInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateViewSort"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewSortFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewSortFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewSort"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"direction"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<UpdateViewSortMutation, UpdateViewSortMutationVariables>;
+export const FindAllViewsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindAllViews"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"viewTypes"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ViewType"}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getViews"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"viewTypes"},"value":{"kind":"Variable","name":{"kind":"Name","value":"viewTypes"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewField"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFieldGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewFields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFilter"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFilterGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"parentViewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"logicalOperator"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewSortFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewSort"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"direction"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"fieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"View"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isCompact"}},{"kind":"Field","name":{"kind":"Name","value":"openRecordIn"}},{"kind":"Field","name":{"kind":"Name","value":"kanbanAggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"kanbanAggregateOperationFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"mainGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"shouldHideEmptyGroups"}},{"kind":"Field","name":{"kind":"Name","value":"anyFieldFilterValue"}},{"kind":"Field","name":{"kind":"Name","value":"calendarFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"calendarLayout"}},{"kind":"Field","name":{"kind":"Name","value":"visibility"}},{"kind":"Field","name":{"kind":"Name","value":"createdByUserWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"viewFields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFieldGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldGroupFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFilters"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterGroupFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewSorts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewSortFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewGroupFragment"}}]}}]}}]} as unknown as DocumentNode<FindAllViewsQuery, FindAllViewsQueryVariables>;
+export const FindFieldsWidgetViewsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindFieldsWidgetViews"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"viewTypes"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ViewType"}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getViews"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"viewTypes"},"value":{"kind":"Variable","name":{"kind":"Name","value":"viewTypes"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewField"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFieldGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewFields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFilter"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFilterGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"parentViewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"logicalOperator"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewSortFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewSort"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"direction"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"fieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"View"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isCompact"}},{"kind":"Field","name":{"kind":"Name","value":"openRecordIn"}},{"kind":"Field","name":{"kind":"Name","value":"kanbanAggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"kanbanAggregateOperationFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"mainGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"shouldHideEmptyGroups"}},{"kind":"Field","name":{"kind":"Name","value":"anyFieldFilterValue"}},{"kind":"Field","name":{"kind":"Name","value":"calendarFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"calendarLayout"}},{"kind":"Field","name":{"kind":"Name","value":"visibility"}},{"kind":"Field","name":{"kind":"Name","value":"createdByUserWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"viewFields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFieldGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldGroupFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFilters"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterGroupFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewSorts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewSortFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewGroupFragment"}}]}}]}}]} as unknown as DocumentNode<FindFieldsWidgetViewsQuery, FindFieldsWidgetViewsQueryVariables>;
+export const FindManyViewFieldsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindManyViewFields"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"viewId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getViewFields"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"viewId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"viewId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewField"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<FindManyViewFieldsQuery, FindManyViewFieldsQueryVariables>;
+export const FindManyViewFilterGroupsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindManyViewFilterGroups"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"viewId"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getViewFilterGroups"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"viewId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"viewId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterGroupFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFilterGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"parentViewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"logicalOperator"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}}]}}]} as unknown as DocumentNode<FindManyViewFilterGroupsQuery, FindManyViewFilterGroupsQueryVariables>;
+export const FindManyViewFiltersDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindManyViewFilters"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"viewId"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getViewFilters"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"viewId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"viewId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFilter"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<FindManyViewFiltersQuery, FindManyViewFiltersQueryVariables>;
+export const FindManyViewGroupsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindManyViewGroups"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"viewId"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getViewGroups"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"viewId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"viewId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewGroupFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"fieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<FindManyViewGroupsQuery, FindManyViewGroupsQueryVariables>;
+export const FindManyViewSortsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindManyViewSorts"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"viewId"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getViewSorts"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"viewId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"viewId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewSortFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewSortFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewSort"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"direction"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<FindManyViewSortsQuery, FindManyViewSortsQueryVariables>;
+export const FindManyViewsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindManyViews"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"objectMetadataId"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"viewTypes"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ViewType"}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getViews"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"objectMetadataId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"objectMetadataId"}}},{"kind":"Argument","name":{"kind":"Name","value":"viewTypes"},"value":{"kind":"Variable","name":{"kind":"Name","value":"viewTypes"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewField"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFieldGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewFields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFilter"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFilterGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"parentViewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"logicalOperator"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewSortFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewSort"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"direction"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"fieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"View"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isCompact"}},{"kind":"Field","name":{"kind":"Name","value":"openRecordIn"}},{"kind":"Field","name":{"kind":"Name","value":"kanbanAggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"kanbanAggregateOperationFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"mainGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"shouldHideEmptyGroups"}},{"kind":"Field","name":{"kind":"Name","value":"anyFieldFilterValue"}},{"kind":"Field","name":{"kind":"Name","value":"calendarFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"calendarLayout"}},{"kind":"Field","name":{"kind":"Name","value":"visibility"}},{"kind":"Field","name":{"kind":"Name","value":"createdByUserWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"viewFields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFieldGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldGroupFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFilters"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterGroupFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewSorts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewSortFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewGroupFragment"}}]}}]}}]} as unknown as DocumentNode<FindManyViewsQuery, FindManyViewsQueryVariables>;
+export const FindOneViewDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindOneView"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getView"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewField"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFieldGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewFields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFilter"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFilterGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"parentViewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"logicalOperator"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewSortFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewSort"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"direction"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"fieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"View"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isCompact"}},{"kind":"Field","name":{"kind":"Name","value":"openRecordIn"}},{"kind":"Field","name":{"kind":"Name","value":"kanbanAggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"kanbanAggregateOperationFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"mainGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"shouldHideEmptyGroups"}},{"kind":"Field","name":{"kind":"Name","value":"anyFieldFilterValue"}},{"kind":"Field","name":{"kind":"Name","value":"calendarFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"calendarLayout"}},{"kind":"Field","name":{"kind":"Name","value":"visibility"}},{"kind":"Field","name":{"kind":"Name","value":"createdByUserWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"viewFields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFieldGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldGroupFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFilters"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterGroupFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewSorts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewSortFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewGroupFragment"}}]}}]}}]} as unknown as DocumentNode<FindOneViewQuery, FindOneViewQueryVariables>;
+export const FindOneViewFieldDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindOneViewField"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getViewField"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewField"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<FindOneViewFieldQuery, FindOneViewFieldQueryVariables>;
+export const FindOneViewFilterDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindOneViewFilter"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getViewFilter"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFilter"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<FindOneViewFilterQuery, FindOneViewFilterQueryVariables>;
+export const FindOneViewFilterGroupDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindOneViewFilterGroup"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getViewFilterGroup"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterGroupFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFilterGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"parentViewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"logicalOperator"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}}]}}]} as unknown as DocumentNode<FindOneViewFilterGroupQuery, FindOneViewFilterGroupQueryVariables>;
+export const FindOneViewGroupDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindOneViewGroup"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getViewGroup"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewGroupFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"fieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<FindOneViewGroupQuery, FindOneViewGroupQueryVariables>;
+export const FindOneViewSortDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindOneViewSort"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getViewSort"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewSortFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewSortFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewSort"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"direction"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<FindOneViewSortQuery, FindOneViewSortQueryVariables>;
export const DeleteWorkspaceInvitationDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteWorkspaceInvitation"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appTokenId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteWorkspaceInvitation"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"appTokenId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"appTokenId"}}}]}]}}]} as unknown as DocumentNode<DeleteWorkspaceInvitationMutation, DeleteWorkspaceInvitationMutationVariables>;
export const ResendWorkspaceInvitationDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"ResendWorkspaceInvitation"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"appTokenId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"resendWorkspaceInvitation"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"appTokenId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"appTokenId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"success"}},{"kind":"Field","name":{"kind":"Name","value":"errors"}},{"kind":"Field","name":{"kind":"Name","value":"result"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkspaceInvitation"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"expiresAt"}}]}}]}}]}}]}}]} as unknown as DocumentNode<ResendWorkspaceInvitationMutation, ResendWorkspaceInvitationMutationVariables>;
export const SendInvitationsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SendInvitations"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"emails"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"roleId"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sendInvitations"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"emails"},"value":{"kind":"Variable","name":{"kind":"Name","value":"emails"}}},{"kind":"Argument","name":{"kind":"Name","value":"roleId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"roleId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"success"}},{"kind":"Field","name":{"kind":"Name","value":"errors"}},{"kind":"Field","name":{"kind":"Name","value":"result"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkspaceInvitation"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"expiresAt"}}]}}]}}]}}]}}]} as unknown as DocumentNode<SendInvitationsMutation, SendInvitationsMutationVariables>;
diff --git a/packages/twenty-front/src/modules/ai/hooks/useBrowsingContext.ts b/packages/twenty-front/src/modules/ai/hooks/useBrowsingContext.ts
index 9affd3a4a1c..89e8931053d 100644
--- a/packages/twenty-front/src/modules/ai/hooks/useBrowsingContext.ts
+++ b/packages/twenty-front/src/modules/ai/hooks/useBrowsingContext.ts
@@ -15,7 +15,7 @@ import { recordStoreFamilySelector } from '@/object-record/record-store/states/s
import { getTabListInstanceIdFromPageLayoutId } from '@/page-layout/utils/getTabListInstanceIdFromPageLayoutId';
import { activeTabIdComponentState } from '@/ui/layout/tab-list/states/activeTabIdComponentState';
import { useStore } from 'jotai';
-import { coreViewFromViewIdFamilySelector } from '@/views/states/selectors/coreViewFromViewIdFamilySelector';
+import { viewFromViewIdFamilySelector } from '@/views/states/selectors/viewFromViewIdFamilySelector';
export const useGetBrowsingContext = () => {
const store = useStore();
@@ -102,7 +102,7 @@ export const useGetBrowsingContext = () => {
);
const currentView = store.get(
- coreViewFromViewIdFamilySelector.selectorFamily({
+ viewFromViewIdFamilySelector.selectorFamily({
viewId: currentViewId ?? '',
}),
);
diff --git a/packages/twenty-front/src/modules/context-store/components/MainContextStoreProvider.tsx b/packages/twenty-front/src/modules/context-store/components/MainContextStoreProvider.tsx
index 2cf98c1eb84..c883094260c 100644
--- a/packages/twenty-front/src/modules/context-store/components/MainContextStoreProvider.tsx
+++ b/packages/twenty-front/src/modules/context-store/components/MainContextStoreProvider.tsx
@@ -6,7 +6,7 @@ import { objectMetadataItemsState } from '@/object-metadata/states/objectMetadat
import { useShowAuthModal } from '@/ui/layout/hooks/useShowAuthModal';
import { useAtomFamilyStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomFamilyStateValue';
import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
-import { coreViewsSelector } from '@/views/states/selectors/coreViewsSelector';
+import { viewsSelector } from '@/views/states/selectors/viewsSelector';
import { useLocation, useParams, useSearchParams } from 'react-router-dom';
import { AppPath } from 'twenty-shared/types';
import { isDefined } from 'twenty-shared/utils';
@@ -62,7 +62,7 @@ export const MainContextStoreProvider = () => {
const objectMetadataItems = useAtomStateValue(objectMetadataItemsState);
const metadataStore = useAtomFamilyStateValue(metadataStoreState, 'views');
- const coreViews = useAtomStateValue(coreViewsSelector);
+ const views = useAtomStateValue(viewsSelector);
const objectMetadataItem = objectMetadataItems.find(
(objectMetadataItem) =>
@@ -72,7 +72,7 @@ export const MainContextStoreProvider = () => {
const { getLastVisitedViewIdFromObjectNamePlural } = useLastVisitedView();
- const viewIdQueryParamView = coreViews.find(
+ const viewIdQueryParamView = views.find(
(view) => view.id === viewIdQueryParamRaw,
);
@@ -86,7 +86,7 @@ export const MainContextStoreProvider = () => {
objectMetadataItem?.namePlural ?? '',
);
- const lastVisitedView = coreViews.find(
+ const lastVisitedView = views.find(
(view) => view.id === lastVisitedViewIdRaw,
);
@@ -96,13 +96,13 @@ export const MainContextStoreProvider = () => {
? lastVisitedViewIdRaw
: undefined;
- const indexViewId = coreViews.find(
+ const indexViewId = views.find(
(view) =>
view.objectMetadataId === objectMetadataItem?.id &&
view.key === ViewKey.INDEX,
)?.id;
- const firstAvailableViewId = coreViews.find(
+ const firstAvailableViewId = views.find(
(view) =>
view.objectMetadataId === objectMetadataItem?.id &&
view.type !== ViewType.FIELDS_WIDGET,
diff --git a/packages/twenty-front/src/modules/context-store/components/MainContextStoreProviderEffect.tsx b/packages/twenty-front/src/modules/context-store/components/MainContextStoreProviderEffect.tsx
index 7c971f6359c..b1f6306609c 100644
--- a/packages/twenty-front/src/modules/context-store/components/MainContextStoreProviderEffect.tsx
+++ b/packages/twenty-front/src/modules/context-store/components/MainContextStoreProviderEffect.tsx
@@ -8,7 +8,7 @@ import { useSetLastVisitedViewForObjectMetadataNamePlural } from '@/navigation/h
import { type ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem';
import { useAtomComponentState } from '@/ui/utilities/state/jotai/hooks/useAtomComponentState';
import { useAtomFamilySelectorValue } from '@/ui/utilities/state/jotai/hooks/useAtomFamilySelectorValue';
-import { coreViewFromViewIdFamilySelector } from '@/views/states/selectors/coreViewFromViewIdFamilySelector';
+import { viewFromViewIdFamilySelector } from '@/views/states/selectors/viewFromViewIdFamilySelector';
import { useEffect } from 'react';
type MainContextStoreProviderEffectProps = {
@@ -52,7 +52,7 @@ export const MainContextStoreProviderEffect = ({
MAIN_CONTEXT_STORE_INSTANCE_ID,
);
- const view = useAtomFamilySelectorValue(coreViewFromViewIdFamilySelector, {
+ const view = useAtomFamilySelectorValue(viewFromViewIdFamilySelector, {
viewId: viewId ?? '',
});
diff --git a/packages/twenty-front/src/modules/context-store/utils/getViewType.ts b/packages/twenty-front/src/modules/context-store/utils/getViewType.ts
index 89ef324fe36..b056d1e0615 100644
--- a/packages/twenty-front/src/modules/context-store/utils/getViewType.ts
+++ b/packages/twenty-front/src/modules/context-store/utils/getViewType.ts
@@ -18,7 +18,7 @@ export const getViewType = ({
}
if (isRecordIndexPage) {
- return view?.type === ViewType.Kanban
+ return view?.type === ViewType.KANBAN
? ContextStoreViewType.Kanban
: ContextStoreViewType.Table;
}
diff --git a/packages/twenty-front/src/modules/metadata-store/hooks/useLoadMockedMinimalMetadata.ts b/packages/twenty-front/src/modules/metadata-store/hooks/useLoadMockedMinimalMetadata.ts
index bd96f94fbf9..f07c0414034 100644
--- a/packages/twenty-front/src/modules/metadata-store/hooks/useLoadMockedMinimalMetadata.ts
+++ b/packages/twenty-front/src/modules/metadata-store/hooks/useLoadMockedMinimalMetadata.ts
@@ -12,7 +12,7 @@ export const useLoadMockedMinimalMetadata = () => {
resetMetadataStore();
const [
{ generatedMockObjectMetadataItems },
- { mockedCoreViews },
+ { mockedViews },
{ mockedNavigationMenuItems },
] = await Promise.all([
import('~/testing/utils/generatedMockObjectMetadataItems'),
@@ -37,7 +37,7 @@ export const useLoadMockedMinimalMetadata = () => {
flatViewGroups,
flatViewFilterGroups,
flatViewFieldGroups,
- } = splitViewWithRelated(mockedCoreViews);
+ } = splitViewWithRelated(mockedViews);
updateDraft('views', flatViews, MOCKED_COLLECTION_HASH);
updateDraft('viewFields', flatViewFields, MOCKED_COLLECTION_HASH);
diff --git a/packages/twenty-front/src/modules/metadata-store/hooks/useLoadStaleMetadataEntities.ts b/packages/twenty-front/src/modules/metadata-store/hooks/useLoadStaleMetadataEntities.ts
index 4a7e958e857..7eed79f3e67 100644
--- a/packages/twenty-front/src/modules/metadata-store/hooks/useLoadStaleMetadataEntities.ts
+++ b/packages/twenty-front/src/modules/metadata-store/hooks/useLoadStaleMetadataEntities.ts
@@ -12,9 +12,9 @@ import { useStore } from 'jotai';
import { useCallback } from 'react';
import { isDefined } from 'twenty-shared/utils';
import {
- FindAllCoreViewsDocument,
+ FindAllViewsDocument,
FindAllRecordPageLayoutsDocument,
- FindFieldsWidgetCoreViewsDocument,
+ FindFieldsWidgetViewsDocument,
FindManyLogicFunctionsDocument,
FindManyNavigationMenuItemsDocument,
type ObjectMetadataItemsQuery,
@@ -91,19 +91,19 @@ export const useLoadStaleMetadataEntities = () => {
fetchPromises.push(
Promise.all([
client.query({
- query: FindAllCoreViewsDocument,
+ query: FindAllViewsDocument,
variables: { viewTypes: INDEX_VIEW_TYPES },
fetchPolicy: 'network-only',
}),
client.query({
- query: FindFieldsWidgetCoreViewsDocument,
+ query: FindFieldsWidgetViewsDocument,
variables: { viewTypes: FIELDS_WIDGET_VIEW_TYPES },
fetchPolicy: 'network-only',
}),
]).then(([indexViewsResult, fieldsWidgetViewsResult]) => {
const allViews = [
- ...(indexViewsResult.data?.getCoreViews ?? []),
- ...(fieldsWidgetViewsResult.data?.getCoreViews ?? []),
+ ...(indexViewsResult.data?.getViews ?? []),
+ ...(fieldsWidgetViewsResult.data?.getViews ?? []),
];
const {
diff --git a/packages/twenty-front/src/modules/metadata-store/types/FlatView.ts b/packages/twenty-front/src/modules/metadata-store/types/FlatView.ts
index 3e45d2d321a..309b6e61bb2 100644
--- a/packages/twenty-front/src/modules/metadata-store/types/FlatView.ts
+++ b/packages/twenty-front/src/modules/metadata-store/types/FlatView.ts
@@ -1,7 +1,7 @@
-import { type CoreViewWithRelations } from '@/views/types/CoreViewWithRelations';
+import { type ViewWithRelations } from '@/views/types/ViewWithRelations';
export type FlatView = Omit<
- CoreViewWithRelations,
+ ViewWithRelations,
| 'viewFields'
| 'viewFieldGroups'
| 'viewGroups'
diff --git a/packages/twenty-front/src/modules/metadata-store/types/FlatViewField.ts b/packages/twenty-front/src/modules/metadata-store/types/FlatViewField.ts
index 29751a07d8e..028d632a168 100644
--- a/packages/twenty-front/src/modules/metadata-store/types/FlatViewField.ts
+++ b/packages/twenty-front/src/modules/metadata-store/types/FlatViewField.ts
@@ -1,5 +1,5 @@
-import { type CoreViewFieldEssential } from '@/views/types/CoreViewWithRelations';
+import { type ViewFieldEssential } from '@/views/types/ViewWithRelations';
-export type FlatViewField = CoreViewFieldEssential & {
+export type FlatViewField = ViewFieldEssential & {
viewId: string;
};
diff --git a/packages/twenty-front/src/modules/metadata-store/types/FlatViewFieldGroup.ts b/packages/twenty-front/src/modules/metadata-store/types/FlatViewFieldGroup.ts
index a8d703c99af..40135504ba9 100644
--- a/packages/twenty-front/src/modules/metadata-store/types/FlatViewFieldGroup.ts
+++ b/packages/twenty-front/src/modules/metadata-store/types/FlatViewFieldGroup.ts
@@ -1,6 +1,3 @@
-import { type CoreViewFieldGroupEssential } from '@/views/types/CoreViewWithRelations';
+import { type ViewFieldGroupEssential } from '@/views/types/ViewWithRelations';
-export type FlatViewFieldGroup = Omit<
- CoreViewFieldGroupEssential,
- 'viewFields'
->;
+export type FlatViewFieldGroup = Omit<ViewFieldGroupEssential, 'viewFields'>;
diff --git a/packages/twenty-front/src/modules/metadata-store/types/FlatViewFilter.ts b/packages/twenty-front/src/modules/metadata-store/types/FlatViewFilter.ts
index 22b21c13c25..c2ac03ba6d7 100644
--- a/packages/twenty-front/src/modules/metadata-store/types/FlatViewFilter.ts
+++ b/packages/twenty-front/src/modules/metadata-store/types/FlatViewFilter.ts
@@ -1,5 +1,5 @@
-import { type CoreViewWithRelations } from '@/views/types/CoreViewWithRelations';
+import { type ViewWithRelations } from '@/views/types/ViewWithRelations';
-export type FlatViewFilter = CoreViewWithRelations['viewFilters'][number] & {
+export type FlatViewFilter = ViewWithRelations['viewFilters'][number] & {
viewId: string;
};
diff --git a/packages/twenty-front/src/modules/metadata-store/types/FlatViewFilterGroup.ts b/packages/twenty-front/src/modules/metadata-store/types/FlatViewFilterGroup.ts
index e798f2452d8..8c20fae0c29 100644
--- a/packages/twenty-front/src/modules/metadata-store/types/FlatViewFilterGroup.ts
+++ b/packages/twenty-front/src/modules/metadata-store/types/FlatViewFilterGroup.ts
@@ -1,7 +1,7 @@
-import { type CoreViewWithRelations } from '@/views/types/CoreViewWithRelations';
+import { type ViewWithRelations } from '@/views/types/ViewWithRelations';
type ViewFilterGroupRelation = NonNullable<
- CoreViewWithRelations['viewFilterGroups']
+ ViewWithRelations['viewFilterGroups']
>[number];
export type FlatViewFilterGroup = ViewFilterGroupRelation;
diff --git a/packages/twenty-front/src/modules/metadata-store/types/FlatViewGroup.ts b/packages/twenty-front/src/modules/metadata-store/types/FlatViewGroup.ts
index 0b45cce1e13..8004499e68b 100644
--- a/packages/twenty-front/src/modules/metadata-store/types/FlatViewGroup.ts
+++ b/packages/twenty-front/src/modules/metadata-store/types/FlatViewGroup.ts
@@ -1,5 +1,5 @@
-import { type CoreViewWithRelations } from '@/views/types/CoreViewWithRelations';
+import { type ViewWithRelations } from '@/views/types/ViewWithRelations';
-export type FlatViewGroup = CoreViewWithRelations['viewGroups'][number] & {
+export type FlatViewGroup = ViewWithRelations['viewGroups'][number] & {
viewId: string;
};
diff --git a/packages/twenty-front/src/modules/metadata-store/types/FlatViewSort.ts b/packages/twenty-front/src/modules/metadata-store/types/FlatViewSort.ts
index 4eb30fd504a..00315db27d2 100644
--- a/packages/twenty-front/src/modules/metadata-store/types/FlatViewSort.ts
+++ b/packages/twenty-front/src/modules/metadata-store/types/FlatViewSort.ts
@@ -1,5 +1,5 @@
-import { type CoreViewWithRelations } from '@/views/types/CoreViewWithRelations';
+import { type ViewWithRelations } from '@/views/types/ViewWithRelations';
-export type FlatViewSort = CoreViewWithRelations['viewSorts'][number] & {
+export type FlatViewSort = ViewWithRelations['viewSorts'][number] & {
viewId: string;
};
diff --git a/packages/twenty-front/src/modules/metadata-store/utils/splitViewWithRelated.ts b/packages/twenty-front/src/modules/metadata-store/utils/splitViewWithRelated.ts
index 83542e42a34..b062d2615cc 100644
--- a/packages/twenty-front/src/modules/metadata-store/utils/splitViewWithRelated.ts
+++ b/packages/twenty-front/src/modules/metadata-store/utils/splitViewWithRelated.ts
@@ -5,7 +5,7 @@ import { type FlatViewFilter } from '@/metadata-store/types/FlatViewFilter';
import { type FlatViewFilterGroup } from '@/metadata-store/types/FlatViewFilterGroup';
import { type FlatViewGroup } from '@/metadata-store/types/FlatViewGroup';
import { type FlatViewSort } from '@/metadata-store/types/FlatViewSort';
-import { type CoreViewWithRelations } from '@/views/types/CoreViewWithRelations';
+import { type ViewWithRelations } from '@/views/types/ViewWithRelations';
type SplitResult = {
flatViews: FlatView[];
@@ -18,7 +18,7 @@ type SplitResult = {
};
export const splitViewWithRelated = (
- viewsWithRelated: CoreViewWithRelations[],
+ viewsWithRelated: ViewWithRelations[],
): SplitResult => {
const flatViews: FlatView[] = [];
const flatViewFields: FlatViewField[] = [];
diff --git a/packages/twenty-front/src/modules/navigation-menu-item/components/NavigationMenuItemIcon.tsx b/packages/twenty-front/src/modules/navigation-menu-item/components/NavigationMenuItemIcon.tsx
index e02f351c53a..837863d3740 100644
--- a/packages/twenty-front/src/modules/navigation-menu-item/components/NavigationMenuItemIcon.tsx
+++ b/packages/twenty-front/src/modules/navigation-menu-item/components/NavigationMenuItemIcon.tsx
@@ -31,7 +31,7 @@ export const NavigationMenuItemIcon = ({
navigationMenuItem.itemType === NavigationMenuItemType.RECORD;
const isViewWithOverlay =
navigationMenuItem.itemType === NavigationMenuItemType.VIEW &&
- navigationMenuItem.viewKey !== ViewKey.Index;
+ navigationMenuItem.viewKey !== ViewKey.INDEX;
const objectMetadataItem = objectMetadataItems.find(
(item) => item.nameSingular === navigationMenuItem.objectNameSingular,
diff --git a/packages/twenty-front/src/modules/navigation-menu-item/components/WorkspaceNavigationMenuItemFolderDragClone.tsx b/packages/twenty-front/src/modules/navigation-menu-item/components/WorkspaceNavigationMenuItemFolderDragClone.tsx
index 49f1aac3ae4..7e19f194e51 100644
--- a/packages/twenty-front/src/modules/navigation-menu-item/components/WorkspaceNavigationMenuItemFolderDragClone.tsx
+++ b/packages/twenty-front/src/modules/navigation-menu-item/components/WorkspaceNavigationMenuItemFolderDragClone.tsx
@@ -57,7 +57,7 @@ export const WorkspaceNavigationMenuItemFolderDragClone = ({
>
<NavigationDrawerSubItem
secondaryLabel={
- navigationMenuItem.viewKey === ViewKey.Index
+ navigationMenuItem.viewKey === ViewKey.INDEX
? undefined
: getNavigationMenuItemSecondaryLabel({
objectMetadataItems,
diff --git a/packages/twenty-front/src/modules/navigation-menu-item/components/WorkspaceNavigationMenuItemFolderSubItem.tsx b/packages/twenty-front/src/modules/navigation-menu-item/components/WorkspaceNavigationMenuItemFolderSubItem.tsx
index f66c95a7f2a..3a5bf256f7d 100644
--- a/packages/twenty-front/src/modules/navigation-menu-item/components/WorkspaceNavigationMenuItemFolderSubItem.tsx
+++ b/packages/twenty-front/src/modules/navigation-menu-item/components/WorkspaceNavigationMenuItemFolderSubItem.tsx
@@ -11,9 +11,8 @@ import { objectMetadataItemsState } from '@/object-metadata/states/objectMetadat
import { NavigationDrawerSubItem } from '@/ui/navigation/navigation-drawer/components/NavigationDrawerSubItem';
import { getNavigationSubItemLeftAdornment } from '@/ui/navigation/navigation-drawer/utils/getNavigationSubItemLeftAdornment';
import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
-import { coreViewsSelector } from '@/views/states/selectors/coreViewsSelector';
+import { viewsSelector } from '@/views/states/selectors/viewsSelector';
import { ViewKey } from '@/views/types/ViewKey';
-import { convertCoreViewToView } from '@/views/utils/convertCoreViewToView';
type WorkspaceNavigationMenuItemFolderSubItemProps = {
navigationMenuItem: ProcessedNavigationMenuItem;
@@ -38,8 +37,7 @@ export const WorkspaceNavigationMenuItemFolderSubItem = ({
isNavigationMenuInEditModeState,
);
const objectMetadataItems = useAtomStateValue(objectMetadataItemsState);
- const coreViews = useAtomStateValue(coreViewsSelector);
- const views = coreViews.map(convertCoreViewToView);
+ const views = useAtomStateValue(viewsSelector);
const objectMetadataItem =
navigationMenuItem.itemType === NavigationMenuItemType.VIEW ||
navigationMenuItem.itemType === NavigationMenuItemType.RECORD
@@ -67,7 +65,7 @@ export const WorkspaceNavigationMenuItemFolderSubItem = ({
return (
<NavigationDrawerSubItem
secondaryLabel={
- navigationMenuItem.viewKey === ViewKey.Index
+ navigationMenuItem.viewKey === ViewKey.INDEX
? undefined
: getNavigationMenuItemSecondaryLabel({
objectMetadataItems,
diff --git a/packages/twenty-front/src/modules/navigation-menu-item/hooks/useHandleAddToNavigationDrop.ts b/packages/twenty-front/src/modules/navigation-menu-item/hooks/useHandleAddToNavigationDrop.ts
index 3871b48e95e..d480b645fea 100644
--- a/packages/twenty-front/src/modules/navigation-menu-item/hooks/useHandleAddToNavigationDrop.ts
+++ b/packages/twenty-front/src/modules/navigation-menu-item/hooks/useHandleAddToNavigationDrop.ts
@@ -24,8 +24,7 @@ import { validateAndExtractWorkspaceFolderId } from '@/navigation-menu-item/util
import { useObjectMetadataItems } from '@/object-metadata/hooks/useObjectMetadataItems';
import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
import { useSetAtomState } from '@/ui/utilities/state/jotai/hooks/useSetAtomState';
-import { coreViewsSelector } from '@/views/states/selectors/coreViewsSelector';
-import { convertCoreViewToView } from '@/views/utils/convertCoreViewToView';
+import { viewsSelector } from '@/views/states/selectors/viewsSelector';
import { useStore } from 'jotai';
export const useHandleAddToNavigationDrop = () => {
@@ -42,7 +41,7 @@ export const useHandleAddToNavigationDrop = () => {
const { openNavigationMenuItemInSidePanel } =
useOpenNavigationMenuItemInSidePanel();
const { objectMetadataItems } = useObjectMetadataItems();
- const coreViews = useAtomStateValue(coreViewsSelector);
+ const views = useAtomStateValue(viewsSelector);
const { getIcon } = useIcons();
const setIsNavigationMenuInEditMode = useSetAtomState(
isNavigationMenuInEditModeState,
@@ -128,7 +127,6 @@ export const useHandleAddToNavigationDrop = () => {
return;
}
case NavigationMenuItemType.OBJECT: {
- const views = coreViews.map(convertCoreViewToView);
const objectMetadataIdsInWorkspace = getObjectMetadataIdsInDraft(
currentDraft,
views,
@@ -159,7 +157,6 @@ export const useHandleAddToNavigationDrop = () => {
return;
}
case NavigationMenuItemType.VIEW: {
- const views = coreViews.map(convertCoreViewToView);
const view = views.find((v) => v.id === payload.viewId);
const viewObjectMetadataItem = view
? objectMetadataItems.find(
@@ -214,7 +211,7 @@ export const useHandleAddToNavigationDrop = () => {
addObjectToDraft,
addRecordToDraft,
addViewToDraft,
- coreViews,
+ views,
getIcon,
navigationMenuItemsDraft,
objectMetadataItems,
diff --git a/packages/twenty-front/src/modules/navigation-menu-item/hooks/useNavigationMenuItemsByFolder.ts b/packages/twenty-front/src/modules/navigation-menu-item/hooks/useNavigationMenuItemsByFolder.ts
index 7c4dc96592f..d6c0b9ef987 100644
--- a/packages/twenty-front/src/modules/navigation-menu-item/hooks/useNavigationMenuItemsByFolder.ts
+++ b/packages/twenty-front/src/modules/navigation-menu-item/hooks/useNavigationMenuItemsByFolder.ts
@@ -6,8 +6,7 @@ import { recordIdentifierToObjectRecordIdentifier } from '@/navigation-menu-item
import { sortNavigationMenuItems } from '@/navigation-menu-item/utils/sortNavigationMenuItems';
import { objectMetadataItemsState } from '@/object-metadata/states/objectMetadataItemsState';
import { type ObjectRecordIdentifier } from '@/object-record/types/ObjectRecordIdentifier';
-import { coreViewsSelector } from '@/views/states/selectors/coreViewsSelector';
-import { convertCoreViewToView } from '@/views/utils/convertCoreViewToView';
+import { viewsSelector } from '@/views/states/selectors/viewsSelector';
import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
import { useNavigationMenuItemsData } from './useNavigationMenuItemsData';
@@ -26,14 +25,12 @@ type NavigationMenuItemFolderEntry = Pick<
>;
export const useNavigationMenuItemsByFolder = () => {
- const coreViews = useAtomStateValue(coreViewsSelector);
+ const views = useAtomStateValue(viewsSelector);
const objectMetadataItems = useAtomStateValue(objectMetadataItemsState);
const { navigationMenuItems, workspaceNavigationMenuItems } =
useNavigationMenuItemsData();
- const views = coreViews.map(convertCoreViewToView);
-
const allNavigationMenuItems = [
...workspaceNavigationMenuItems,
...navigationMenuItems,
diff --git a/packages/twenty-front/src/modules/navigation-menu-item/hooks/useNavigationMenuObjectMetadataFromDraft.ts b/packages/twenty-front/src/modules/navigation-menu-item/hooks/useNavigationMenuObjectMetadataFromDraft.ts
index efe83dbccb8..943b4225256 100644
--- a/packages/twenty-front/src/modules/navigation-menu-item/hooks/useNavigationMenuObjectMetadataFromDraft.ts
+++ b/packages/twenty-front/src/modules/navigation-menu-item/hooks/useNavigationMenuObjectMetadataFromDraft.ts
@@ -2,9 +2,8 @@ import { isDefined } from 'twenty-shared/utils';
import { getObjectMetadataIdsInDraft } from '@/navigation-menu-item/utils/getObjectMetadataIdsInDraft';
import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
-import { coreViewsSelector } from '@/views/states/selectors/coreViewsSelector';
+import { viewsSelector } from '@/views/states/selectors/viewsSelector';
import { ViewKey } from '@/views/types/ViewKey';
-import { convertCoreViewToView } from '@/views/utils/convertCoreViewToView';
type NavigationMenuItemDraft = {
id?: string;
@@ -15,8 +14,7 @@ type NavigationMenuItemDraft = {
export const useNavigationMenuObjectMetadataFromDraft = (
currentDraft: NavigationMenuItemDraft[],
) => {
- const coreViews = useAtomStateValue(coreViewsSelector);
- const views = coreViews.map(convertCoreViewToView);
+ const views = useAtomStateValue(viewsSelector);
const objectMetadataIdsInWorkspace = getObjectMetadataIdsInDraft(
currentDraft,
@@ -25,7 +23,7 @@ export const useNavigationMenuObjectMetadataFromDraft = (
const objectMetadataIdsWithIndexView = new Set(
views
- .filter((view) => view.key === ViewKey.Index)
+ .filter((view) => view.key === ViewKey.INDEX)
.map((view) => view.objectMetadataId),
);
diff --git a/packages/twenty-front/src/modules/navigation-menu-item/hooks/useObjectNavItemColor.ts b/packages/twenty-front/src/modules/navigation-menu-item/hooks/useObjectNavItemColor.ts
index b989d7c97e4..c20d5384e7c 100644
--- a/packages/twenty-front/src/modules/navigation-menu-item/hooks/useObjectNavItemColor.ts
+++ b/packages/twenty-front/src/modules/navigation-menu-item/hooks/useObjectNavItemColor.ts
@@ -7,7 +7,7 @@ export const useObjectNavItemColor = (objectNameSingular: string): string => {
const objectNavItem = items.find(
(item) =>
'viewKey' in item &&
- item.viewKey === ViewKey.Index &&
+ item.viewKey === ViewKey.INDEX &&
item.objectNameSingular === objectNameSingular,
);
return (
diff --git a/packages/twenty-front/src/modules/navigation-menu-item/hooks/useSelectedNavigationMenuItemEditItemObjectMetadata.ts b/packages/twenty-front/src/modules/navigation-menu-item/hooks/useSelectedNavigationMenuItemEditItemObjectMetadata.ts
index 3d562d5bfb9..77f6fdbb979 100644
--- a/packages/twenty-front/src/modules/navigation-menu-item/hooks/useSelectedNavigationMenuItemEditItemObjectMetadata.ts
+++ b/packages/twenty-front/src/modules/navigation-menu-item/hooks/useSelectedNavigationMenuItemEditItemObjectMetadata.ts
@@ -2,13 +2,11 @@ import { useSelectedNavigationMenuItemEditItem } from '@/navigation-menu-item/ho
import { getObjectMetadataForNavigationMenuItem } from '@/navigation-menu-item/utils/getObjectMetadataForNavigationMenuItem';
import { useObjectMetadataItems } from '@/object-metadata/hooks/useObjectMetadataItems';
import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
-import { coreViewsSelector } from '@/views/states/selectors/coreViewsSelector';
-import { convertCoreViewToView } from '@/views/utils/convertCoreViewToView';
+import { viewsSelector } from '@/views/states/selectors/viewsSelector';
export const useSelectedNavigationMenuItemEditItemObjectMetadata = () => {
const { selectedItem } = useSelectedNavigationMenuItemEditItem();
- const coreViews = useAtomStateValue(coreViewsSelector);
- const views = coreViews.map(convertCoreViewToView);
+ const views = useAtomStateValue(viewsSelector);
const { objectMetadataItems } = useObjectMetadataItems();
const selectedItemObjectMetadata = selectedItem
diff --git a/packages/twenty-front/src/modules/navigation-menu-item/hooks/useSortedNavigationMenuItems.ts b/packages/twenty-front/src/modules/navigation-menu-item/hooks/useSortedNavigationMenuItems.ts
index 680d5bd1e8a..a6b7651b52d 100644
--- a/packages/twenty-front/src/modules/navigation-menu-item/hooks/useSortedNavigationMenuItems.ts
+++ b/packages/twenty-front/src/modules/navigation-menu-item/hooks/useSortedNavigationMenuItems.ts
@@ -7,8 +7,7 @@ import { recordIdentifierToObjectRecordIdentifier } from '@/navigation-menu-item
import { sortNavigationMenuItems } from '@/navigation-menu-item/utils/sortNavigationMenuItems';
import { objectMetadataItemsState } from '@/object-metadata/states/objectMetadataItemsState';
import { type ObjectRecordIdentifier } from '@/object-record/types/ObjectRecordIdentifier';
-import { coreViewsSelector } from '@/views/states/selectors/coreViewsSelector';
-import { convertCoreViewToView } from '@/views/utils/convertCoreViewToView';
+import { viewsSelector } from '@/views/states/selectors/viewsSelector';
import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
import { useNavigationMenuItemsData } from './useNavigationMenuItemsData';
@@ -16,9 +15,7 @@ import { useNavigationMenuItemsData } from './useNavigationMenuItemsData';
export const useSortedNavigationMenuItems = () => {
const { navigationMenuItems, workspaceNavigationMenuItems } =
useNavigationMenuItemsData();
- const coreViews = useAtomStateValue(coreViewsSelector).map(
- convertCoreViewToView,
- );
+ const views = useAtomStateValue(viewsSelector);
const objectMetadataItems = useAtomStateValue(objectMetadataItemsState);
const targetRecordIdentifiers = useMemo(() => {
@@ -67,13 +64,13 @@ export const useSortedNavigationMenuItems = () => {
return sortNavigationMenuItems(
navigationMenuItems,
true,
- coreViews,
+ views,
objectMetadataItems,
targetRecordIdentifiers,
);
}, [
navigationMenuItems,
- coreViews,
+ views,
objectMetadataItems,
targetRecordIdentifiers,
]);
@@ -87,7 +84,7 @@ export const useSortedNavigationMenuItems = () => {
return true;
}
if (isDefined(item.viewId)) {
- return coreViews.some((view) => view.id === item.viewId);
+ return views.some((view) => view.id === item.viewId);
}
const itemTargetRecordId = item.targetRecordId;
@@ -101,13 +98,13 @@ export const useSortedNavigationMenuItems = () => {
return sortNavigationMenuItems(
filtered,
true,
- coreViews,
+ views,
objectMetadataItems,
targetRecordIdentifiers,
);
}, [
workspaceNavigationMenuItems,
- coreViews,
+ views,
objectMetadataItems,
targetRecordIdentifiers,
]);
diff --git a/packages/twenty-front/src/modules/navigation-menu-item/hooks/useWorkspaceNavigationMenuItems.ts b/packages/twenty-front/src/modules/navigation-menu-item/hooks/useWorkspaceNavigationMenuItems.ts
index 743c8333003..70a1914cbac 100644
--- a/packages/twenty-front/src/modules/navigation-menu-item/hooks/useWorkspaceNavigationMenuItems.ts
+++ b/packages/twenty-front/src/modules/navigation-menu-item/hooks/useWorkspaceNavigationMenuItems.ts
@@ -4,8 +4,7 @@ import { isNavigationMenuItemFolder } from '@/navigation-menu-item/utils/isNavig
import { useFilteredObjectMetadataItems } from '@/object-metadata/hooks/useFilteredObjectMetadataItems';
import { type ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem';
import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
-import { coreViewsSelector } from '@/views/states/selectors/coreViewsSelector';
-import { convertCoreViewToView } from '@/views/utils/convertCoreViewToView';
+import { viewsSelector } from '@/views/states/selectors/viewsSelector';
import { isDefined } from 'twenty-shared/utils';
import { useNavigationMenuItemsData } from './useNavigationMenuItemsData';
@@ -15,9 +14,7 @@ export const useWorkspaceNavigationMenuItems = (): {
} => {
const { workspaceNavigationMenuItems: rawWorkspaceNavigationMenuItems } =
useNavigationMenuItemsData();
- const coreViews = useAtomStateValue(coreViewsSelector);
-
- const views = coreViews.map(convertCoreViewToView);
+ const views = useAtomStateValue(viewsSelector);
const workspaceFolderIds = useMemo(
() =>
diff --git a/packages/twenty-front/src/modules/navigation-menu-item/hooks/useWorkspaceSectionItems.ts b/packages/twenty-front/src/modules/navigation-menu-item/hooks/useWorkspaceSectionItems.ts
index 6d9fc9886c9..b8485f346b1 100644
--- a/packages/twenty-front/src/modules/navigation-menu-item/hooks/useWorkspaceSectionItems.ts
+++ b/packages/twenty-front/src/modules/navigation-menu-item/hooks/useWorkspaceSectionItems.ts
@@ -10,8 +10,7 @@ import { objectMetadataItemsState } from '@/object-metadata/states/objectMetadat
import { type ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem';
import { useObjectPermissions } from '@/object-record/hooks/useObjectPermissions';
import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
-import { coreViewsSelector } from '@/views/states/selectors/coreViewsSelector';
-import { convertCoreViewToView } from '@/views/utils/convertCoreViewToView';
+import { viewsSelector } from '@/views/states/selectors/viewsSelector';
import { isDefined } from 'twenty-shared/utils';
import { useNavigationMenuItemsByFolder } from './useNavigationMenuItemsByFolder';
@@ -35,12 +34,10 @@ export const useWorkspaceSectionItems = (): FlatWorkspaceItem[] => {
const { workspaceNavigationMenuItemsSorted } = useSortedNavigationMenuItems();
const { workspaceNavigationMenuItemsByFolder } =
useNavigationMenuItemsByFolder();
- const coreViews = useAtomStateValue(coreViewsSelector);
+ const views = useAtomStateValue(viewsSelector);
const objectMetadataItems = useAtomStateValue(objectMetadataItemsState);
const { objectPermissionsByObjectMetadataId } = useObjectPermissions();
- const views = coreViews.map(convertCoreViewToView);
-
const flatWorkspaceItems = workspaceNavigationMenuItems
.filter((item) => !isDefined(item.folderId))
.sort((a, b) => a.position - b.position);
diff --git a/packages/twenty-front/src/modules/navigation-menu-item/utils/__tests__/sortNavigationMenuItems.test.ts b/packages/twenty-front/src/modules/navigation-menu-item/utils/__tests__/sortNavigationMenuItems.test.ts
index d34ba00b642..3bcb772df57 100644
--- a/packages/twenty-front/src/modules/navigation-menu-item/utils/__tests__/sortNavigationMenuItems.test.ts
+++ b/packages/twenty-front/src/modules/navigation-menu-item/utils/__tests__/sortNavigationMenuItems.test.ts
@@ -37,7 +37,7 @@ describe('sortNavigationMenuItems', () => {
name: 'All People',
objectMetadataId: 'metadata-id',
icon: 'IconUser',
- key: ViewKey.Index,
+ key: ViewKey.INDEX,
};
const mockObjectRecordIdentifier: ObjectRecordIdentifier = {
diff --git a/packages/twenty-front/src/modules/navigation-menu-item/utils/sortNavigationMenuItems.ts b/packages/twenty-front/src/modules/navigation-menu-item/utils/sortNavigationMenuItems.ts
index e87e82d40b8..c7d5617e90e 100644
--- a/packages/twenty-front/src/modules/navigation-menu-item/utils/sortNavigationMenuItems.ts
+++ b/packages/twenty-front/src/modules/navigation-menu-item/utils/sortNavigationMenuItems.ts
@@ -42,7 +42,7 @@ export const sortNavigationMenuItems = (
const namePlural = objectMetadataItem.namePlural;
- const isIndexView = view.key === ViewKey.Index;
+ const isIndexView = view.key === ViewKey.INDEX;
const labelIdentifier =
isIndexView && isDefined(objectMetadataItem)
? objectMetadataItem.labelPlural
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 b066ea30175..45ff334d573 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
@@ -16,7 +16,7 @@ import {
import { mockedUserData } from '~/testing/mock-data/users';
import { generatedMockObjectMetadataItems } from '~/testing/utils/generatedMockObjectMetadataItems';
import { getMockObjectMetadataItemOrThrow } from '~/testing/utils/getMockObjectMetadataItemOrThrow';
-import { setTestCoreViewsInMetadataStore } from '~/testing/utils/setTestCoreViewsInMetadataStore';
+import { setTestViewsInMetadataStore } from '~/testing/utils/setTestViewsInMetadataStore';
import { setTestObjectMetadataItemsInMetadataStore } from '~/testing/utils/setTestObjectMetadataItemsInMetadataStore';
const Wrapper = ({ children }: { children: ReactNode }) =>
@@ -43,7 +43,7 @@ const renderHooks = ({
useEffect(() => {
if (withExistingView) {
- setTestCoreViewsInMetadataStore(jotaiStore, [
+ setTestViewsInMetadataStore(jotaiStore, [
{
id: 'viewId',
name: 'Test View',
@@ -68,7 +68,7 @@ const renderHooks = ({
},
]);
} else {
- setTestCoreViewsInMetadataStore(jotaiStore, []);
+ setTestViewsInMetadataStore(jotaiStore, []);
}
if (withCurrentUser) {
diff --git a/packages/twenty-front/src/modules/navigation/hooks/useDefaultHomePagePath.ts b/packages/twenty-front/src/modules/navigation/hooks/useDefaultHomePagePath.ts
index 5ed7d04c45c..ccf8d3bf0c4 100644
--- a/packages/twenty-front/src/modules/navigation/hooks/useDefaultHomePagePath.ts
+++ b/packages/twenty-front/src/modules/navigation/hooks/useDefaultHomePagePath.ts
@@ -5,8 +5,7 @@ import { useFilteredObjectMetadataItems } from '@/object-metadata/hooks/useFilte
import { useObjectPermissions } from '@/object-record/hooks/useObjectPermissions';
import { getObjectPermissionsFromMapByObjectMetadataId } from '@/settings/roles/role-permissions/objects-permissions/utils/getObjectPermissionsFromMapByObjectMetadataId';
import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
-import { coreViewsSelector } from '@/views/states/selectors/coreViewsSelector';
-import { convertCoreViewToView } from '@/views/utils/convertCoreViewToView';
+import { viewsSelector } from '@/views/states/selectors/viewsSelector';
import isEmpty from 'lodash.isempty';
import { useCallback, useMemo } from 'react';
import { AppPath, SettingsPath } from 'twenty-shared/types';
@@ -43,17 +42,15 @@ export const useDefaultHomePagePath = () => {
[readableAlphaSortedActiveNonSystemObjectMetadataItems],
);
- const coreViews = useAtomStateValue(coreViewsSelector);
+ const views = useAtomStateValue(viewsSelector);
const getFirstView = useCallback(
(objectMetadataItemId: string | undefined | null) => {
- const views = coreViews.map(convertCoreViewToView);
-
return views.find(
(view) => view.objectMetadataId === objectMetadataItemId,
);
},
- [coreViews],
+ [views],
);
const firstObjectPathInfo = useMemo<ObjectPathInfo | null>(() => {
diff --git a/packages/twenty-front/src/modules/navigation/hooks/useSetLastVisitedViewForObjectMetadataNamePlural.ts b/packages/twenty-front/src/modules/navigation/hooks/useSetLastVisitedViewForObjectMetadataNamePlural.ts
index ff639baacc0..0f8b0967464 100644
--- a/packages/twenty-front/src/modules/navigation/hooks/useSetLastVisitedViewForObjectMetadataNamePlural.ts
+++ b/packages/twenty-front/src/modules/navigation/hooks/useSetLastVisitedViewForObjectMetadataNamePlural.ts
@@ -1,7 +1,7 @@
import { lastVisitedViewPerObjectMetadataItemState } from '@/navigation/states/lastVisitedViewPerObjectMetadataItemState';
import { objectMetadataItemsState } from '@/object-metadata/states/objectMetadataItemsState';
-import { coreViewsSelector } from '@/views/states/selectors/coreViewsSelector';
-import { type CoreViewWithRelations } from '@/views/types/CoreViewWithRelations';
+import { viewsSelector } from '@/views/states/selectors/viewsSelector';
+import { type ViewWithRelations } from '@/views/types/ViewWithRelations';
import { useCallback } from 'react';
import { isDefined } from 'twenty-shared/utils';
import { useStore } from 'jotai';
@@ -16,11 +16,9 @@ export const useSetLastVisitedViewForObjectMetadataNamePlural = () => {
objectNamePlural: string;
viewId: string;
}) => {
- const views = store.get(coreViewsSelector.atom);
+ const views = store.get(viewsSelector.atom);
- const view = views.find(
- (view: CoreViewWithRelations) => view.id === viewId,
- );
+ const view = views.find((view: ViewWithRelations) => view.id === viewId);
const objectMetadataItems = store.get(objectMetadataItemsState.atom);
diff --git a/packages/twenty-front/src/modules/object-metadata/components/NavigationDrawerItemForObjectMetadataItem.tsx b/packages/twenty-front/src/modules/object-metadata/components/NavigationDrawerItemForObjectMetadataItem.tsx
index 14f04ca552b..1b2c3ea1aa1 100644
--- a/packages/twenty-front/src/modules/object-metadata/components/NavigationDrawerItemForObjectMetadataItem.tsx
+++ b/packages/twenty-front/src/modules/object-metadata/components/NavigationDrawerItemForObjectMetadataItem.tsx
@@ -82,7 +82,7 @@ export const NavigationDrawerItemForObjectMetadataItem = ({
const isViewWithCustomName =
isView &&
- navigationMenuItem?.viewKey !== ViewKey.Index &&
+ navigationMenuItem?.viewKey !== ViewKey.INDEX &&
isDefined(navigationMenuItem?.labelIdentifier);
const label = isRecord
diff --git a/packages/twenty-front/src/modules/object-metadata/components/NavigationDrawerSectionForWorkspaceItemObjectContent.tsx b/packages/twenty-front/src/modules/object-metadata/components/NavigationDrawerSectionForWorkspaceItemObjectContent.tsx
index 44a35fe451d..0f5d87efbd0 100644
--- a/packages/twenty-front/src/modules/object-metadata/components/NavigationDrawerSectionForWorkspaceItemObjectContent.tsx
+++ b/packages/twenty-front/src/modules/object-metadata/components/NavigationDrawerSectionForWorkspaceItemObjectContent.tsx
@@ -4,8 +4,7 @@ import { NavigationDrawerItemForObjectMetadataItem } from '@/object-metadata/com
import type { WorkspaceSectionItemContentProps } from '@/object-metadata/components/WorkspaceSectionItemContentProps';
import { objectMetadataItemsState } from '@/object-metadata/states/objectMetadataItemsState';
import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
-import { coreViewsSelector } from '@/views/states/selectors/coreViewsSelector';
-import { convertCoreViewToView } from '@/views/utils/convertCoreViewToView';
+import { viewsSelector } from '@/views/states/selectors/viewsSelector';
type NavigationDrawerSectionForWorkspaceItemObjectContentProps =
WorkspaceSectionItemContentProps;
@@ -17,8 +16,7 @@ export const NavigationDrawerSectionForWorkspaceItemObjectContent = ({
onActiveObjectMetadataItemClick,
}: NavigationDrawerSectionForWorkspaceItemObjectContentProps) => {
const objectMetadataItems = useAtomStateValue(objectMetadataItemsState);
- const coreViews = useAtomStateValue(coreViewsSelector);
- const views = coreViews.map(convertCoreViewToView);
+ const views = useAtomStateValue(viewsSelector);
const objectMetadataItem = getObjectMetadataForNavigationMenuItem(
item as ProcessedNavigationMenuItem,
objectMetadataItems,
diff --git a/packages/twenty-front/src/modules/object-metadata/components/NavigationDrawerSectionForWorkspaceItems.tsx b/packages/twenty-front/src/modules/object-metadata/components/NavigationDrawerSectionForWorkspaceItems.tsx
index dec368bc771..4f05a4da02e 100644
--- a/packages/twenty-front/src/modules/object-metadata/components/NavigationDrawerSectionForWorkspaceItems.tsx
+++ b/packages/twenty-front/src/modules/object-metadata/components/NavigationDrawerSectionForWorkspaceItems.tsx
@@ -24,8 +24,7 @@ import { NavigationDrawerSection } from '@/ui/navigation/navigation-drawer/compo
import { NavigationDrawerSectionTitle } from '@/ui/navigation/navigation-drawer/components/NavigationDrawerSectionTitle';
import { useNavigationSection } from '@/ui/navigation/navigation-drawer/hooks/useNavigationSection';
import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
-import { coreViewsSelector } from '@/views/states/selectors/coreViewsSelector';
-import { convertCoreViewToView } from '@/views/utils/convertCoreViewToView';
+import { viewsSelector } from '@/views/states/selectors/viewsSelector';
import { styled } from '@linaria/react';
import { themeCssVariables } from 'twenty-ui/theme-constants';
@@ -64,8 +63,7 @@ export const NavigationDrawerSectionForWorkspaceItems = ({
);
const { toggleNavigationSection, isNavigationSectionOpen } =
useNavigationSection('Workspace');
- const coreViews = useAtomStateValue(coreViewsSelector);
- const views = coreViews.map(convertCoreViewToView);
+ const views = useAtomStateValue(viewsSelector);
const { objectPermissionsByObjectMetadataId } = useObjectPermissions();
const objectMetadataItems = useAtomStateValue(objectMetadataItemsState);
diff --git a/packages/twenty-front/src/modules/object-metadata/hooks/__mocks__/useCreateOneObjectMetadataItem.ts b/packages/twenty-front/src/modules/object-metadata/hooks/__mocks__/useCreateOneObjectMetadataItem.ts
index e089fabdc65..b1525ae3cdf 100644
--- a/packages/twenty-front/src/modules/object-metadata/hooks/__mocks__/useCreateOneObjectMetadataItem.ts
+++ b/packages/twenty-front/src/modules/object-metadata/hooks/__mocks__/useCreateOneObjectMetadataItem.ts
@@ -1,11 +1,11 @@
import {
CreateOneObjectMetadataItemDocument,
- FindManyCoreViewsDocument,
+ FindManyViewsDocument,
} from '~/generated-metadata/graphql';
export const query = CreateOneObjectMetadataItemDocument;
-export const findManyCoreViewsQuery = FindManyCoreViewsDocument;
+export const findManyViewsQuery = FindManyViewsDocument;
export const variables = {
input: {
diff --git a/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/useCreateOneObjectMetadataItem.test.tsx b/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/useCreateOneObjectMetadataItem.test.tsx
index f466ef12933..faa2860e72e 100644
--- a/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/useCreateOneObjectMetadataItem.test.tsx
+++ b/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/useCreateOneObjectMetadataItem.test.tsx
@@ -4,7 +4,7 @@ import { useCreateOneObjectMetadataItem } from '@/object-metadata/hooks/useCreat
import { getJestMetadataAndApolloMocksWrapper } from '~/testing/jest/getJestMetadataAndApolloMocksWrapper';
import {
- findManyCoreViewsQuery,
+ findManyViewsQuery,
query,
responseData,
variables,
@@ -52,14 +52,14 @@ const mocks = [
},
{
request: {
- query: findManyCoreViewsQuery,
+ query: findManyViewsQuery,
variables: {
objectMetadataId: responseData.id,
},
},
result: jest.fn(() => ({
data: {
- getCoreViews: [],
+ getViews: [],
},
})),
},
diff --git a/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/useDeleteOneObjectMetadataItem.test.tsx b/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/useDeleteOneObjectMetadataItem.test.tsx
index 0cde39fe69f..fabca7f8351 100644
--- a/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/useDeleteOneObjectMetadataItem.test.tsx
+++ b/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/useDeleteOneObjectMetadataItem.test.tsx
@@ -10,10 +10,10 @@ import {
import { jestExpectSuccessfulMetadataRequestResult } from '@/object-metadata/hooks/__tests__/utils/jest-expect-metadata-request-status.util';
import { GET_CURRENT_USER } from '@/users/graphql/queries/getCurrentUser';
-import { FIND_ALL_CORE_VIEWS } from '@/views/graphql/queries/findAllCoreViews';
+import { FIND_ALL_VIEWS } from '@/views/graphql/queries/findAllViews';
import { getJestMetadataAndApolloMocksWrapper } from '~/testing/jest/getJestMetadataAndApolloMocksWrapper';
import { mockedUserData } from '~/testing/mock-data/users';
-import { mockedCoreViews } from '~/testing/mock-data/generated/metadata/views/mock-views-data';
+import { mockedViews } from '~/testing/mock-data/generated/metadata/views/mock-views-data';
import {
query as findManyObjectMetadataItemsQuery,
responseData as findManyObjectMetadataItemsResponseData,
@@ -44,12 +44,12 @@ const mocks = [
},
{
request: {
- query: FIND_ALL_CORE_VIEWS,
+ query: FIND_ALL_VIEWS,
variables: {},
},
result: jest.fn(() => ({
data: {
- getCoreViews: mockedCoreViews,
+ getViews: mockedViews,
},
})),
},
diff --git a/packages/twenty-front/src/modules/object-record/components/RecordChip.tsx b/packages/twenty-front/src/modules/object-record/components/RecordChip.tsx
index 81600635463..8aa86413f2d 100644
--- a/packages/twenty-front/src/modules/object-record/components/RecordChip.tsx
+++ b/packages/twenty-front/src/modules/object-record/components/RecordChip.tsx
@@ -6,7 +6,7 @@ import { recordIndexOpenRecordInState } from '@/object-record/record-index/state
import { type ObjectRecord } from '@/object-record/types/ObjectRecord';
import { canOpenObjectInSidePanel } from '@/object-record/utils/canOpenObjectInSidePanel';
import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
-import { ViewOpenRecordInType } from '@/views/types/ViewOpenRecordInType';
+import { ViewOpenRecordIn } from '~/generated-metadata/graphql';
import { t } from '@lingui/core/macro';
import { type MouseEvent } from 'react';
import { isDefined } from 'twenty-shared/utils';
@@ -62,13 +62,13 @@ export const RecordChip = ({
);
const canOpenInSidePanel = canOpenObjectInSidePanel(objectNameSingular);
- const isSidePanelViewOpenRecordInType =
- recordIndexOpenRecordIn === ViewOpenRecordInType.SIDE_PANEL &&
+ const isSidePanelViewOpenRecordIn =
+ recordIndexOpenRecordIn === ViewOpenRecordIn.SIDE_PANEL &&
canOpenInSidePanel;
const handleCustomClick = isDefined(onClick)
? onClick
- : isSidePanelViewOpenRecordInType
+ : isSidePanelViewOpenRecordIn
? (_event: MouseEvent<HTMLElement>) => {
openRecordInSidePanel({
recordId: record.id,
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 1e230f15084..36f7143d2e1 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
@@ -14,7 +14,7 @@ import { selectedItemIdComponentState } from '@/ui/layout/selectable-list/states
import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';
import { useSetAtomComponentState } from '@/ui/utilities/state/jotai/hooks/useSetAtomComponentState';
import { useGetCurrentViewOnly } from '@/views/hooks/useGetCurrentViewOnly';
-import { coreViewsFromObjectMetadataItemFamilySelector } from '@/views/states/selectors/coreViewsFromObjectMetadataItemFamilySelector';
+import { viewsFromObjectMetadataItemFamilySelector } from '@/views/states/selectors/viewsFromObjectMetadataItemFamilySelector';
import { ViewKey } from '@/views/types/ViewKey';
import { ViewType, viewTypeIconMapping } from '@/views/types/ViewType';
import { useDestroyViewFromCurrentState } from '@/views/view-picker/hooks/useDestroyViewFromCurrentState';
@@ -51,7 +51,7 @@ export const ObjectOptionsDropdownCustomView = ({
const customViewData = currentView
? {
...currentView,
- key: ViewKey.Custom,
+ key: null,
name: currentView.name || t`Custom View`,
}
: null;
@@ -67,11 +67,11 @@ export const ObjectOptionsDropdownCustomView = ({
: undefined;
const viewsOnCurrentObject = useAtomFamilySelectorValue(
- coreViewsFromObjectMetadataItemFamilySelector,
+ viewsFromObjectMetadataItemFamilySelector,
{ objectMetadataItemId: objectMetadataItem.id },
);
- const isDefaultView = currentView?.key === ViewKey.Index;
+ const isDefaultView = currentView?.key === ViewKey.INDEX;
const isLastView = viewsOnCurrentObject.length <= 1;
const recordIndexCalendarLayout = useAtomStateValue(
@@ -106,10 +106,10 @@ export const ObjectOptionsDropdownCustomView = ({
'Layout',
'Visibility',
'Fields',
- ...(customViewData?.type === ViewType.Calendar
+ ...(customViewData?.type === ViewType.CALENDAR
? ['CalendarDateField', 'CalendarView']
: []),
- ...(customViewData?.type !== ViewType.Calendar ? ['Group'] : []),
+ ...(customViewData?.type !== ViewType.CALENDAR ? ['Group'] : []),
'Delete view',
];
@@ -140,7 +140,7 @@ export const ObjectOptionsDropdownCustomView = ({
focused={selectedItemId === 'Layout'}
onClick={() => onContentChange('layout')}
LeftIcon={viewTypeIconMapping(
- customViewData?.type ?? ViewType.Table,
+ customViewData?.type ?? ViewType.TABLE,
)}
text={t`Layout`}
contextualText={`${capitalize(customViewData?.type ?? '')}`}
@@ -169,7 +169,7 @@ export const ObjectOptionsDropdownCustomView = ({
</DropdownMenuItemsContainer>
<DropdownMenuSeparator />
<DropdownMenuItemsContainer scrollable={false}>
- {customViewData?.type === ViewType.Calendar && (
+ {customViewData?.type === ViewType.CALENDAR && (
<>
<div id="calendar-date-field-picker-menu-item">
<SelectableListItem
@@ -227,7 +227,7 @@ export const ObjectOptionsDropdownCustomView = ({
hasSubMenu
/>
</SelectableListItem>
- {customViewData?.type !== ViewType.Calendar && (
+ {customViewData?.type !== ViewType.CALENDAR && (
<div id="group-by-menu-item">
<SelectableListItem
itemId="Group"
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 a68d4df1de8..35cba6b9824 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
@@ -17,7 +17,6 @@ import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/use
import { useGetCurrentViewOnly } from '@/views/hooks/useGetCurrentViewOnly';
import { useUpdateCurrentView } from '@/views/hooks/useUpdateCurrentView';
import { type GraphQLView } from '@/views/types/GraphQLView';
-import { ViewOpenRecordInType } from '@/views/types/ViewOpenRecordInType';
import { ViewType, viewTypeIconMapping } from '@/views/types/ViewType';
import { useGetAvailableFieldsForCalendar } from '@/views/view-picker/hooks/useGetAvailableFieldsForCalendar';
import { useGetAvailableFieldsToGroupRecordsBy } from '@/views/view-picker/hooks/useGetAvailableFieldsToGroupRecordsBy';
@@ -37,7 +36,10 @@ import {
OverflowingTextWithTooltip,
} from 'twenty-ui/display';
import { MenuItem, MenuItemSelect, MenuItemToggle } from 'twenty-ui/navigation';
-import { ViewCalendarLayout } from '~/generated-metadata/graphql';
+import {
+ ViewCalendarLayout,
+ ViewOpenRecordIn,
+} from '~/generated-metadata/graphql';
export const ObjectOptionsDropdownLayoutContent = () => {
const { t } = useLingui();
@@ -92,8 +94,8 @@ export const ObjectOptionsDropdownLayoutContent = () => {
closeDropdown(dropdownId);
return;
}
- if (currentView?.type !== ViewType.Kanban) {
- await setAndPersistViewType(ViewType.Kanban);
+ if (currentView?.type !== ViewType.KANBAN) {
+ await setAndPersistViewType(ViewType.KANBAN);
}
};
@@ -106,8 +108,8 @@ export const ObjectOptionsDropdownLayoutContent = () => {
closeDropdown(dropdownId);
return;
}
- if (currentView?.type !== ViewType.Calendar) {
- await setAndPersistViewType(ViewType.Calendar);
+ if (currentView?.type !== ViewType.CALENDAR) {
+ await setAndPersistViewType(ViewType.CALENDAR);
}
};
@@ -115,15 +117,15 @@ export const ObjectOptionsDropdownLayoutContent = () => {
const nbsp = '\u00A0';
const selectableItemIdArray = [
- ViewType.Table,
- ...(isDefaultView ? [] : [ViewType.Kanban]),
- ...(!isDefaultView ? [ViewType.Calendar] : []),
- ViewOpenRecordInType.SIDE_PANEL,
- ...(currentView?.type === ViewType.Kanban ? ['Group'] : []),
- ...(currentView?.type === ViewType.Calendar
+ ViewType.TABLE,
+ ...(isDefaultView ? [] : [ViewType.KANBAN]),
+ ...(!isDefaultView ? [ViewType.CALENDAR] : []),
+ ViewOpenRecordIn.SIDE_PANEL,
+ ...(currentView?.type === ViewType.KANBAN ? ['Group'] : []),
+ ...(currentView?.type === ViewType.CALENDAR
? ['CalendarView', 'CalendarDateField']
: []),
- ...(currentView?.type !== ViewType.Table ? ['Compact view'] : []),
+ ...(currentView?.type !== ViewType.TABLE ? ['Compact view'] : []),
];
const selectedItemId = useAtomComponentStateValue(
@@ -152,48 +154,48 @@ export const ObjectOptionsDropdownLayoutContent = () => {
>
<DropdownMenuItemsContainer scrollable={false}>
<SelectableListItem
- itemId={ViewType.Table}
+ itemId={ViewType.TABLE}
onEnter={() => {
- setAndPersistViewType(ViewType.Table);
+ setAndPersistViewType(ViewType.TABLE);
}}
>
<MenuItemSelect
LeftIcon={IconTable}
text={t`Table`}
- selected={currentView?.type === ViewType.Table}
- focused={selectedItemId === ViewType.Table}
+ selected={currentView?.type === ViewType.TABLE}
+ focused={selectedItemId === ViewType.TABLE}
onClick={async () => {
- if (currentView?.type !== ViewType.Table) {
- await setAndPersistViewType(ViewType.Table);
+ if (currentView?.type !== ViewType.TABLE) {
+ await setAndPersistViewType(ViewType.TABLE);
}
}}
/>
</SelectableListItem>
<SelectableListItem
- itemId={ViewType.Calendar}
+ itemId={ViewType.CALENDAR}
onEnter={() => {
- setAndPersistViewType(ViewType.Calendar);
+ setAndPersistViewType(ViewType.CALENDAR);
}}
>
<MenuItemSelect
- LeftIcon={viewTypeIconMapping(ViewType.Calendar)}
+ LeftIcon={viewTypeIconMapping(ViewType.CALENDAR)}
text={t`Calendar`}
- selected={currentView?.type === ViewType.Calendar}
- focused={selectedItemId === ViewType.Calendar}
+ selected={currentView?.type === ViewType.CALENDAR}
+ focused={selectedItemId === ViewType.CALENDAR}
onClick={handleSelectCalendarViewType}
/>
</SelectableListItem>
<SelectableListItem
- itemId={ViewType.Kanban}
+ itemId={ViewType.KANBAN}
onEnter={() => {
- setAndPersistViewType(ViewType.Kanban);
+ setAndPersistViewType(ViewType.KANBAN);
}}
>
<MenuItemSelect
- LeftIcon={viewTypeIconMapping(ViewType.Kanban)}
+ LeftIcon={viewTypeIconMapping(ViewType.KANBAN)}
text={t`Kanban`}
disabled={isDefaultView}
- focused={selectedItemId === ViewType.Kanban}
+ focused={selectedItemId === ViewType.KANBAN}
contextualText={
isDefaultView ? (
<>
@@ -207,14 +209,14 @@ export const ObjectOptionsDropdownLayoutContent = () => {
) : undefined
}
contextualTextPosition="right"
- selected={currentView?.type === ViewType.Kanban}
+ selected={currentView?.type === ViewType.KANBAN}
onClick={handleSelectKanbanViewType}
/>
</SelectableListItem>
</DropdownMenuItemsContainer>
<DropdownMenuSeparator />
<DropdownMenuItemsContainer scrollable={false}>
- {currentView?.type === ViewType.Calendar && (
+ {currentView?.type === ViewType.CALENDAR && (
<>
<SelectableListItem
itemId="CalendarDateField"
@@ -253,15 +255,15 @@ export const ObjectOptionsDropdownLayoutContent = () => {
</>
)}
<SelectableListItem
- itemId={ViewOpenRecordInType.SIDE_PANEL}
+ itemId={ViewOpenRecordIn.SIDE_PANEL}
onEnter={() => {
onContentChange('layoutOpenIn');
}}
>
<MenuItem
- focused={selectedItemId === ViewOpenRecordInType.SIDE_PANEL}
+ focused={selectedItemId === ViewOpenRecordIn.SIDE_PANEL}
LeftIcon={
- recordIndexOpenRecordIn === ViewOpenRecordInType.SIDE_PANEL
+ recordIndexOpenRecordIn === ViewOpenRecordIn.SIDE_PANEL
? IconLayoutSidebarRight
: IconLayoutNavbar
}
@@ -270,7 +272,7 @@ export const ObjectOptionsDropdownLayoutContent = () => {
onContentChange('layoutOpenIn');
}}
contextualText={
- recordIndexOpenRecordIn === ViewOpenRecordInType.SIDE_PANEL
+ recordIndexOpenRecordIn === ViewOpenRecordIn.SIDE_PANEL
? t`Side Panel`
: t`Record Page`
}
@@ -278,7 +280,7 @@ export const ObjectOptionsDropdownLayoutContent = () => {
hasSubMenu
/>
</SelectableListItem>
- {currentView?.type === ViewType.Kanban && (
+ {currentView?.type === ViewType.KANBAN && (
<SelectableListItem
itemId="Group"
onEnter={() => {
@@ -302,7 +304,7 @@ export const ObjectOptionsDropdownLayoutContent = () => {
/>
</SelectableListItem>
)}
- {currentView?.type !== ViewType.Table && (
+ {currentView?.type !== ViewType.TABLE && (
<SelectableListItem
itemId="Compact view"
onEnter={() => {
diff --git a/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownLayoutOpenInContent.tsx b/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownLayoutOpenInContent.tsx
index 03f1495a665..4703cd5af4a 100644
--- a/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownLayoutOpenInContent.tsx
+++ b/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownLayoutOpenInContent.tsx
@@ -14,7 +14,7 @@ import { selectedItemIdComponentState } from '@/ui/layout/selectable-list/states
import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';
import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
import { useGetCurrentViewOnly } from '@/views/hooks/useGetCurrentViewOnly';
-import { ViewOpenRecordInType } from '@/views/types/ViewOpenRecordInType';
+import { ViewOpenRecordIn } from '~/generated-metadata/graphql';
import { t } from '@lingui/core/macro';
import {
IconChevronLeft,
@@ -41,8 +41,8 @@ export const ObjectOptionsDropdownLayoutOpenInContent = () => {
);
const selectableItemIdArray = [
- ViewOpenRecordInType.SIDE_PANEL,
- ViewOpenRecordInType.RECORD_PAGE,
+ ViewOpenRecordIn.SIDE_PANEL,
+ ViewOpenRecordIn.RECORD_PAGE,
];
return (
@@ -64,13 +64,13 @@ export const ObjectOptionsDropdownLayoutOpenInContent = () => {
selectableItemIdArray={selectableItemIdArray}
>
<SelectableListItem
- itemId={ViewOpenRecordInType.SIDE_PANEL}
+ itemId={ViewOpenRecordIn.SIDE_PANEL}
onEnter={() => {
if (!canOpenInSidePanel) {
return;
}
setAndPersistOpenRecordIn(
- ViewOpenRecordInType.SIDE_PANEL,
+ ViewOpenRecordIn.SIDE_PANEL,
currentView,
);
}}
@@ -78,17 +78,15 @@ export const ObjectOptionsDropdownLayoutOpenInContent = () => {
<MenuItemSelect
LeftIcon={IconLayoutSidebarRight}
text={t`Side Panel`}
- selected={
- recordIndexOpenRecordIn === ViewOpenRecordInType.SIDE_PANEL
- }
- focused={selectedItemId === ViewOpenRecordInType.SIDE_PANEL}
+ selected={recordIndexOpenRecordIn === ViewOpenRecordIn.SIDE_PANEL}
+ focused={selectedItemId === ViewOpenRecordIn.SIDE_PANEL}
onClick={() => {
if (!canOpenInSidePanel) {
return;
}
setAndPersistOpenRecordIn(
- ViewOpenRecordInType.SIDE_PANEL,
+ ViewOpenRecordIn.SIDE_PANEL,
currentView,
);
}}
@@ -96,10 +94,10 @@ export const ObjectOptionsDropdownLayoutOpenInContent = () => {
/>
</SelectableListItem>
<SelectableListItem
- itemId={ViewOpenRecordInType.RECORD_PAGE}
+ itemId={ViewOpenRecordIn.RECORD_PAGE}
onEnter={() =>
setAndPersistOpenRecordIn(
- ViewOpenRecordInType.RECORD_PAGE,
+ ViewOpenRecordIn.RECORD_PAGE,
currentView,
)
}
@@ -108,15 +106,15 @@ export const ObjectOptionsDropdownLayoutOpenInContent = () => {
LeftIcon={IconLayoutNavbar}
text={t`Record Page`}
selected={
- recordIndexOpenRecordIn === ViewOpenRecordInType.RECORD_PAGE
+ recordIndexOpenRecordIn === ViewOpenRecordIn.RECORD_PAGE
}
onClick={() =>
setAndPersistOpenRecordIn(
- ViewOpenRecordInType.RECORD_PAGE,
+ ViewOpenRecordIn.RECORD_PAGE,
currentView,
)
}
- focused={selectedItemId === ViewOpenRecordInType.RECORD_PAGE}
+ focused={selectedItemId === ViewOpenRecordIn.RECORD_PAGE}
/>
</SelectableListItem>
</SelectableList>
diff --git a/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownMenuContent.tsx b/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownMenuContent.tsx
index e7445b52dfd..860067d0115 100644
--- a/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownMenuContent.tsx
+++ b/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownMenuContent.tsx
@@ -6,7 +6,7 @@ import { ViewKey } from '@/views/types/ViewKey';
export const ObjectOptionsDropdownMenuContent = () => {
const { currentView } = useGetCurrentViewOnly();
- const isDefaultView = currentView?.key === ViewKey.Index;
+ const isDefaultView = currentView?.key === ViewKey.INDEX;
if (isDefaultView) {
return <ObjectOptionsDropdownDefaultView />;
diff --git a/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownRecordGroupFieldsContent.tsx b/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownRecordGroupFieldsContent.tsx
index e2e8e176a47..858bb4b18f2 100644
--- a/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownRecordGroupFieldsContent.tsx
+++ b/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownRecordGroupFieldsContent.tsx
@@ -127,7 +127,7 @@ export const ObjectOptionsDropdownRecordGroupFieldsContent = () => {
/>
<DropdownMenuSeparator />
<DropdownMenuItemsContainer>
- {viewType === ViewType.Table && (
+ {viewType === ViewType.TABLE && (
<MenuItemSelect
text={t`None`}
selected={!isDefined(recordIndexGroupFieldMetadataItem)}
diff --git a/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/__stories__/ObjectOptionsDropdownContent.stories.tsx b/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/__stories__/ObjectOptionsDropdownContent.stories.tsx
index 367244ec7e4..48cf224b386 100644
--- a/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/__stories__/ObjectOptionsDropdownContent.stories.tsx
+++ b/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/__stories__/ObjectOptionsDropdownContent.stories.tsx
@@ -108,7 +108,7 @@ const createStory = (contentId: ObjectOptionsContentId | null): Story => ({
>
<ObjectOptionsDropdownContext.Provider
value={{
- viewType: ViewType.Table,
+ viewType: ViewType.TABLE,
objectMetadataItem: companyObjectMetadataItem,
recordIndexId: instanceId,
currentContentId: contentId,
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 0f071c2b5a1..8ba55c0b7ee 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
@@ -5,10 +5,9 @@ import { useRecordIndexContextOrThrow } from '@/object-record/record-index/conte
import { useLoadRecordIndexStates } from '@/object-record/record-index/hooks/useLoadRecordIndexStates';
import { recordIndexViewTypeState } from '@/object-record/record-index/states/recordIndexViewTypeState';
import { useUpdateCurrentView } from '@/views/hooks/useUpdateCurrentView';
-import { coreViewsSelector } from '@/views/states/selectors/coreViewsSelector';
+import { viewsSelector } from '@/views/states/selectors/viewsSelector';
import { type GraphQLView } from '@/views/types/GraphQLView';
import { ViewType, viewTypeIconMapping } from '@/views/types/ViewType';
-import { convertCoreViewToView } from '@/views/utils/convertCoreViewToView';
import { useGetAvailableFieldsForCalendar } from '@/views/view-picker/hooks/useGetAvailableFieldsForCalendar';
import { useGetAvailableFieldsToGroupRecordsBy } from '@/views/view-picker/hooks/useGetAvailableFieldsToGroupRecordsBy';
import { useSetAtomState } from '@/ui/utilities/state/jotai/hooks/useSetAtomState';
@@ -38,27 +37,25 @@ export const useSetViewTypeFromLayoutOptionsMenu = () => {
}),
);
- const existingCoreViews = store.get(coreViewsSelector.atom);
+ const existingViews = store.get(viewsSelector.atom);
if (!isDefined(currentViewId)) {
throw new Error('No view id found');
}
- const currentCoreView = existingCoreViews.find(
- (coreView) => coreView.id === currentViewId,
+ const currentView = existingViews.find(
+ (view) => view.id === currentViewId,
);
- if (!isDefined(currentCoreView)) {
+ if (!isDefined(currentView)) {
throw new Error('No current view found');
}
- const currentView = convertCoreViewToView(currentCoreView);
-
const updateCurrentViewParams: Partial<GraphQLView> = {};
updateCurrentViewParams.type = viewType;
switch (viewType) {
- case ViewType.Kanban: {
+ case ViewType.KANBAN: {
if (availableFieldsForGrouping.length === 0) {
throw new Error('No fields for kanban - should not happen');
}
@@ -76,7 +73,7 @@ export const useSetViewTypeFromLayoutOptionsMenu = () => {
await updateCurrentView(updateCurrentViewParams);
return;
}
- case ViewType.Table: {
+ case ViewType.TABLE: {
if (shouldChangeIcon(currentView.icon, currentView.type)) {
updateCurrentViewParams.icon =
viewTypeIconMapping(viewType).displayName;
@@ -86,7 +83,7 @@ export const useSetViewTypeFromLayoutOptionsMenu = () => {
setRecordIndexViewType(viewType);
return;
}
- case ViewType.Calendar: {
+ case ViewType.CALENDAR: {
if (availableFieldsForCalendar.length === 0) {
throw new Error('No date fields for calendar');
}
@@ -115,7 +112,7 @@ export const useSetViewTypeFromLayoutOptionsMenu = () => {
updateCurrentViewParams.mainGroupByFieldMetadataId = null;
return await updateCurrentView(updateCurrentViewParams);
}
- case ViewType.FieldsWidget: {
+ case ViewType.FIELDS_WIDGET: {
return;
}
default: {
@@ -139,20 +136,20 @@ export const useSetViewTypeFromLayoutOptionsMenu = () => {
oldViewType: ViewType,
): boolean => {
if (
- oldViewType === ViewType.Kanban &&
- oldIcon === viewTypeIconMapping(ViewType.Kanban).displayName
+ oldViewType === ViewType.KANBAN &&
+ oldIcon === viewTypeIconMapping(ViewType.KANBAN).displayName
) {
return true;
}
if (
- oldViewType === ViewType.Table &&
- oldIcon === viewTypeIconMapping(ViewType.Table).displayName
+ oldViewType === ViewType.TABLE &&
+ oldIcon === viewTypeIconMapping(ViewType.TABLE).displayName
) {
return true;
}
if (
- oldViewType === ViewType.Calendar &&
- oldIcon === viewTypeIconMapping(ViewType.Calendar).displayName
+ oldViewType === ViewType.CALENDAR &&
+ oldIcon === viewTypeIconMapping(ViewType.CALENDAR).displayName
) {
return true;
}
diff --git a/packages/twenty-front/src/modules/object-record/object-options-dropdown/hooks/useUpdateObjectViewOptions.ts b/packages/twenty-front/src/modules/object-record/object-options-dropdown/hooks/useUpdateObjectViewOptions.ts
index 2bea1195768..7f87d430ee4 100644
--- a/packages/twenty-front/src/modules/object-record/object-options-dropdown/hooks/useUpdateObjectViewOptions.ts
+++ b/packages/twenty-front/src/modules/object-record/object-options-dropdown/hooks/useUpdateObjectViewOptions.ts
@@ -4,7 +4,7 @@ import { useSetAtomState } from '@/ui/utilities/state/jotai/hooks/useSetAtomStat
import { useStore } from 'jotai';
import { useUpdateCurrentView } from '@/views/hooks/useUpdateCurrentView';
import { type GraphQLView } from '@/views/types/GraphQLView';
-import { type ViewOpenRecordInType } from '@/views/types/ViewOpenRecordInType';
+import { type ViewOpenRecordIn } from '~/generated-metadata/graphql';
import { viewPickerInputNameComponentState } from '@/views/view-picker/states/viewPickerInputNameComponentState';
import { viewPickerSelectedIconComponentState } from '@/views/view-picker/states/viewPickerSelectedIconComponentState';
import { useCallback } from 'react';
@@ -27,7 +27,7 @@ export const useUpdateObjectViewOptions = () => {
const { updateCurrentView } = useUpdateCurrentView();
const setAndPersistOpenRecordIn = useCallback(
- (openRecordIn: ViewOpenRecordInType, view: GraphQLView | undefined) => {
+ (openRecordIn: ViewOpenRecordIn, view: GraphQLView | undefined) => {
if (!view) return;
setRecordIndexOpenRecordIn(openRecordIn);
store.set(recordIndexOpenRecordInState.atom, openRecordIn);
diff --git a/packages/twenty-front/src/modules/object-record/record-board/components/RecordBoardColumns.tsx b/packages/twenty-front/src/modules/object-record/record-board/components/RecordBoardColumns.tsx
index 23fe106b643..5921f01489c 100644
--- a/packages/twenty-front/src/modules/object-record/record-board/components/RecordBoardColumns.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-board/components/RecordBoardColumns.tsx
@@ -16,7 +16,7 @@ const StyledColumnContainer = styled.div`
export const RecordBoardColumns = () => {
const visibleRecordGroupIds = useAtomComponentFamilySelectorValue(
visibleRecordGroupIdsComponentFamilySelector,
- ViewType.Kanban,
+ ViewType.KANBAN,
);
return (
diff --git a/packages/twenty-front/src/modules/object-record/record-board/components/RecordBoardFetchMoreInViewTriggerComponent.tsx b/packages/twenty-front/src/modules/object-record/record-board/components/RecordBoardFetchMoreInViewTriggerComponent.tsx
index 4b2d3321fdc..1d763f52b5a 100644
--- a/packages/twenty-front/src/modules/object-record/record-board/components/RecordBoardFetchMoreInViewTriggerComponent.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-board/components/RecordBoardFetchMoreInViewTriggerComponent.tsx
@@ -41,7 +41,7 @@ export const RecordBoardFetchMoreInViewTriggerComponent = () => {
const visibleRecordGroupIds = useAtomComponentFamilySelectorValue(
visibleRecordGroupIdsComponentFamilySelector,
- ViewType.Kanban,
+ ViewType.KANBAN,
);
const componentWidth =
diff --git a/packages/twenty-front/src/modules/object-record/record-board/components/RecordBoardHeader.tsx b/packages/twenty-front/src/modules/object-record/record-board/components/RecordBoardHeader.tsx
index 73292095e64..279c8cd730d 100644
--- a/packages/twenty-front/src/modules/object-record/record-board/components/RecordBoardHeader.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-board/components/RecordBoardHeader.tsx
@@ -29,7 +29,7 @@ const StyledHeaderContainer = styled.div`
export const RecordBoardHeader = () => {
const visibleRecordGroupIds = useAtomComponentFamilySelectorValue(
visibleRecordGroupIdsComponentFamilySelector,
- ViewType.Kanban,
+ ViewType.KANBAN,
);
return (
diff --git a/packages/twenty-front/src/modules/object-record/record-board/hooks/useRecordBoardCardNavigation.ts b/packages/twenty-front/src/modules/object-record/record-board/hooks/useRecordBoardCardNavigation.ts
index 8e9b16d5834..82d593b748e 100644
--- a/packages/twenty-front/src/modules/object-record/record-board/hooks/useRecordBoardCardNavigation.ts
+++ b/packages/twenty-front/src/modules/object-record/record-board/hooks/useRecordBoardCardNavigation.ts
@@ -24,7 +24,7 @@ export const useRecordBoardCardNavigation = (recordBoardId?: string) => {
const visibleRecordGroupIds = useAtomComponentFamilySelectorValue(
visibleRecordGroupIdsComponentFamilySelector,
- ViewType.Kanban,
+ ViewType.KANBAN,
);
const recordIdsByGroupState = useAtomComponentFamilyStateCallbackState(
diff --git a/packages/twenty-front/src/modules/object-record/record-board/record-board-card/components/RecordBoardCardHeader.tsx b/packages/twenty-front/src/modules/object-record/record-board/record-board-card/components/RecordBoardCardHeader.tsx
index be2202ad116..77dd1f34cea 100644
--- a/packages/twenty-front/src/modules/object-record/record-board/record-board-card/components/RecordBoardCardHeader.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-board/record-board-card/components/RecordBoardCardHeader.tsx
@@ -17,7 +17,7 @@ import { useAtomComponentState } from '@/ui/utilities/state/jotai/hooks/useAtomC
import { useAtomFamilyStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomFamilyStateValue';
import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
import { useGetCurrentViewOnly } from '@/views/hooks/useGetCurrentViewOnly';
-import { ViewOpenRecordInType } from '@/views/types/ViewOpenRecordInType';
+import { ViewOpenRecordIn } from '~/generated-metadata/graphql';
import { styled } from '@linaria/react';
import { useContext } from 'react';
import { themeCssVariables } from 'twenty-ui/theme-constants';
@@ -76,7 +76,7 @@ export const RecordBoardCardHeader = () => {
const recordStore = useAtomFamilyStateValue(recordStoreFamilyState, recordId);
const triggerEvent =
- recordIndexOpenRecordIn === ViewOpenRecordInType.SIDE_PANEL
+ recordIndexOpenRecordIn === ViewOpenRecordIn.SIDE_PANEL
? 'CLICK'
: 'MOUSE_DOWN';
diff --git a/packages/twenty-front/src/modules/object-record/record-board/record-board-column/components/RecordBoardColumnDropdownMenu.tsx b/packages/twenty-front/src/modules/object-record/record-board/record-board-column/components/RecordBoardColumnDropdownMenu.tsx
index 7e15d75d5b3..95159a97844 100644
--- a/packages/twenty-front/src/modules/object-record/record-board/record-board-column/components/RecordBoardColumnDropdownMenu.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-board/record-board-column/components/RecordBoardColumnDropdownMenu.tsx
@@ -6,7 +6,7 @@ import { MenuItem } from 'twenty-ui/navigation';
export const RecordBoardColumnDropdownMenu = () => {
const recordGroupActions = useRecordGroupActions({
- viewType: ViewType.Kanban,
+ viewType: ViewType.KANBAN,
});
return (
diff --git a/packages/twenty-front/src/modules/object-record/record-calendar/month/components/__stories__/RecordCalendarMonth.stories.tsx b/packages/twenty-front/src/modules/object-record/record-calendar/month/components/__stories__/RecordCalendarMonth.stories.tsx
index d8b0fd8b5a2..e72b71a1522 100644
--- a/packages/twenty-front/src/modules/object-record/record-calendar/month/components/__stories__/RecordCalendarMonth.stories.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-calendar/month/components/__stories__/RecordCalendarMonth.stories.tsx
@@ -25,9 +25,9 @@ import { ContextStoreDecorator } from '~/testing/decorators/ContextStoreDecorato
import { IconsProviderDecorator } from '~/testing/decorators/IconsProviderDecorator';
import { ObjectMetadataItemsDecorator } from '~/testing/decorators/ObjectMetadataItemsDecorator';
import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator';
-import { mockedCoreViews } from '~/testing/mock-data/generated/metadata/views/mock-views-data';
+import { mockedViews } from '~/testing/mock-data/generated/metadata/views/mock-views-data';
import { generatedMockObjectMetadataItems } from '~/testing/utils/generatedMockObjectMetadataItems';
-import { setTestCoreViewsInMetadataStore } from '~/testing/utils/setTestCoreViewsInMetadataStore';
+import { setTestViewsInMetadataStore } from '~/testing/utils/setTestViewsInMetadataStore';
const meta: Meta<typeof RecordCalendarMonth> = {
title: 'Modules/ObjectRecord/RecordCalendar/Month',
@@ -44,9 +44,7 @@ const meta: Meta<typeof RecordCalendarMonth> = {
instanceId,
);
- const mockCoreView = mockedCoreViews.find(
- (v) => v.name === 'All Companies',
- )!;
+ const mockView = mockedViews.find((v) => v.name === 'All Companies')!;
const setContextStoreCurrentViewId = useSetAtomComponentState(
contextStoreCurrentViewIdComponentState,
@@ -71,14 +69,14 @@ const meta: Meta<typeof RecordCalendarMonth> = {
const [isLoaded, setIsLoaded] = useState(false);
useEffect(() => {
- setTestCoreViewsInMetadataStore(jotaiStore, [mockCoreView]);
- setContextStoreCurrentViewId(mockCoreView.id);
+ setTestViewsInMetadataStore(jotaiStore, [mockView]);
+ setContextStoreCurrentViewId(mockView.id);
setCurrentRecordFields(columns);
setIsLoaded(true);
}, [
setContextStoreCurrentViewId,
setCurrentRecordFields,
- mockCoreView,
+ mockView,
columns,
]);
diff --git a/packages/twenty-front/src/modules/object-record/record-field-list/record-detail-section/relation/components/RecordDetailRelationSection.tsx b/packages/twenty-front/src/modules/object-record/record-field-list/record-detail-section/relation/components/RecordDetailRelationSection.tsx
index 4c09d4fba26..6462c0eac0b 100644
--- a/packages/twenty-front/src/modules/object-record/record-field-list/record-detail-section/relation/components/RecordDetailRelationSection.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-field-list/record-detail-section/relation/components/RecordDetailRelationSection.tsx
@@ -22,7 +22,7 @@ import { isDropdownOpenComponentState } from '@/ui/layout/dropdown/states/isDrop
import { useIsMobile } from '@/ui/utilities/responsive/hooks/useIsMobile';
import { useAtomFamilySelectorValue } from '@/ui/utilities/state/jotai/hooks/useAtomFamilySelectorValue';
import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';
-import { coreIndexViewIdFromObjectMetadataItemFamilySelector } from '@/views/states/selectors/coreIndexViewIdFromObjectMetadataItemFamilySelector';
+import { indexViewIdFromObjectMetadataItemFamilySelector } from '@/views/states/selectors/indexViewIdFromObjectMetadataItemFamilySelector';
import { useLingui } from '@lingui/react/macro';
import {
AppPath,
@@ -107,7 +107,7 @@ export const RecordDetailRelationSection = ({
);
const indexViewId = useAtomFamilySelectorValue(
- coreIndexViewIdFromObjectMetadataItemFamilySelector,
+ indexViewIdFromObjectMetadataItemFamilySelector,
{ objectMetadataItemId: relationObjectMetadataItem.id },
);
diff --git a/packages/twenty-front/src/modules/object-record/record-index/components/RecordIndexContainer.tsx b/packages/twenty-front/src/modules/object-record/record-index/components/RecordIndexContainer.tsx
index 2f940d4df07..23700f0f79f 100644
--- a/packages/twenty-front/src/modules/object-record/record-index/components/RecordIndexContainer.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-index/components/RecordIndexContainer.tsx
@@ -54,7 +54,7 @@ export const RecordIndexContainer = () => {
<ObjectOptionsDropdown
recordIndexId={recordIndexId}
objectMetadataItem={objectMetadataItem}
- viewType={recordIndexViewType ?? ViewType.Table}
+ viewType={recordIndexViewType ?? ViewType.TABLE}
/>
}
/>
@@ -64,12 +64,12 @@ export const RecordIndexContainer = () => {
/>
</SpreadsheetImportProvider>
<RecordIndexFiltersToContextStoreEffect />
- {recordIndexViewType === ViewType.Table && (
+ {recordIndexViewType === ViewType.TABLE && (
<>
<RecordIndexTableContainer recordTableId={recordIndexId} />
</>
)}
- {recordIndexViewType === ViewType.Kanban && (
+ {recordIndexViewType === ViewType.KANBAN && (
<StyledContainerWithPadding>
<RecordBoardContainer
recordBoardId={recordIndexId}
@@ -78,7 +78,7 @@ export const RecordIndexContainer = () => {
/>
</StyledContainerWithPadding>
)}
- {recordIndexViewType === ViewType.Calendar && (
+ {recordIndexViewType === ViewType.CALENDAR && (
<StyledContainerWithPadding>
<RecordIndexCalendarContainer
recordCalendarInstanceId={recordIndexId}
diff --git a/packages/twenty-front/src/modules/object-record/record-index/components/RecordIndexLoadBaseOnContextStoreEffect.tsx b/packages/twenty-front/src/modules/object-record/record-index/components/RecordIndexLoadBaseOnContextStoreEffect.tsx
index d6c97d11999..39c03ba1bd9 100644
--- a/packages/twenty-front/src/modules/object-record/record-index/components/RecordIndexLoadBaseOnContextStoreEffect.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-index/components/RecordIndexLoadBaseOnContextStoreEffect.tsx
@@ -4,7 +4,7 @@ import { useLoadRecordIndexStates } from '@/object-record/record-index/hooks/use
import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';
import { useAtomFamilySelectorValue } from '@/ui/utilities/state/jotai/hooks/useAtomFamilySelectorValue';
import { useCreateDefaultViewForObject } from '@/views/hooks/useCreateDefaultViewForObject';
-import { coreViewFromViewIdFamilySelector } from '@/views/states/selectors/coreViewFromViewIdFamilySelector';
+import { viewFromViewIdFamilySelector } from '@/views/states/selectors/viewFromViewIdFamilySelector';
import { useEffect, useState } from 'react';
import { isDefined } from 'twenty-shared/utils';
@@ -18,7 +18,7 @@ export const RecordIndexLoadBaseOnContextStoreEffect = () => {
undefined,
);
- const view = useAtomFamilySelectorValue(coreViewFromViewIdFamilySelector, {
+ const view = useAtomFamilySelectorValue(viewFromViewIdFamilySelector, {
viewId: contextStoreCurrentViewId ?? '',
});
diff --git a/packages/twenty-front/src/modules/object-record/record-index/components/RecordIndexPageHeaderIcon.tsx b/packages/twenty-front/src/modules/object-record/record-index/components/RecordIndexPageHeaderIcon.tsx
index c85232bf601..e39185f8c05 100644
--- a/packages/twenty-front/src/modules/object-record/record-index/components/RecordIndexPageHeaderIcon.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-index/components/RecordIndexPageHeaderIcon.tsx
@@ -5,7 +5,7 @@ import { useNavigationMenuItemsData } from '@/navigation-menu-item/hooks/useNavi
import { getStandardObjectIconColor } from '@/navigation-menu-item/utils/getStandardObjectIconColor';
import { type ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem';
import { useAtomFamilySelectorValue } from '@/ui/utilities/state/jotai/hooks/useAtomFamilySelectorValue';
-import { coreIndexViewIdFromObjectMetadataItemFamilySelector } from '@/views/states/selectors/coreIndexViewIdFromObjectMetadataItemFamilySelector';
+import { indexViewIdFromObjectMetadataItemFamilySelector } from '@/views/states/selectors/indexViewIdFromObjectMetadataItemFamilySelector';
import { isDefined } from 'twenty-shared/utils';
import { useIcons } from 'twenty-ui/display';
@@ -16,7 +16,7 @@ export const RecordIndexPageHeaderIcon = ({
}) => {
const { workspaceNavigationMenuItems } = useNavigationMenuItemsData();
const coreIndexViewId = useAtomFamilySelectorValue(
- coreIndexViewIdFromObjectMetadataItemFamilySelector,
+ indexViewIdFromObjectMetadataItemFamilySelector,
{ objectMetadataItemId: objectMetadataItem?.id ?? '' },
);
const { getIcon } = useIcons();
diff --git a/packages/twenty-front/src/modules/object-record/record-index/export/hooks/__tests__/useRecordIndexLazyFetchRecords.test.ts b/packages/twenty-front/src/modules/object-record/record-index/export/hooks/__tests__/useRecordIndexLazyFetchRecords.test.ts
index 436b0bca91d..d811aca0f4f 100644
--- a/packages/twenty-front/src/modules/object-record/record-index/export/hooks/__tests__/useRecordIndexLazyFetchRecords.test.ts
+++ b/packages/twenty-front/src/modules/object-record/record-index/export/hooks/__tests__/useRecordIndexLazyFetchRecords.test.ts
@@ -109,7 +109,7 @@ describe('useRecordData', () => {
pageSize: 30,
callback,
delayMs: 0,
- viewType: ViewType.Kanban,
+ viewType: ViewType.KANBAN,
}),
{
wrapper: Wrapper,
diff --git a/packages/twenty-front/src/modules/object-record/record-index/export/hooks/useRecordIndexLazyFetchRecords.ts b/packages/twenty-front/src/modules/object-record/record-index/export/hooks/useRecordIndexLazyFetchRecords.ts
index 1ea16f16adb..5d9a1e55dbf 100644
--- a/packages/twenty-front/src/modules/object-record/record-index/export/hooks/useRecordIndexLazyFetchRecords.ts
+++ b/packages/twenty-front/src/modules/object-record/record-index/export/hooks/useRecordIndexLazyFetchRecords.ts
@@ -51,7 +51,7 @@ export const useRecordIndexLazyFetchRecords = ({
pageSize = EXPORT_TABLE_DATA_DEFAULT_PAGE_SIZE,
recordIndexId,
callback,
- viewType = ViewType.Table,
+ viewType = ViewType.TABLE,
}: UseRecordDataOptions) => {
const { hiddenBoardFields } = useObjectOptionsForBoard({
objectNameSingular: objectMetadataItem.nameSingular,
@@ -129,7 +129,7 @@ export const useRecordIndexLazyFetchRecords = ({
};
})
.filter(isDefined),
- ...(hiddenKanbanFieldColumn && viewType === ViewType.Kanban
+ ...(hiddenKanbanFieldColumn && viewType === ViewType.KANBAN
? [hiddenKanbanFieldColumn]
: []),
];
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 e487b95bfaa..0f5d143b0ff 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
@@ -7,12 +7,11 @@ import { useAtomComponentStateCallbackState } from '@/ui/utilities/state/jotai/h
import { usePerformViewAPIUpdate } from '@/views/hooks/internal/usePerformViewAPIUpdate';
import { useGetViewFromState } from '@/views/hooks/useGetViewFromState';
import { type ViewGroup } from '@/views/types/ViewGroup';
-import { convertCoreViewToView } from '@/views/utils/convertCoreViewToView';
import { useStore } from 'jotai';
import { useCallback } from 'react';
import { isDefined } from 'twenty-shared/utils';
import { v4 } from 'uuid';
-import { type CoreView } from '~/generated-metadata/graphql';
+import { type View as GqlView } from '~/generated-metadata/graphql';
import { isUndefinedOrNull } from '~/utils/isUndefinedOrNull';
export const useHandleRecordGroupField = () => {
@@ -60,12 +59,11 @@ export const useHandleRecordGroupField = () => {
});
if (updatedViewResult.status === 'successful') {
- const updatedCoreView = updatedViewResult.response.data
- ?.updateCoreView as CoreView;
+ const updatedView = updatedViewResult.response.data
+ ?.updateView as GqlView;
- if (isDefined(updatedCoreView)) {
- const updatedViewConverted = convertCoreViewToView(updatedCoreView);
- await loadRecordIndexStates(updatedViewConverted, objectMetadataItem);
+ if (isDefined(updatedView)) {
+ await loadRecordIndexStates(updatedView, objectMetadataItem);
}
}
@@ -84,7 +82,6 @@ export const useHandleRecordGroupField = () => {
.map(
(option, index) =>
({
- __typename: 'ViewGroup',
id: v4(),
fieldValue: option.value,
isVisible: true,
@@ -97,7 +94,6 @@ export const useHandleRecordGroupField = () => {
fieldMetadataItem.isNullable === true
) {
viewGroupsToCreate.push({
- __typename: 'ViewGroup',
id: v4(),
fieldValue: '',
isVisible: true,
diff --git a/packages/twenty-front/src/modules/object-record/record-index/hooks/useOpenRecordFromIndexView.ts b/packages/twenty-front/src/modules/object-record/record-index/hooks/useOpenRecordFromIndexView.ts
index 0ba2924abfd..d39990c32b3 100644
--- a/packages/twenty-front/src/modules/object-record/record-index/hooks/useOpenRecordFromIndexView.ts
+++ b/packages/twenty-front/src/modules/object-record/record-index/hooks/useOpenRecordFromIndexView.ts
@@ -9,7 +9,7 @@ import { recordIndexOpenRecordInState } from '@/object-record/record-index/state
import { currentRecordSortsComponentState } from '@/object-record/record-sort/states/currentRecordSortsComponentState';
import { canOpenObjectInSidePanel } from '@/object-record/utils/canOpenObjectInSidePanel';
import { useAtomComponentStateCallbackState } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateCallbackState';
-import { ViewOpenRecordInType } from '@/views/types/ViewOpenRecordInType';
+import { ViewOpenRecordIn } from '~/generated-metadata/graphql';
import { useStore } from 'jotai';
import { useCallback } from 'react';
import { AppPath } from 'twenty-shared/types';
@@ -72,7 +72,7 @@ export const useOpenRecordFromIndexView = () => {
if (
!isMobile &&
- recordIndexOpenRecordIn === ViewOpenRecordInType.SIDE_PANEL &&
+ recordIndexOpenRecordIn === ViewOpenRecordIn.SIDE_PANEL &&
canOpenObjectInSidePanel(objectNameSingular)
) {
openRecordInSidePanel({
diff --git a/packages/twenty-front/src/modules/object-record/record-index/states/recordIndexOpenRecordInState.ts b/packages/twenty-front/src/modules/object-record/record-index/states/recordIndexOpenRecordInState.ts
index 9572637012d..bd74d6bc1a2 100644
--- a/packages/twenty-front/src/modules/object-record/record-index/states/recordIndexOpenRecordInState.ts
+++ b/packages/twenty-front/src/modules/object-record/record-index/states/recordIndexOpenRecordInState.ts
@@ -1,8 +1,7 @@
-import { ViewOpenRecordInType } from '@/views/types/ViewOpenRecordInType';
import { createAtomState } from '@/ui/utilities/state/jotai/utils/createAtomState';
+import { ViewOpenRecordIn } from '~/generated-metadata/graphql';
-export const recordIndexOpenRecordInState =
- createAtomState<ViewOpenRecordInType>({
- key: 'recordIndexOpenRecordInState',
- defaultValue: ViewOpenRecordInType.SIDE_PANEL,
- });
+export const recordIndexOpenRecordInState = createAtomState<ViewOpenRecordIn>({
+ key: 'recordIndexOpenRecordInState',
+ defaultValue: ViewOpenRecordIn.SIDE_PANEL,
+});
diff --git a/packages/twenty-front/src/modules/object-record/record-table/__stories__/RecordTable.stories.tsx b/packages/twenty-front/src/modules/object-record/record-table/__stories__/RecordTable.stories.tsx
index 7b9c99c37f1..655b1f2dee7 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/__stories__/RecordTable.stories.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-table/__stories__/RecordTable.stories.tsx
@@ -12,10 +12,10 @@ import { RecordTableDecorator } from '~/testing/decorators/RecordTableDecorator'
import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator';
import { graphqlMocks } from '~/testing/graphqlMocks';
import { mockedCompanyRecords } from '~/testing/mock-data/generated/data/companies/mock-companies-data';
-import { mockedCoreViews } from '~/testing/mock-data/generated/metadata/views/mock-views-data';
+import { mockedViews } from '~/testing/mock-data/generated/metadata/views/mock-views-data';
import { sleep } from '~/utils/sleep';
-const companyView = mockedCoreViews.find((v) => v.name === 'All Companies')!;
+const companyView = mockedViews.find((v) => v.name === 'All Companies')!;
const meta: Meta = {
title: 'Modules/ObjectRecord/RecordTable/RecordTable',
diff --git a/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableContextProvider.tsx b/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableContextProvider.tsx
index 8bcc7d07329..9d2ea77cabe 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableContextProvider.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableContextProvider.tsx
@@ -12,7 +12,7 @@ import { RECORD_TABLE_CELL_INPUT_ID_PREFIX } from '@/object-record/record-table/
import { RECORD_TABLE_COLUMN_MIN_WIDTH } from '@/object-record/record-table/constants/RecordTableColumnMinWidth';
import { useAtomComponentSelectorValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentSelectorValue';
import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
-import { ViewOpenRecordInType } from '@/views/types/ViewOpenRecordInType';
+import { ViewOpenRecordIn } from '~/generated-metadata/graphql';
type RecordTableContextProviderProps = {
viewBarId: string;
@@ -47,7 +47,7 @@ export const RecordTableContextProvider = ({
recordIndexOpenRecordInState,
);
const triggerEvent =
- recordIndexOpenRecordIn === ViewOpenRecordInType.SIDE_PANEL
+ recordIndexOpenRecordIn === ViewOpenRecordIn.SIDE_PANEL
? 'CLICK'
: 'MOUSE_DOWN';
diff --git a/packages/twenty-front/src/modules/object-record/record-table/hooks/useCreateNewIndexRecord.ts b/packages/twenty-front/src/modules/object-record/record-table/hooks/useCreateNewIndexRecord.ts
index 7592043707b..44e5d90885a 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/hooks/useCreateNewIndexRecord.ts
+++ b/packages/twenty-front/src/modules/object-record/record-table/hooks/useCreateNewIndexRecord.ts
@@ -15,7 +15,7 @@ import { canOpenObjectInSidePanel } from '@/object-record/utils/canOpenObjectInS
import { useAtomComponentFamilyStateCallbackState } from '@/ui/utilities/state/jotai/hooks/useAtomComponentFamilyStateCallbackState';
import { useAtomComponentSelectorValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentSelectorValue';
import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';
-import { ViewOpenRecordInType } from '@/views/types/ViewOpenRecordInType';
+import { ViewOpenRecordIn } from '~/generated-metadata/graphql';
import { useStore } from 'jotai';
import { useCallback } from 'react';
import { AppPath } from 'twenty-shared/types';
@@ -88,7 +88,7 @@ export const useCreateNewIndexRecord = ({
});
if (
- recordIndexOpenRecordIn === ViewOpenRecordInType.SIDE_PANEL &&
+ recordIndexOpenRecordIn === ViewOpenRecordIn.SIDE_PANEL &&
canOpenObjectInSidePanel(objectMetadataItem.nameSingular)
) {
openRecordInSidePanel({
diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-body/components/RecordTableRecordGroupsBody.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-body/components/RecordTableRecordGroupsBody.tsx
index 07d52c3e657..34cf2fc2cd7 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-body/components/RecordTableRecordGroupsBody.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-body/components/RecordTableRecordGroupsBody.tsx
@@ -26,7 +26,7 @@ export const RecordTableRecordGroupsBody = () => {
const visibleRecordGroupIds = useAtomComponentFamilySelectorValue(
visibleRecordGroupIdsComponentFamilySelector,
- ViewType.Table,
+ ViewType.TABLE,
);
if (isRecordTableInitialLoading && allRecordIds.length === 0) {
diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/hooks/useOpenRecordTableCell.ts b/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/hooks/useOpenRecordTableCell.ts
index 3f5de32e1c7..383e379ecf2 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/hooks/useOpenRecordTableCell.ts
+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/hooks/useOpenRecordTableCell.ts
@@ -27,7 +27,7 @@ import { clickOutsideListenerIsActivatedComponentState } from '@/ui/utilities/po
import { useSetAtomComponentState } from '@/ui/utilities/state/jotai/hooks/useSetAtomComponentState';
import { useStore } from 'jotai';
import { useCallback } from 'react';
-import { ViewOpenRecordInType } from '@/views/types/ViewOpenRecordInType';
+import { ViewOpenRecordIn } from '~/generated-metadata/graphql';
export type OpenTableCellArgs = {
initialValue?: string;
@@ -110,7 +110,7 @@ export const useOpenRecordTableCell = (recordTableId: string) => {
const openRecordIn = store.get(recordIndexOpenRecordInState.atom);
- if (openRecordIn === ViewOpenRecordInType.SIDE_PANEL) {
+ if (openRecordIn === ViewOpenRecordIn.SIDE_PANEL) {
activateRecordTableRow(cellPosition.row);
unfocusRecordTableRow();
}
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/components/WidgetActionFieldSeeAll.tsx b/packages/twenty-front/src/modules/page-layout/widgets/components/WidgetActionFieldSeeAll.tsx
index 84a22540555..52637256573 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/components/WidgetActionFieldSeeAll.tsx
+++ b/packages/twenty-front/src/modules/page-layout/widgets/components/WidgetActionFieldSeeAll.tsx
@@ -10,7 +10,7 @@ import { useCurrentWidget } from '@/page-layout/widgets/hooks/useCurrentWidget';
import { useTargetRecord } from '@/ui/layout/contexts/useTargetRecord';
import { useIsMobile } from '@/ui/utilities/responsive/hooks/useIsMobile';
import { useAtomFamilySelectorValue } from '@/ui/utilities/state/jotai/hooks/useAtomFamilySelectorValue';
-import { coreIndexViewIdFromObjectMetadataItemFamilySelector } from '@/views/states/selectors/coreIndexViewIdFromObjectMetadataItemFamilySelector';
+import { indexViewIdFromObjectMetadataItemFamilySelector } from '@/views/states/selectors/indexViewIdFromObjectMetadataItemFamilySelector';
import { styled } from '@linaria/react';
import { t } from '@lingui/core/macro';
import { Link } from 'react-router-dom';
@@ -94,7 +94,7 @@ export const WidgetActionFieldSeeAll = () => {
);
const indexViewId = useAtomFamilySelectorValue(
- coreIndexViewIdFromObjectMetadataItemFamilySelector,
+ indexViewIdFromObjectMetadataItemFamilySelector,
{ objectMetadataItemId: relationObjectMetadataItem?.id ?? '' },
);
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/fields/components/__stories__/FieldsWidget.stories.tsx b/packages/twenty-front/src/modules/page-layout/widgets/fields/components/__stories__/FieldsWidget.stories.tsx
index ac797e5ce58..6317e3ae6f2 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/fields/components/__stories__/FieldsWidget.stories.tsx
+++ b/packages/twenty-front/src/modules/page-layout/widgets/fields/components/__stories__/FieldsWidget.stories.tsx
@@ -21,13 +21,13 @@ import { FieldsWidget } from '@/page-layout/widgets/fields/components/FieldsWidg
import { WidgetComponentInstanceContext } from '@/page-layout/widgets/states/contexts/WidgetComponentInstanceContext';
import { LayoutRenderingProvider } from '@/ui/layout/contexts/LayoutRenderingContext';
import { jotaiStore } from '@/ui/utilities/state/jotai/jotaiStore';
-import { type CoreViewWithRelations } from '@/views/types/CoreViewWithRelations';
+import { type ViewWithRelations } from '@/views/types/ViewWithRelations';
import { CoreObjectNameSingular } from 'twenty-shared/types';
import { ComponentDecorator } from 'twenty-ui/testing';
import {
- ViewOpenRecordIn as CoreViewOpenRecordIn,
- ViewType as CoreViewType,
- ViewVisibility as CoreViewVisibility,
+ ViewOpenRecordIn,
+ ViewType,
+ ViewVisibility,
PageLayoutTabLayoutMode,
PageLayoutType,
WidgetConfigurationType,
@@ -39,7 +39,7 @@ import { getJestMetadataAndApolloMocksWrapper } from '~/testing/jest/getJestMeta
import { generatedMockObjectMetadataItems } from '~/testing/utils/generatedMockObjectMetadataItems';
import { getMockFieldMetadataItemOrThrow } from '~/testing/utils/getMockFieldMetadataItemOrThrow';
import { getMockObjectMetadataItemOrThrow } from '~/testing/utils/getMockObjectMetadataItemOrThrow';
-import { setTestCoreViewsInMetadataStore } from '~/testing/utils/setTestCoreViewsInMetadataStore';
+import { setTestViewsInMetadataStore } from '~/testing/utils/setTestViewsInMetadataStore';
import { setTestObjectMetadataItemsInMetadataStore } from '~/testing/utils/setTestObjectMetadataItemsInMetadataStore';
const companyObjectMetadataItem = getMockObjectMetadataItemOrThrow(
@@ -183,26 +183,25 @@ const createFieldsWidget = (viewId: string | null): PageLayoutWidget => ({
deletedAt: null,
});
-const createCoreView = (
- overrides: Partial<CoreViewWithRelations> = {},
-): CoreViewWithRelations => ({
+const createView = (
+ overrides: Partial<ViewWithRelations> = {},
+): ViewWithRelations => ({
id: FIELDS_VIEW_ID,
name: 'Company Fields',
objectMetadataId: companyObjectMetadataItem.id,
- type: CoreViewType.FIELDS_WIDGET,
+ type: ViewType.FIELDS_WIDGET,
icon: 'IconList',
key: null,
shouldHideEmptyGroups: false,
position: 0,
isCompact: false,
- openRecordIn: CoreViewOpenRecordIn.SIDE_PANEL,
+ openRecordIn: ViewOpenRecordIn.SIDE_PANEL,
viewFields: [],
viewGroups: [],
viewFilters: [],
viewSorts: [],
- visibility: CoreViewVisibility.WORKSPACE,
+ visibility: ViewVisibility.WORKSPACE,
createdByUserWorkspaceId: null,
- __typename: 'CoreView',
...overrides,
});
@@ -284,7 +283,7 @@ export const WithViewFieldGroups: Story = {
),
];
- const coreView = createCoreView({
+ const view = createView({
viewFields: [...contactInfoFields, ...businessFields],
viewFieldGroups: [
createViewFieldGroup(
@@ -309,7 +308,7 @@ export const WithViewFieldGroups: Story = {
generatedMockObjectMetadataItems,
);
jotaiStore.set(isMinimalMetadataReadyState.atom, true);
- setTestCoreViewsInMetadataStore(jotaiStore, [coreView]);
+ setTestViewsInMetadataStore(jotaiStore, [view]);
jotaiStore.set(
pageLayoutPersistedComponentState.atomFamily({
instanceId: PAGE_LAYOUT_TEST_INSTANCE_ID,
@@ -375,7 +374,7 @@ export const WithViewFieldGroups: Story = {
export const WithInlineViewFields: Story = {
render: () => {
- const coreView = createCoreView({
+ const view = createView({
viewFields: [
createViewField('vf-name', nameField.id, 0),
createViewField('vf-employees', employeesField.id, 1),
@@ -395,7 +394,7 @@ export const WithInlineViewFields: Story = {
generatedMockObjectMetadataItems,
);
jotaiStore.set(isMinimalMetadataReadyState.atom, true);
- setTestCoreViewsInMetadataStore(jotaiStore, [coreView]);
+ setTestViewsInMetadataStore(jotaiStore, [view]);
jotaiStore.set(
pageLayoutPersistedComponentState.atomFamily({
instanceId: PAGE_LAYOUT_TEST_INSTANCE_ID,
@@ -461,7 +460,7 @@ export const WithInlineViewFields: Story = {
export const Empty: Story = {
render: () => {
- const coreView = createCoreView({
+ const view = createView({
viewFieldGroups: [
createViewFieldGroup('group-empty', 'Empty Group', 0, [], false),
],
@@ -479,7 +478,7 @@ export const Empty: Story = {
generatedMockObjectMetadataItems,
);
jotaiStore.set(isMinimalMetadataReadyState.atom, true);
- setTestCoreViewsInMetadataStore(jotaiStore, [coreView]);
+ setTestViewsInMetadataStore(jotaiStore, [view]);
jotaiStore.set(
pageLayoutPersistedComponentState.atomFamily({
instanceId: PAGE_LAYOUT_TEST_INSTANCE_ID,
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/components/GraphWidgetBarChartRenderer.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/components/GraphWidgetBarChartRenderer.tsx
index 8faff664083..441e4ee71c3 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/components/GraphWidgetBarChartRenderer.tsx
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/components/GraphWidgetBarChartRenderer.tsx
@@ -12,7 +12,7 @@ import { useUserFirstDayOfTheWeek } from '@/ui/input/components/internal/date/ho
import { useUserTimezone } from '@/ui/input/components/internal/date/hooks/useUserTimezone';
import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';
import { useAtomFamilySelectorValue } from '@/ui/utilities/state/jotai/hooks/useAtomFamilySelectorValue';
-import { coreIndexViewIdFromObjectMetadataItemFamilySelector } from '@/views/states/selectors/coreIndexViewIdFromObjectMetadataItemFamilySelector';
+import { indexViewIdFromObjectMetadataItemFamilySelector } from '@/views/states/selectors/indexViewIdFromObjectMetadataItemFamilySelector';
import { lazy, Suspense } from 'react';
import { useNavigate } from 'react-router-dom';
import { AppPath } from 'twenty-shared/types';
@@ -82,7 +82,7 @@ export const GraphWidgetBarChartRenderer = () => {
);
const indexViewId = useAtomFamilySelectorValue(
- coreIndexViewIdFromObjectMetadataItemFamilySelector,
+ indexViewIdFromObjectMetadataItemFamilySelector,
{ objectMetadataItemId: objectMetadataItem.id },
);
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/components/GraphWidgetLineChartRenderer.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/components/GraphWidgetLineChartRenderer.tsx
index 49b15c217da..f4a0e327ead 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/components/GraphWidgetLineChartRenderer.tsx
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/components/GraphWidgetLineChartRenderer.tsx
@@ -12,7 +12,7 @@ import { useUserFirstDayOfTheWeek } from '@/ui/input/components/internal/date/ho
import { useUserTimezone } from '@/ui/input/components/internal/date/hooks/useUserTimezone';
import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';
import { useAtomFamilySelectorValue } from '@/ui/utilities/state/jotai/hooks/useAtomFamilySelectorValue';
-import { coreIndexViewIdFromObjectMetadataItemFamilySelector } from '@/views/states/selectors/coreIndexViewIdFromObjectMetadataItemFamilySelector';
+import { indexViewIdFromObjectMetadataItemFamilySelector } from '@/views/states/selectors/indexViewIdFromObjectMetadataItemFamilySelector';
import { type LineSeries, type Point } from '@nivo/line';
import { lazy, Suspense } from 'react';
import { useNavigate } from 'react-router-dom';
@@ -90,7 +90,7 @@ export const GraphWidgetLineChartRenderer = () => {
);
const indexViewId = useAtomFamilySelectorValue(
- coreIndexViewIdFromObjectMetadataItemFamilySelector,
+ indexViewIdFromObjectMetadataItemFamilySelector,
{ objectMetadataItemId: objectMetadataItem.id },
);
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/components/GraphWidgetPieChartRenderer.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/components/GraphWidgetPieChartRenderer.tsx
index 0cc94d6af3b..26f04ce07c9 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/components/GraphWidgetPieChartRenderer.tsx
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/components/GraphWidgetPieChartRenderer.tsx
@@ -11,7 +11,7 @@ import { useUserFirstDayOfTheWeek } from '@/ui/input/components/internal/date/ho
import { useUserTimezone } from '@/ui/input/components/internal/date/hooks/useUserTimezone';
import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';
import { useAtomFamilySelectorValue } from '@/ui/utilities/state/jotai/hooks/useAtomFamilySelectorValue';
-import { coreIndexViewIdFromObjectMetadataItemFamilySelector } from '@/views/states/selectors/coreIndexViewIdFromObjectMetadataItemFamilySelector';
+import { indexViewIdFromObjectMetadataItemFamilySelector } from '@/views/states/selectors/indexViewIdFromObjectMetadataItemFamilySelector';
import { lazy, Suspense } from 'react';
import { useNavigate } from 'react-router-dom';
import { AppPath } from 'twenty-shared/types';
@@ -53,7 +53,7 @@ export const GraphWidgetPieChartRenderer = () => {
isPageLayoutInEditModeComponentState,
);
const indexViewId = useAtomFamilySelectorValue(
- coreIndexViewIdFromObjectMetadataItemFamilySelector,
+ indexViewIdFromObjectMetadataItemFamilySelector,
{ objectMetadataItemId: objectMetadataItem.id },
);
diff --git a/packages/twenty-front/src/modules/side-panel/components/SidePanelObjectViewRecordInfo.tsx b/packages/twenty-front/src/modules/side-panel/components/SidePanelObjectViewRecordInfo.tsx
index 775d099dae2..1557b855a55 100644
--- a/packages/twenty-front/src/modules/side-panel/components/SidePanelObjectViewRecordInfo.tsx
+++ b/packages/twenty-front/src/modules/side-panel/components/SidePanelObjectViewRecordInfo.tsx
@@ -37,7 +37,7 @@ export const SidePanelObjectViewRecordInfo = () => {
const label =
processedItem.itemType === NavigationMenuItemType.RECORD
? selectedItemObjectMetadata?.labelSingular
- : processedItem.viewKey === ViewKey.Index
+ : processedItem.viewKey === ViewKey.INDEX
? t`Object`
: t`View`;
diff --git a/packages/twenty-front/src/modules/side-panel/pages/navigation-menu-item/components/SidePanelNavigationMenuItemEditPage.tsx b/packages/twenty-front/src/modules/side-panel/pages/navigation-menu-item/components/SidePanelNavigationMenuItemEditPage.tsx
index d177296bf1a..18bb56389a4 100644
--- a/packages/twenty-front/src/modules/side-panel/pages/navigation-menu-item/components/SidePanelNavigationMenuItemEditPage.tsx
+++ b/packages/twenty-front/src/modules/side-panel/pages/navigation-menu-item/components/SidePanelNavigationMenuItemEditPage.tsx
@@ -112,7 +112,7 @@ export const SidePanelNavigationMenuItemEditPage = () => {
showColorOption={
selectedItem &&
'viewKey' in selectedItem &&
- selectedItem.viewKey === ViewKey.Index
+ selectedItem.viewKey === ViewKey.INDEX
}
/>
);
diff --git a/packages/twenty-front/src/modules/side-panel/pages/navigation-menu-item/components/SidePanelNewSidebarItemObjectSubPage.tsx b/packages/twenty-front/src/modules/side-panel/pages/navigation-menu-item/components/SidePanelNewSidebarItemObjectSubPage.tsx
index 5976d2838f8..c54a2feb42c 100644
--- a/packages/twenty-front/src/modules/side-panel/pages/navigation-menu-item/components/SidePanelNewSidebarItemObjectSubPage.tsx
+++ b/packages/twenty-front/src/modules/side-panel/pages/navigation-menu-item/components/SidePanelNewSidebarItemObjectSubPage.tsx
@@ -44,7 +44,7 @@ export const SidePanelNewSidebarItemObjectSubPage = () => {
const objectMetadataIdsWithDisplayableViews = new Set(
views
- .filter((view) => view.key !== ViewKey.Index)
+ .filter((view) => view.key !== ViewKey.INDEX)
.map((view) => view.objectMetadataId),
);
diff --git a/packages/twenty-front/src/modules/side-panel/pages/navigation-menu-item/components/SidePanelNewSidebarItemObjectSystemPickerSubPage.tsx b/packages/twenty-front/src/modules/side-panel/pages/navigation-menu-item/components/SidePanelNewSidebarItemObjectSystemPickerSubPage.tsx
index ee6d0f79423..415db6122a5 100644
--- a/packages/twenty-front/src/modules/side-panel/pages/navigation-menu-item/components/SidePanelNewSidebarItemObjectSystemPickerSubPage.tsx
+++ b/packages/twenty-front/src/modules/side-panel/pages/navigation-menu-item/components/SidePanelNewSidebarItemObjectSystemPickerSubPage.tsx
@@ -43,7 +43,7 @@ export const SidePanelNewSidebarItemObjectSystemPickerSubPage = () => {
const objectMetadataIdsWithDisplayableViews = new Set(
views
- .filter((view) => view.key !== ViewKey.Index)
+ .filter((view) => view.key !== ViewKey.INDEX)
.map((view) => view.objectMetadataId),
);
diff --git a/packages/twenty-front/src/modules/side-panel/pages/navigation-menu-item/components/SidePanelNewSidebarItemViewObjectPickerSubPage.tsx b/packages/twenty-front/src/modules/side-panel/pages/navigation-menu-item/components/SidePanelNewSidebarItemViewObjectPickerSubPage.tsx
index 5ad5356db71..1598b836a8d 100644
--- a/packages/twenty-front/src/modules/side-panel/pages/navigation-menu-item/components/SidePanelNewSidebarItemViewObjectPickerSubPage.tsx
+++ b/packages/twenty-front/src/modules/side-panel/pages/navigation-menu-item/components/SidePanelNewSidebarItemViewObjectPickerSubPage.tsx
@@ -31,7 +31,7 @@ export const SidePanelNewSidebarItemViewObjectPickerSubPage = () => {
views
.filter(
(view) =>
- view.key !== ViewKey.Index && view.type !== ViewType.FieldsWidget,
+ view.key !== ViewKey.INDEX && view.type !== ViewType.FIELDS_WIDGET,
)
.map((view) => view.objectMetadataId),
);
diff --git a/packages/twenty-front/src/modules/side-panel/pages/navigation-menu-item/components/SidePanelNewSidebarItemViewPickerSubView.tsx b/packages/twenty-front/src/modules/side-panel/pages/navigation-menu-item/components/SidePanelNewSidebarItemViewPickerSubView.tsx
index 90055d636a5..89ed762e3de 100644
--- a/packages/twenty-front/src/modules/side-panel/pages/navigation-menu-item/components/SidePanelNewSidebarItemViewPickerSubView.tsx
+++ b/packages/twenty-front/src/modules/side-panel/pages/navigation-menu-item/components/SidePanelNewSidebarItemViewPickerSubView.tsx
@@ -52,8 +52,8 @@ export const SidePanelNewSidebarItemViewPickerSubView = ({
.filter(
(view) =>
view.objectMetadataId === selectedObjectMetadataIdForView &&
- view.key !== ViewKey.Index &&
- view.type !== ViewType.FieldsWidget &&
+ view.key !== ViewKey.INDEX &&
+ view.type !== ViewType.FIELDS_WIDGET &&
view.visibility === ViewVisibility.WORKSPACE,
)
.sort((a, b) => a.position - b.position);
diff --git a/packages/twenty-front/src/modules/side-panel/pages/navigation-menu-item/components/SidePanelNewSidebarItemViewSystemPickerSubPage.tsx b/packages/twenty-front/src/modules/side-panel/pages/navigation-menu-item/components/SidePanelNewSidebarItemViewSystemPickerSubPage.tsx
index e9907522bba..2037d0d9212 100644
--- a/packages/twenty-front/src/modules/side-panel/pages/navigation-menu-item/components/SidePanelNewSidebarItemViewSystemPickerSubPage.tsx
+++ b/packages/twenty-front/src/modules/side-panel/pages/navigation-menu-item/components/SidePanelNewSidebarItemViewSystemPickerSubPage.tsx
@@ -31,7 +31,7 @@ export const SidePanelNewSidebarItemViewSystemPickerSubPage = () => {
views
.filter(
(view) =>
- view.key !== ViewKey.Index && view.type !== ViewType.FieldsWidget,
+ view.key !== ViewKey.INDEX && view.type !== ViewType.FIELDS_WIDGET,
)
.map((view) => view.objectMetadataId),
);
diff --git a/packages/twenty-front/src/modules/side-panel/pages/navigation-menu-item/components/SidePanelObjectMenuItem.tsx b/packages/twenty-front/src/modules/side-panel/pages/navigation-menu-item/components/SidePanelObjectMenuItem.tsx
index 6d7a7fbcf38..31bf768bd64 100644
--- a/packages/twenty-front/src/modules/side-panel/pages/navigation-menu-item/components/SidePanelObjectMenuItem.tsx
+++ b/packages/twenty-front/src/modules/side-panel/pages/navigation-menu-item/components/SidePanelObjectMenuItem.tsx
@@ -12,7 +12,7 @@ import { type ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataI
import { SidePanelItemWithAddToNavigationDrag } from '@/side-panel/components/SidePanelItemWithAddToNavigationDrag';
import { SelectableListItem } from '@/ui/layout/selectable-list/components/SelectableListItem';
import { useAtomFamilySelectorValue } from '@/ui/utilities/state/jotai/hooks/useAtomFamilySelectorValue';
-import { coreIndexViewIdFromObjectMetadataItemFamilySelector } from '@/views/states/selectors/coreIndexViewIdFromObjectMetadataItemFamilySelector';
+import { indexViewIdFromObjectMetadataItemFamilySelector } from '@/views/states/selectors/indexViewIdFromObjectMetadataItemFamilySelector';
type SidePanelObjectMenuItemProps = {
objectMetadataItem: ObjectMetadataItem;
@@ -41,7 +41,7 @@ export const SidePanelObjectMenuItem = ({
objectMetadataItem.id,
);
const defaultViewId = useAtomFamilySelectorValue(
- coreIndexViewIdFromObjectMetadataItemFamilySelector,
+ indexViewIdFromObjectMetadataItemFamilySelector,
{ objectMetadataItemId: objectMetadataItem.id },
);
const Icon = getIcon(objectMetadataItem.icon);
diff --git a/packages/twenty-front/src/modules/sign-in-background-mock/constants/SignInBackgroundMockViewFields.ts b/packages/twenty-front/src/modules/sign-in-background-mock/constants/SignInBackgroundMockViewFields.ts
index 996159bce65..423f6eab0a2 100644
--- a/packages/twenty-front/src/modules/sign-in-background-mock/constants/SignInBackgroundMockViewFields.ts
+++ b/packages/twenty-front/src/modules/sign-in-background-mock/constants/SignInBackgroundMockViewFields.ts
@@ -2,7 +2,6 @@ import { type ViewField } from '@/views/types/ViewField';
export const SIGN_IN_BACKGROUND_MOCK_VIEW_FIELDS = [
{
- __typename: 'ViewField',
id: '5168be09-f200-40f5-9e04-29d607de06e5',
fieldMetadataId: '20202020-7fbd-41ad-b64d-25a15ff62f04',
size: 150,
@@ -13,7 +12,6 @@ export const SIGN_IN_BACKGROUND_MOCK_VIEW_FIELDS = [
updatedAt: '2023-11-23T15:38:03.706Z',
},
{
- __typename: 'ViewField',
id: '5ece850b-76fd-4135-9b99-06d49cad14ae',
fieldMetadataId: '20202020-a61d-4b78-b998-3fd88b4f73a1',
size: 170,
@@ -24,7 +22,6 @@ export const SIGN_IN_BACKGROUND_MOCK_VIEW_FIELDS = [
updatedAt: '2023-11-23T15:38:03.706Z',
},
{
- __typename: 'ViewField',
id: '604dbdbb-df01-4e47-921b-f9963109f912',
fieldMetadataId: '20202020-0739-495d-8e70-c0807f6b2268',
size: 150,
@@ -35,7 +32,6 @@ export const SIGN_IN_BACKGROUND_MOCK_VIEW_FIELDS = [
updatedAt: '2023-11-23T15:38:03.706Z',
},
{
- __typename: 'ViewField',
id: '7cbc36c8-37c6-4561-8c46-ddb316ddd121',
fieldMetadataId: '20202020-4dc2-47c9-bb15-6e6f19ba9e46',
size: 150,
@@ -46,7 +42,6 @@ export const SIGN_IN_BACKGROUND_MOCK_VIEW_FIELDS = [
updatedAt: '2023-11-23T15:38:03.706Z',
},
{
- __typename: 'ViewField',
id: 'a7d19be3-1ce9-479b-9453-2930a381e07c',
fieldMetadataId: '20202020-5e4e-4007-a630-8a2617914889',
size: 100,
@@ -57,7 +52,6 @@ export const SIGN_IN_BACKGROUND_MOCK_VIEW_FIELDS = [
updatedAt: '2023-11-23T15:38:03.706Z',
},
{
- __typename: 'ViewField',
id: 'cafacdc8-cbfc-4545-8242-94787f144ace',
fieldMetadataId: 'REPLACE_ME',
size: 180,
@@ -68,7 +62,6 @@ export const SIGN_IN_BACKGROUND_MOCK_VIEW_FIELDS = [
updatedAt: '2023-11-23T15:38:03.706Z',
},
{
- __typename: 'ViewField',
id: 'f0cc50c9-b9b6-405b-a1c0-23f7698ea731',
fieldMetadataId: '20202020-ad10-4117-a039-3f04b7a5f939',
size: 170,
@@ -79,7 +72,6 @@ export const SIGN_IN_BACKGROUND_MOCK_VIEW_FIELDS = [
updatedAt: '2023-11-23T15:38:03.706Z',
},
] as (ViewField & {
- __typename: string;
createdAt: string;
viewId: string;
updatedAt: string;
diff --git a/packages/twenty-front/src/modules/views/components/ViewBarAnyFieldFilterEffect.tsx b/packages/twenty-front/src/modules/views/components/ViewBarAnyFieldFilterEffect.tsx
index 3a11249aa87..da84de27798 100644
--- a/packages/twenty-front/src/modules/views/components/ViewBarAnyFieldFilterEffect.tsx
+++ b/packages/twenty-front/src/modules/views/components/ViewBarAnyFieldFilterEffect.tsx
@@ -6,7 +6,7 @@ import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/use
import { useSetAtomComponentState } from '@/ui/utilities/state/jotai/hooks/useSetAtomComponentState';
import { useAtomFamilySelectorValue } from '@/ui/utilities/state/jotai/hooks/useAtomFamilySelectorValue';
import { hasInitializedAnyFieldFilterComponentFamilyState } from '@/views/states/hasInitializedAnyFieldFilterComponentFamilyState';
-import { coreViewFromViewIdFamilySelector } from '@/views/states/selectors/coreViewFromViewIdFamilySelector';
+import { viewFromViewIdFamilySelector } from '@/views/states/selectors/viewFromViewIdFamilySelector';
import { useEffect } from 'react';
import { isDefined } from 'twenty-shared/utils';
@@ -17,12 +17,9 @@ export const ViewBarAnyFieldFilterEffect = () => {
const { objectMetadataItem, recordIndexId } = useRecordIndexContextOrThrow();
- const currentView = useAtomFamilySelectorValue(
- coreViewFromViewIdFamilySelector,
- {
- viewId: contextStoreCurrentViewId ?? '',
- },
- );
+ const currentView = useAtomFamilySelectorValue(viewFromViewIdFamilySelector, {
+ viewId: contextStoreCurrentViewId ?? '',
+ });
const [hasInitializedAnyFieldFilter, setHasInitializedAnyFieldFilter] =
useAtomComponentFamilyState(
diff --git a/packages/twenty-front/src/modules/views/components/ViewBarRecordFieldEffect.tsx b/packages/twenty-front/src/modules/views/components/ViewBarRecordFieldEffect.tsx
index fca05af700e..2e9be50236a 100644
--- a/packages/twenty-front/src/modules/views/components/ViewBarRecordFieldEffect.tsx
+++ b/packages/twenty-front/src/modules/views/components/ViewBarRecordFieldEffect.tsx
@@ -6,7 +6,7 @@ import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/use
import { useSetAtomComponentState } from '@/ui/utilities/state/jotai/hooks/useSetAtomComponentState';
import { useAtomFamilySelectorValue } from '@/ui/utilities/state/jotai/hooks/useAtomFamilySelectorValue';
import { hasInitializedCurrentRecordFieldsComponentFamilyState } from '@/views/states/hasInitializedCurrentRecordFieldsComponentFamilyState';
-import { coreViewFromViewIdFamilySelector } from '@/views/states/selectors/coreViewFromViewIdFamilySelector';
+import { viewFromViewIdFamilySelector } from '@/views/states/selectors/viewFromViewIdFamilySelector';
import { mapViewFieldToRecordField } from '@/views/utils/mapViewFieldToRecordField';
import { useEffect } from 'react';
import { isDefined } from 'twenty-shared/utils';
@@ -18,12 +18,9 @@ export const ViewBarRecordFieldEffect = () => {
const { objectMetadataItem } = useRecordIndexContextOrThrow();
- const currentView = useAtomFamilySelectorValue(
- coreViewFromViewIdFamilySelector,
- {
- viewId: contextStoreCurrentViewId ?? '',
- },
- );
+ const currentView = useAtomFamilySelectorValue(viewFromViewIdFamilySelector, {
+ viewId: contextStoreCurrentViewId ?? '',
+ });
const [
hasInitializedCurrentRecordFields,
diff --git a/packages/twenty-front/src/modules/views/components/ViewBarRecordFilterEffect.tsx b/packages/twenty-front/src/modules/views/components/ViewBarRecordFilterEffect.tsx
index 28fcdd518d7..296416fd7e1 100644
--- a/packages/twenty-front/src/modules/views/components/ViewBarRecordFilterEffect.tsx
+++ b/packages/twenty-front/src/modules/views/components/ViewBarRecordFilterEffect.tsx
@@ -7,7 +7,7 @@ import { useSetAtomComponentState } from '@/ui/utilities/state/jotai/hooks/useSe
import { useAtomFamilySelectorValue } from '@/ui/utilities/state/jotai/hooks/useAtomFamilySelectorValue';
import { useMapViewFiltersToFilters } from '@/views/hooks/useMapViewFiltersToFilters';
import { hasInitializedCurrentRecordFiltersComponentFamilyState } from '@/views/states/hasInitializedCurrentRecordFiltersComponentFamilyState';
-import { coreViewFromViewIdFamilySelector } from '@/views/states/selectors/coreViewFromViewIdFamilySelector';
+import { viewFromViewIdFamilySelector } from '@/views/states/selectors/viewFromViewIdFamilySelector';
import { useEffect } from 'react';
import { isDefined } from 'twenty-shared/utils';
@@ -18,12 +18,9 @@ export const ViewBarRecordFilterEffect = () => {
const { objectMetadataItem, recordIndexId } = useRecordIndexContextOrThrow();
- const currentView = useAtomFamilySelectorValue(
- coreViewFromViewIdFamilySelector,
- {
- viewId: contextStoreCurrentViewId ?? '',
- },
- );
+ const currentView = useAtomFamilySelectorValue(viewFromViewIdFamilySelector, {
+ viewId: contextStoreCurrentViewId ?? '',
+ });
const [
hasInitializedCurrentRecordFilters,
diff --git a/packages/twenty-front/src/modules/views/components/ViewBarRecordFilterGroupEffect.tsx b/packages/twenty-front/src/modules/views/components/ViewBarRecordFilterGroupEffect.tsx
index 69d9d7ca35a..0ce8508f75e 100644
--- a/packages/twenty-front/src/modules/views/components/ViewBarRecordFilterGroupEffect.tsx
+++ b/packages/twenty-front/src/modules/views/components/ViewBarRecordFilterGroupEffect.tsx
@@ -6,7 +6,7 @@ import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/use
import { useSetAtomComponentState } from '@/ui/utilities/state/jotai/hooks/useSetAtomComponentState';
import { useAtomFamilySelectorValue } from '@/ui/utilities/state/jotai/hooks/useAtomFamilySelectorValue';
import { hasInitializedCurrentRecordFilterGroupsComponentFamilyState } from '@/views/states/hasInitializedCurrentRecordFilterGroupsComponentFamilyState';
-import { coreViewFromViewIdFamilySelector } from '@/views/states/selectors/coreViewFromViewIdFamilySelector';
+import { viewFromViewIdFamilySelector } from '@/views/states/selectors/viewFromViewIdFamilySelector';
import { mapViewFilterGroupsToRecordFilterGroups } from '@/views/utils/mapViewFilterGroupsToRecordFilterGroups';
import { useEffect } from 'react';
import { isDefined } from 'twenty-shared/utils';
@@ -18,12 +18,9 @@ export const ViewBarRecordFilterGroupEffect = () => {
const { objectMetadataItem, recordIndexId } = useRecordIndexContextOrThrow();
- const currentView = useAtomFamilySelectorValue(
- coreViewFromViewIdFamilySelector,
- {
- viewId: contextStoreCurrentViewId ?? '',
- },
- );
+ const currentView = useAtomFamilySelectorValue(viewFromViewIdFamilySelector, {
+ viewId: contextStoreCurrentViewId ?? '',
+ });
const [
hasInitializedCurrentRecordFilterGroups,
diff --git a/packages/twenty-front/src/modules/views/components/ViewBarRecordSortEffect.tsx b/packages/twenty-front/src/modules/views/components/ViewBarRecordSortEffect.tsx
index b83a057fc5c..e4b2ad9d49e 100644
--- a/packages/twenty-front/src/modules/views/components/ViewBarRecordSortEffect.tsx
+++ b/packages/twenty-front/src/modules/views/components/ViewBarRecordSortEffect.tsx
@@ -6,7 +6,7 @@ import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/use
import { useSetAtomComponentState } from '@/ui/utilities/state/jotai/hooks/useSetAtomComponentState';
import { useAtomFamilySelectorValue } from '@/ui/utilities/state/jotai/hooks/useAtomFamilySelectorValue';
import { hasInitializedCurrentRecordSortsComponentFamilyState } from '@/views/states/hasInitializedCurrentRecordSortsComponentFamilyState';
-import { coreViewFromViewIdFamilySelector } from '@/views/states/selectors/coreViewFromViewIdFamilySelector';
+import { viewFromViewIdFamilySelector } from '@/views/states/selectors/viewFromViewIdFamilySelector';
import { useEffect } from 'react';
import { isDefined } from 'twenty-shared/utils';
@@ -17,12 +17,9 @@ export const ViewBarRecordSortEffect = () => {
const { objectMetadataItem, recordIndexId } = useRecordIndexContextOrThrow();
- const currentView = useAtomFamilySelectorValue(
- coreViewFromViewIdFamilySelector,
- {
- viewId: contextStoreCurrentViewId ?? '',
- },
- );
+ const currentView = useAtomFamilySelectorValue(viewFromViewIdFamilySelector, {
+ viewId: contextStoreCurrentViewId ?? '',
+ });
const [
hasInitializedCurrentRecordSorts,
diff --git a/packages/twenty-front/src/modules/views/components/ViewFieldsHiddenDropdownSection.tsx b/packages/twenty-front/src/modules/views/components/ViewFieldsHiddenDropdownSection.tsx
index b06c15502e0..5cba36c633b 100644
--- a/packages/twenty-front/src/modules/views/components/ViewFieldsHiddenDropdownSection.tsx
+++ b/packages/twenty-front/src/modules/views/components/ViewFieldsHiddenDropdownSection.tsx
@@ -25,7 +25,7 @@ export const ViewFieldsHiddenDropdownSection = () => {
});
const handleChangeFieldVisibility =
- viewType === ViewType.Kanban
+ viewType === ViewType.KANBAN
? handleBoardFieldVisibilityChange
: changeRecordFieldVisibility;
diff --git a/packages/twenty-front/src/modules/views/components/ViewFieldsVisibleDropdownSection.tsx b/packages/twenty-front/src/modules/views/components/ViewFieldsVisibleDropdownSection.tsx
index 3f7bd65c619..cc2dd88a64a 100644
--- a/packages/twenty-front/src/modules/views/components/ViewFieldsVisibleDropdownSection.tsx
+++ b/packages/twenty-front/src/modules/views/components/ViewFieldsVisibleDropdownSection.tsx
@@ -39,7 +39,7 @@ export const ViewFieldsVisibleDropdownSection = () => {
useGetFieldMetadataItemByIdOrThrow();
const handleReorderFields =
- viewType === ViewType.Kanban
+ viewType === ViewType.KANBAN
? handleReorderBoardFields
: processOptionDropdownDragEnd;
@@ -47,7 +47,7 @@ export const ViewFieldsVisibleDropdownSection = () => {
useChangeRecordFieldVisibility(recordIndexId);
const handleChangeFieldVisibility =
- viewType === ViewType.Kanban
+ viewType === ViewType.KANBAN
? handleBoardFieldVisibilityChange
: changeRecordFieldVisibility;
diff --git a/packages/twenty-front/src/modules/views/components/__stories__/ViewBarFilterDropdown.stories.tsx b/packages/twenty-front/src/modules/views/components/__stories__/ViewBarFilterDropdown.stories.tsx
index b45173ac6b9..00b2b9d790f 100644
--- a/packages/twenty-front/src/modules/views/components/__stories__/ViewBarFilterDropdown.stories.tsx
+++ b/packages/twenty-front/src/modules/views/components/__stories__/ViewBarFilterDropdown.stories.tsx
@@ -24,9 +24,9 @@ import { ContextStoreDecorator } from '~/testing/decorators/ContextStoreDecorato
import { IconsProviderDecorator } from '~/testing/decorators/IconsProviderDecorator';
import { ObjectMetadataItemsDecorator } from '~/testing/decorators/ObjectMetadataItemsDecorator';
import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator';
-import { mockedCoreViews } from '~/testing/mock-data/generated/metadata/views/mock-views-data';
+import { mockedViews } from '~/testing/mock-data/generated/metadata/views/mock-views-data';
import { generatedMockObjectMetadataItems } from '~/testing/utils/generatedMockObjectMetadataItems';
-import { setTestCoreViewsInMetadataStore } from '~/testing/utils/setTestCoreViewsInMetadataStore';
+import { setTestViewsInMetadataStore } from '~/testing/utils/setTestViewsInMetadataStore';
const meta: Meta<typeof ViewBarFilterDropdown> = {
title: 'Modules/Views/ViewBarFilterDropdown',
@@ -43,9 +43,7 @@ const meta: Meta<typeof ViewBarFilterDropdown> = {
instanceId,
);
- const mockCoreView = mockedCoreViews.find(
- (v) => v.name === 'All Companies',
- )!;
+ const mockView = mockedViews.find((v) => v.name === 'All Companies')!;
const setContextStoreCurrentViewId = useSetAtomComponentState(
contextStoreCurrentViewIdComponentState,
@@ -70,14 +68,14 @@ const meta: Meta<typeof ViewBarFilterDropdown> = {
const [isLoaded, setIsLoaded] = useState(false);
useEffect(() => {
- setTestCoreViewsInMetadataStore(jotaiStore, [mockCoreView]);
- setContextStoreCurrentViewId(mockCoreView.id);
+ setTestViewsInMetadataStore(jotaiStore, [mockView]);
+ setContextStoreCurrentViewId(mockView.id);
setCurrentRecordFields(columns);
setIsLoaded(true);
}, [
setContextStoreCurrentViewId,
setCurrentRecordFields,
- mockCoreView,
+ mockView,
columns,
]);
diff --git a/packages/twenty-front/src/modules/views/graphql/fragments/viewFieldFragment.ts b/packages/twenty-front/src/modules/views/graphql/fragments/viewFieldFragment.ts
index 73a8a9adb9a..aac8c768bf5 100644
--- a/packages/twenty-front/src/modules/views/graphql/fragments/viewFieldFragment.ts
+++ b/packages/twenty-front/src/modules/views/graphql/fragments/viewFieldFragment.ts
@@ -1,7 +1,7 @@
import { gql } from '@apollo/client';
export const VIEW_FIELD_FRAGMENT = gql`
- fragment ViewFieldFragment on CoreViewField {
+ fragment ViewFieldFragment on ViewField {
id
fieldMetadataId
viewId
diff --git a/packages/twenty-front/src/modules/views/graphql/fragments/viewFieldGroupFragment.ts b/packages/twenty-front/src/modules/views/graphql/fragments/viewFieldGroupFragment.ts
index 867eb4e2c78..ea537762dd8 100644
--- a/packages/twenty-front/src/modules/views/graphql/fragments/viewFieldGroupFragment.ts
+++ b/packages/twenty-front/src/modules/views/graphql/fragments/viewFieldGroupFragment.ts
@@ -3,7 +3,7 @@ import { gql } from '@apollo/client';
export const VIEW_FIELD_GROUP_FRAGMENT = gql`
${VIEW_FIELD_FRAGMENT}
- fragment ViewFieldGroupFragment on CoreViewFieldGroup {
+ fragment ViewFieldGroupFragment on ViewFieldGroup {
id
name
position
diff --git a/packages/twenty-front/src/modules/views/graphql/fragments/viewFilterFragment.ts b/packages/twenty-front/src/modules/views/graphql/fragments/viewFilterFragment.ts
index 9b15085974a..8f67bf7b30d 100644
--- a/packages/twenty-front/src/modules/views/graphql/fragments/viewFilterFragment.ts
+++ b/packages/twenty-front/src/modules/views/graphql/fragments/viewFilterFragment.ts
@@ -1,7 +1,7 @@
import { gql } from '@apollo/client';
export const VIEW_FILTER_FRAGMENT = gql`
- fragment ViewFilterFragment on CoreViewFilter {
+ fragment ViewFilterFragment on ViewFilter {
id
fieldMetadataId
operand
diff --git a/packages/twenty-front/src/modules/views/graphql/fragments/viewFilterGroupFragment.ts b/packages/twenty-front/src/modules/views/graphql/fragments/viewFilterGroupFragment.ts
index 7784c391d4e..bb09ba87631 100644
--- a/packages/twenty-front/src/modules/views/graphql/fragments/viewFilterGroupFragment.ts
+++ b/packages/twenty-front/src/modules/views/graphql/fragments/viewFilterGroupFragment.ts
@@ -1,7 +1,7 @@
import { gql } from '@apollo/client';
export const VIEW_FILTER_GROUP_FRAGMENT = gql`
- fragment ViewFilterGroupFragment on CoreViewFilterGroup {
+ fragment ViewFilterGroupFragment on ViewFilterGroup {
id
parentViewFilterGroupId
logicalOperator
diff --git a/packages/twenty-front/src/modules/views/graphql/fragments/viewFragment.ts b/packages/twenty-front/src/modules/views/graphql/fragments/viewFragment.ts
index 44c631f5ab9..c739faf78bd 100644
--- a/packages/twenty-front/src/modules/views/graphql/fragments/viewFragment.ts
+++ b/packages/twenty-front/src/modules/views/graphql/fragments/viewFragment.ts
@@ -14,7 +14,7 @@ export const VIEW_FRAGMENT = gql`
${VIEW_SORT_FRAGMENT}
${VIEW_GROUP_FRAGMENT}
- fragment ViewFragment on CoreView {
+ fragment ViewFragment on View {
id
name
objectMetadataId
diff --git a/packages/twenty-front/src/modules/views/graphql/fragments/viewGroupFragment.ts b/packages/twenty-front/src/modules/views/graphql/fragments/viewGroupFragment.ts
index c0dfcb3c0d9..8fde9a144be 100644
--- a/packages/twenty-front/src/modules/views/graphql/fragments/viewGroupFragment.ts
+++ b/packages/twenty-front/src/modules/views/graphql/fragments/viewGroupFragment.ts
@@ -1,7 +1,7 @@
import { gql } from '@apollo/client';
export const VIEW_GROUP_FRAGMENT = gql`
- fragment ViewGroupFragment on CoreViewGroup {
+ fragment ViewGroupFragment on ViewGroup {
id
isVisible
fieldValue
diff --git a/packages/twenty-front/src/modules/views/graphql/fragments/viewSortFragment.ts b/packages/twenty-front/src/modules/views/graphql/fragments/viewSortFragment.ts
index 414bdca58f1..c55263106d4 100644
--- a/packages/twenty-front/src/modules/views/graphql/fragments/viewSortFragment.ts
+++ b/packages/twenty-front/src/modules/views/graphql/fragments/viewSortFragment.ts
@@ -1,7 +1,7 @@
import { gql } from '@apollo/client';
export const VIEW_SORT_FRAGMENT = gql`
- fragment ViewSortFragment on CoreViewSort {
+ fragment ViewSortFragment on ViewSort {
id
fieldMetadataId
direction
diff --git a/packages/twenty-front/src/modules/views/graphql/mutations/createManyCoreViewFields.ts b/packages/twenty-front/src/modules/views/graphql/mutations/createManyCoreViewFields.ts
deleted file mode 100644
index 67919aeb2ad..00000000000
--- a/packages/twenty-front/src/modules/views/graphql/mutations/createManyCoreViewFields.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import { VIEW_FIELD_FRAGMENT } from '@/views/graphql/fragments/viewFieldFragment';
-import { gql } from '@apollo/client';
-
-export const CREATE_MANY_CORE_VIEW_FIELDS = gql`
- ${VIEW_FIELD_FRAGMENT}
- mutation CreateManyCoreViewFields($inputs: [CreateViewFieldInput!]!) {
- createManyCoreViewFields(inputs: $inputs) {
- ...ViewFieldFragment
- }
- }
-`;
diff --git a/packages/twenty-front/src/modules/views/graphql/mutations/createManyCoreViewGroups.ts b/packages/twenty-front/src/modules/views/graphql/mutations/createManyCoreViewGroups.ts
deleted file mode 100644
index 5c251167654..00000000000
--- a/packages/twenty-front/src/modules/views/graphql/mutations/createManyCoreViewGroups.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import { VIEW_GROUP_FRAGMENT } from '@/views/graphql/fragments/viewGroupFragment';
-import { gql } from '@apollo/client';
-
-export const CREATE_MANY_CORE_VIEW_GROUPS = gql`
- ${VIEW_GROUP_FRAGMENT}
- mutation CreateManyCoreViewGroups($inputs: [CreateViewGroupInput!]!) {
- createManyCoreViewGroups(inputs: $inputs) {
- ...ViewGroupFragment
- }
- }
-`;
diff --git a/packages/twenty-front/src/modules/views/graphql/mutations/createManyCoreViewFieldGroups.ts b/packages/twenty-front/src/modules/views/graphql/mutations/createManyViewFieldGroups.ts
similarity index 51%
rename from packages/twenty-front/src/modules/views/graphql/mutations/createManyCoreViewFieldGroups.ts
rename to packages/twenty-front/src/modules/views/graphql/mutations/createManyViewFieldGroups.ts
index c0df2c2b315..22823bd6372 100644
--- a/packages/twenty-front/src/modules/views/graphql/mutations/createManyCoreViewFieldGroups.ts
+++ b/packages/twenty-front/src/modules/views/graphql/mutations/createManyViewFieldGroups.ts
@@ -1,12 +1,10 @@
import { VIEW_FIELD_GROUP_FRAGMENT } from '@/views/graphql/fragments/viewFieldGroupFragment';
import { gql } from '@apollo/client';
-export const CREATE_MANY_CORE_VIEW_FIELD_GROUPS = gql`
+export const CREATE_MANY_VIEW_FIELD_GROUPS = gql`
${VIEW_FIELD_GROUP_FRAGMENT}
- mutation CreateManyCoreViewFieldGroups(
- $inputs: [CreateViewFieldGroupInput!]!
- ) {
- createManyCoreViewFieldGroups(inputs: $inputs) {
+ mutation CreateManyViewFieldGroups($inputs: [CreateViewFieldGroupInput!]!) {
+ createManyViewFieldGroups(inputs: $inputs) {
...ViewFieldGroupFragment
}
}
diff --git a/packages/twenty-front/src/modules/views/graphql/mutations/createCoreViewField.ts b/packages/twenty-front/src/modules/views/graphql/mutations/createManyViewFields.ts
similarity index 54%
rename from packages/twenty-front/src/modules/views/graphql/mutations/createCoreViewField.ts
rename to packages/twenty-front/src/modules/views/graphql/mutations/createManyViewFields.ts
index 6845d2af982..5d2b595f25a 100644
--- a/packages/twenty-front/src/modules/views/graphql/mutations/createCoreViewField.ts
+++ b/packages/twenty-front/src/modules/views/graphql/mutations/createManyViewFields.ts
@@ -1,10 +1,10 @@
import { VIEW_FIELD_FRAGMENT } from '@/views/graphql/fragments/viewFieldFragment';
import { gql } from '@apollo/client';
-export const CREATE_CORE_VIEW_FIELD = gql`
+export const CREATE_MANY_VIEW_FIELDS = gql`
${VIEW_FIELD_FRAGMENT}
- mutation CreateCoreViewField($input: CreateViewFieldInput!) {
- createCoreViewField(input: $input) {
+ mutation CreateManyViewFields($inputs: [CreateViewFieldInput!]!) {
+ createManyViewFields(inputs: $inputs) {
...ViewFieldFragment
}
}
diff --git a/packages/twenty-front/src/modules/views/graphql/mutations/updateCoreViewGroup.ts b/packages/twenty-front/src/modules/views/graphql/mutations/createManyViewGroups.ts
similarity index 54%
rename from packages/twenty-front/src/modules/views/graphql/mutations/updateCoreViewGroup.ts
rename to packages/twenty-front/src/modules/views/graphql/mutations/createManyViewGroups.ts
index 7cb9464dfb1..a9a988a0a44 100644
--- a/packages/twenty-front/src/modules/views/graphql/mutations/updateCoreViewGroup.ts
+++ b/packages/twenty-front/src/modules/views/graphql/mutations/createManyViewGroups.ts
@@ -1,10 +1,10 @@
import { VIEW_GROUP_FRAGMENT } from '@/views/graphql/fragments/viewGroupFragment';
import { gql } from '@apollo/client';
-export const UPDATE_CORE_VIEW_GROUP = gql`
+export const CREATE_MANY_VIEW_GROUPS = gql`
${VIEW_GROUP_FRAGMENT}
- mutation UpdateCoreViewGroup($input: UpdateViewGroupInput!) {
- updateCoreViewGroup(input: $input) {
+ mutation CreateManyViewGroups($inputs: [CreateViewGroupInput!]!) {
+ createManyViewGroups(inputs: $inputs) {
...ViewGroupFragment
}
}
diff --git a/packages/twenty-front/src/modules/views/graphql/mutations/createCoreView.ts b/packages/twenty-front/src/modules/views/graphql/mutations/createView.ts
similarity index 56%
rename from packages/twenty-front/src/modules/views/graphql/mutations/createCoreView.ts
rename to packages/twenty-front/src/modules/views/graphql/mutations/createView.ts
index 5bdafa0907e..16d77edc76a 100644
--- a/packages/twenty-front/src/modules/views/graphql/mutations/createCoreView.ts
+++ b/packages/twenty-front/src/modules/views/graphql/mutations/createView.ts
@@ -1,10 +1,10 @@
import { VIEW_FRAGMENT } from '@/views/graphql/fragments/viewFragment';
import { gql } from '@apollo/client';
-export const CREATE_CORE_VIEW = gql`
+export const CREATE_VIEW = gql`
${VIEW_FRAGMENT}
- mutation CreateCoreView($input: CreateViewInput!) {
- createCoreView(input: $input) {
+ mutation CreateView($input: CreateViewInput!) {
+ createView(input: $input) {
...ViewFragment
}
}
diff --git a/packages/twenty-front/src/modules/views/graphql/queries/findManyCoreViewFields.ts b/packages/twenty-front/src/modules/views/graphql/mutations/createViewField.ts
similarity index 57%
rename from packages/twenty-front/src/modules/views/graphql/queries/findManyCoreViewFields.ts
rename to packages/twenty-front/src/modules/views/graphql/mutations/createViewField.ts
index 739ca8b76d4..b30e2599f04 100644
--- a/packages/twenty-front/src/modules/views/graphql/queries/findManyCoreViewFields.ts
+++ b/packages/twenty-front/src/modules/views/graphql/mutations/createViewField.ts
@@ -1,10 +1,10 @@
import { VIEW_FIELD_FRAGMENT } from '@/views/graphql/fragments/viewFieldFragment';
import { gql } from '@apollo/client';
-export const FIND_MANY_CORE_VIEW_FIELDS = gql`
+export const CREATE_VIEW_FIELD = gql`
${VIEW_FIELD_FRAGMENT}
- query FindManyCoreViewFields($viewId: String!) {
- getCoreViewFields(viewId: $viewId) {
+ mutation CreateViewField($input: CreateViewFieldInput!) {
+ createViewField(input: $input) {
...ViewFieldFragment
}
}
diff --git a/packages/twenty-front/src/modules/views/graphql/mutations/deleteCoreViewFieldGroup.ts b/packages/twenty-front/src/modules/views/graphql/mutations/createViewFieldGroup.ts
similarity index 55%
rename from packages/twenty-front/src/modules/views/graphql/mutations/deleteCoreViewFieldGroup.ts
rename to packages/twenty-front/src/modules/views/graphql/mutations/createViewFieldGroup.ts
index 056413176af..34b8dfb5821 100644
--- a/packages/twenty-front/src/modules/views/graphql/mutations/deleteCoreViewFieldGroup.ts
+++ b/packages/twenty-front/src/modules/views/graphql/mutations/createViewFieldGroup.ts
@@ -1,10 +1,10 @@
import { VIEW_FIELD_GROUP_FRAGMENT } from '@/views/graphql/fragments/viewFieldGroupFragment';
import { gql } from '@apollo/client';
-export const DELETE_CORE_VIEW_FIELD_GROUP = gql`
+export const CREATE_VIEW_FIELD_GROUP = gql`
${VIEW_FIELD_GROUP_FRAGMENT}
- mutation DeleteCoreViewFieldGroup($input: DeleteViewFieldGroupInput!) {
- deleteCoreViewFieldGroup(input: $input) {
+ mutation CreateViewFieldGroup($input: CreateViewFieldGroupInput!) {
+ createViewFieldGroup(input: $input) {
...ViewFieldGroupFragment
}
}
diff --git a/packages/twenty-front/src/modules/views/graphql/queries/findManyCoreViewFilters.ts b/packages/twenty-front/src/modules/views/graphql/mutations/createViewFilter.ts
similarity index 57%
rename from packages/twenty-front/src/modules/views/graphql/queries/findManyCoreViewFilters.ts
rename to packages/twenty-front/src/modules/views/graphql/mutations/createViewFilter.ts
index 69aee2bfafa..91308211d84 100644
--- a/packages/twenty-front/src/modules/views/graphql/queries/findManyCoreViewFilters.ts
+++ b/packages/twenty-front/src/modules/views/graphql/mutations/createViewFilter.ts
@@ -1,10 +1,10 @@
import { VIEW_FILTER_FRAGMENT } from '@/views/graphql/fragments/viewFilterFragment';
import { gql } from '@apollo/client';
-export const FIND_MANY_CORE_VIEW_FILTERS = gql`
+export const CREATE_VIEW_FILTER = gql`
${VIEW_FILTER_FRAGMENT}
- query FindManyCoreViewFilters($viewId: String) {
- getCoreViewFilters(viewId: $viewId) {
+ mutation CreateViewFilter($input: CreateViewFilterInput!) {
+ createViewFilter(input: $input) {
...ViewFilterFragment
}
}
diff --git a/packages/twenty-front/src/modules/views/graphql/mutations/createCoreViewFilterGroup.ts b/packages/twenty-front/src/modules/views/graphql/mutations/createViewFilterGroup.ts
similarity index 55%
rename from packages/twenty-front/src/modules/views/graphql/mutations/createCoreViewFilterGroup.ts
rename to packages/twenty-front/src/modules/views/graphql/mutations/createViewFilterGroup.ts
index 4bc256627c3..61db96b0434 100644
--- a/packages/twenty-front/src/modules/views/graphql/mutations/createCoreViewFilterGroup.ts
+++ b/packages/twenty-front/src/modules/views/graphql/mutations/createViewFilterGroup.ts
@@ -1,10 +1,10 @@
import { VIEW_FILTER_GROUP_FRAGMENT } from '@/views/graphql/fragments/viewFilterGroupFragment';
import { gql } from '@apollo/client';
-export const CREATE_CORE_VIEW_FILTER_GROUP = gql`
+export const CREATE_VIEW_FILTER_GROUP = gql`
${VIEW_FILTER_GROUP_FRAGMENT}
- mutation CreateCoreViewFilterGroup($input: CreateViewFilterGroupInput!) {
- createCoreViewFilterGroup(input: $input) {
+ mutation CreateViewFilterGroup($input: CreateViewFilterGroupInput!) {
+ createViewFilterGroup(input: $input) {
...ViewFilterGroupFragment
}
}
diff --git a/packages/twenty-front/src/modules/views/graphql/queries/findManyCoreViewGroups.ts b/packages/twenty-front/src/modules/views/graphql/mutations/createViewGroup.ts
similarity index 57%
rename from packages/twenty-front/src/modules/views/graphql/queries/findManyCoreViewGroups.ts
rename to packages/twenty-front/src/modules/views/graphql/mutations/createViewGroup.ts
index d53158b17ce..c6d7ff8a0af 100644
--- a/packages/twenty-front/src/modules/views/graphql/queries/findManyCoreViewGroups.ts
+++ b/packages/twenty-front/src/modules/views/graphql/mutations/createViewGroup.ts
@@ -1,10 +1,10 @@
import { VIEW_GROUP_FRAGMENT } from '@/views/graphql/fragments/viewGroupFragment';
import { gql } from '@apollo/client';
-export const FIND_MANY_CORE_VIEW_GROUPS = gql`
+export const CREATE_VIEW_GROUP = gql`
${VIEW_GROUP_FRAGMENT}
- query FindManyCoreViewGroups($viewId: String) {
- getCoreViewGroups(viewId: $viewId) {
+ mutation CreateViewGroup($input: CreateViewGroupInput!) {
+ createViewGroup(input: $input) {
...ViewGroupFragment
}
}
diff --git a/packages/twenty-front/src/modules/views/graphql/queries/findManyCoreViewSorts.ts b/packages/twenty-front/src/modules/views/graphql/mutations/createViewSort.ts
similarity index 57%
rename from packages/twenty-front/src/modules/views/graphql/queries/findManyCoreViewSorts.ts
rename to packages/twenty-front/src/modules/views/graphql/mutations/createViewSort.ts
index 76b7a78aaf6..e095b1ce16b 100644
--- a/packages/twenty-front/src/modules/views/graphql/queries/findManyCoreViewSorts.ts
+++ b/packages/twenty-front/src/modules/views/graphql/mutations/createViewSort.ts
@@ -1,10 +1,10 @@
import { VIEW_SORT_FRAGMENT } from '@/views/graphql/fragments/viewSortFragment';
import { gql } from '@apollo/client';
-export const FIND_MANY_CORE_VIEW_SORTS = gql`
+export const CREATE_VIEW_SORT = gql`
${VIEW_SORT_FRAGMENT}
- query FindManyCoreViewSorts($viewId: String) {
- getCoreViewSorts(viewId: $viewId) {
+ mutation CreateViewSort($input: CreateViewSortInput!) {
+ createViewSort(input: $input) {
...ViewSortFragment
}
}
diff --git a/packages/twenty-front/src/modules/views/graphql/mutations/deleteCoreView.ts b/packages/twenty-front/src/modules/views/graphql/mutations/deleteCoreView.ts
deleted file mode 100644
index 1140f62503c..00000000000
--- a/packages/twenty-front/src/modules/views/graphql/mutations/deleteCoreView.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-import { gql } from '@apollo/client';
-
-export const DELETE_CORE_VIEW = gql`
- mutation DeleteCoreView($id: String!) {
- deleteCoreView(id: $id)
- }
-`;
diff --git a/packages/twenty-front/src/modules/views/graphql/mutations/deleteCoreViewFilterGroup.ts b/packages/twenty-front/src/modules/views/graphql/mutations/deleteCoreViewFilterGroup.ts
deleted file mode 100644
index d0cca3d7da8..00000000000
--- a/packages/twenty-front/src/modules/views/graphql/mutations/deleteCoreViewFilterGroup.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-import { gql } from '@apollo/client';
-
-export const DELETE_CORE_VIEW_FILTER_GROUP = gql`
- mutation DeleteCoreViewFilterGroup($id: String!) {
- deleteCoreViewFilterGroup(id: $id)
- }
-`;
diff --git a/packages/twenty-front/src/modules/views/graphql/mutations/deleteCoreViewSort.ts b/packages/twenty-front/src/modules/views/graphql/mutations/deleteCoreViewSort.ts
deleted file mode 100644
index 182c0f62ef0..00000000000
--- a/packages/twenty-front/src/modules/views/graphql/mutations/deleteCoreViewSort.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-import { gql } from '@apollo/client';
-
-export const DELETE_CORE_VIEW_SORT = gql`
- mutation DeleteCoreViewSort($input: DeleteViewSortInput!) {
- deleteCoreViewSort(input: $input)
- }
-`;
diff --git a/packages/twenty-front/src/modules/views/graphql/mutations/deleteView.ts b/packages/twenty-front/src/modules/views/graphql/mutations/deleteView.ts
new file mode 100644
index 00000000000..6c394979dea
--- /dev/null
+++ b/packages/twenty-front/src/modules/views/graphql/mutations/deleteView.ts
@@ -0,0 +1,7 @@
+import { gql } from '@apollo/client';
+
+export const DELETE_VIEW = gql`
+ mutation DeleteView($id: String!) {
+ deleteView(id: $id)
+ }
+`;
diff --git a/packages/twenty-front/src/modules/views/graphql/mutations/updateCoreViewField.ts b/packages/twenty-front/src/modules/views/graphql/mutations/deleteViewField.ts
similarity index 55%
rename from packages/twenty-front/src/modules/views/graphql/mutations/updateCoreViewField.ts
rename to packages/twenty-front/src/modules/views/graphql/mutations/deleteViewField.ts
index 3e407fa8743..ee78a4a8af1 100644
--- a/packages/twenty-front/src/modules/views/graphql/mutations/updateCoreViewField.ts
+++ b/packages/twenty-front/src/modules/views/graphql/mutations/deleteViewField.ts
@@ -1,10 +1,10 @@
import { VIEW_FIELD_FRAGMENT } from '@/views/graphql/fragments/viewFieldFragment';
import { gql } from '@apollo/client';
-export const UPDATE_CORE_VIEW_FIELD = gql`
+export const DELETE_VIEW_FIELD = gql`
${VIEW_FIELD_FRAGMENT}
- mutation UpdateCoreViewField($input: UpdateViewFieldInput!) {
- updateCoreViewField(input: $input) {
+ mutation DeleteViewField($input: DeleteViewFieldInput!) {
+ deleteViewField(input: $input) {
...ViewFieldFragment
}
}
diff --git a/packages/twenty-front/src/modules/views/graphql/mutations/createCoreViewFieldGroup.ts b/packages/twenty-front/src/modules/views/graphql/mutations/deleteViewFieldGroup.ts
similarity index 55%
rename from packages/twenty-front/src/modules/views/graphql/mutations/createCoreViewFieldGroup.ts
rename to packages/twenty-front/src/modules/views/graphql/mutations/deleteViewFieldGroup.ts
index bf1261b7104..aab965d4d46 100644
--- a/packages/twenty-front/src/modules/views/graphql/mutations/createCoreViewFieldGroup.ts
+++ b/packages/twenty-front/src/modules/views/graphql/mutations/deleteViewFieldGroup.ts
@@ -1,10 +1,10 @@
import { VIEW_FIELD_GROUP_FRAGMENT } from '@/views/graphql/fragments/viewFieldGroupFragment';
import { gql } from '@apollo/client';
-export const CREATE_CORE_VIEW_FIELD_GROUP = gql`
+export const DELETE_VIEW_FIELD_GROUP = gql`
${VIEW_FIELD_GROUP_FRAGMENT}
- mutation CreateCoreViewFieldGroup($input: CreateViewFieldGroupInput!) {
- createCoreViewFieldGroup(input: $input) {
+ mutation DeleteViewFieldGroup($input: DeleteViewFieldGroupInput!) {
+ deleteViewFieldGroup(input: $input) {
...ViewFieldGroupFragment
}
}
diff --git a/packages/twenty-front/src/modules/views/graphql/mutations/deleteCoreViewFilter.ts b/packages/twenty-front/src/modules/views/graphql/mutations/deleteViewFilter.ts
similarity index 55%
rename from packages/twenty-front/src/modules/views/graphql/mutations/deleteCoreViewFilter.ts
rename to packages/twenty-front/src/modules/views/graphql/mutations/deleteViewFilter.ts
index 8f11c6e5814..72ccf98ba57 100644
--- a/packages/twenty-front/src/modules/views/graphql/mutations/deleteCoreViewFilter.ts
+++ b/packages/twenty-front/src/modules/views/graphql/mutations/deleteViewFilter.ts
@@ -1,10 +1,10 @@
import { VIEW_FILTER_FRAGMENT } from '@/views/graphql/fragments/viewFilterFragment';
import { gql } from '@apollo/client';
-export const DELETE_CORE_VIEW_FILTER = gql`
+export const DELETE_VIEW_FILTER = gql`
${VIEW_FILTER_FRAGMENT}
- mutation DeleteCoreViewFilter($input: DeleteViewFilterInput!) {
- deleteCoreViewFilter(input: $input) {
+ mutation DeleteViewFilter($input: DeleteViewFilterInput!) {
+ deleteViewFilter(input: $input) {
...ViewFilterFragment
}
}
diff --git a/packages/twenty-front/src/modules/views/graphql/mutations/deleteViewFilterGroup.ts b/packages/twenty-front/src/modules/views/graphql/mutations/deleteViewFilterGroup.ts
new file mode 100644
index 00000000000..f663897dfdf
--- /dev/null
+++ b/packages/twenty-front/src/modules/views/graphql/mutations/deleteViewFilterGroup.ts
@@ -0,0 +1,7 @@
+import { gql } from '@apollo/client';
+
+export const DELETE_VIEW_FILTER_GROUP = gql`
+ mutation DeleteViewFilterGroup($id: String!) {
+ deleteViewFilterGroup(id: $id)
+ }
+`;
diff --git a/packages/twenty-front/src/modules/views/graphql/mutations/createCoreViewGroup.ts b/packages/twenty-front/src/modules/views/graphql/mutations/deleteViewGroup.ts
similarity index 55%
rename from packages/twenty-front/src/modules/views/graphql/mutations/createCoreViewGroup.ts
rename to packages/twenty-front/src/modules/views/graphql/mutations/deleteViewGroup.ts
index 5c8450a87de..8d8499dada8 100644
--- a/packages/twenty-front/src/modules/views/graphql/mutations/createCoreViewGroup.ts
+++ b/packages/twenty-front/src/modules/views/graphql/mutations/deleteViewGroup.ts
@@ -1,10 +1,10 @@
import { VIEW_GROUP_FRAGMENT } from '@/views/graphql/fragments/viewGroupFragment';
import { gql } from '@apollo/client';
-export const CREATE_CORE_VIEW_GROUP = gql`
+export const DELETE_VIEW_GROUP = gql`
${VIEW_GROUP_FRAGMENT}
- mutation CreateCoreViewGroup($input: CreateViewGroupInput!) {
- createCoreViewGroup(input: $input) {
+ mutation DeleteViewGroup($input: DeleteViewGroupInput!) {
+ deleteViewGroup(input: $input) {
...ViewGroupFragment
}
}
diff --git a/packages/twenty-front/src/modules/views/graphql/mutations/deleteViewSort.ts b/packages/twenty-front/src/modules/views/graphql/mutations/deleteViewSort.ts
new file mode 100644
index 00000000000..5cef3469cf4
--- /dev/null
+++ b/packages/twenty-front/src/modules/views/graphql/mutations/deleteViewSort.ts
@@ -0,0 +1,7 @@
+import { gql } from '@apollo/client';
+
+export const DELETE_VIEW_SORT = gql`
+ mutation DeleteViewSort($input: DeleteViewSortInput!) {
+ deleteViewSort(input: $input)
+ }
+`;
diff --git a/packages/twenty-front/src/modules/views/graphql/mutations/destroyCoreView.ts b/packages/twenty-front/src/modules/views/graphql/mutations/destroyCoreView.ts
deleted file mode 100644
index bf4f3c5496f..00000000000
--- a/packages/twenty-front/src/modules/views/graphql/mutations/destroyCoreView.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-import { gql } from '@apollo/client';
-
-export const DESTROY_CORE_VIEW = gql`
- mutation DestroyCoreView($id: String!) {
- destroyCoreView(id: $id)
- }
-`;
diff --git a/packages/twenty-front/src/modules/views/graphql/mutations/destroyCoreViewField.ts b/packages/twenty-front/src/modules/views/graphql/mutations/destroyCoreViewField.ts
deleted file mode 100644
index caf7d9c11a5..00000000000
--- a/packages/twenty-front/src/modules/views/graphql/mutations/destroyCoreViewField.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import { VIEW_FIELD_FRAGMENT } from '@/views/graphql/fragments/viewFieldFragment';
-import { gql } from '@apollo/client';
-
-export const DESTROY_CORE_VIEW_FIELD = gql`
- ${VIEW_FIELD_FRAGMENT}
- mutation DestroyCoreViewField($input: DestroyViewFieldInput!) {
- destroyCoreViewField(input: $input) {
- ...ViewFieldFragment
- }
- }
-`;
diff --git a/packages/twenty-front/src/modules/views/graphql/mutations/destroyCoreViewFilter.ts b/packages/twenty-front/src/modules/views/graphql/mutations/destroyCoreViewFilter.ts
deleted file mode 100644
index b2d10420cd3..00000000000
--- a/packages/twenty-front/src/modules/views/graphql/mutations/destroyCoreViewFilter.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import { VIEW_FILTER_FRAGMENT } from '@/views/graphql/fragments/viewFilterFragment';
-import { gql } from '@apollo/client';
-
-export const DESTROY_CORE_VIEW_FILTER = gql`
- ${VIEW_FILTER_FRAGMENT}
- mutation DestroyCoreViewFilter($input: DestroyViewFilterInput!) {
- destroyCoreViewFilter(input: $input) {
- ...ViewFilterFragment
- }
- }
-`;
diff --git a/packages/twenty-front/src/modules/views/graphql/mutations/destroyCoreViewFilterGroup.ts b/packages/twenty-front/src/modules/views/graphql/mutations/destroyCoreViewFilterGroup.ts
deleted file mode 100644
index 1c3331cf675..00000000000
--- a/packages/twenty-front/src/modules/views/graphql/mutations/destroyCoreViewFilterGroup.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-import { gql } from '@apollo/client';
-
-export const DESTROY_CORE_VIEW_FILTER_GROUP = gql`
- mutation DestroyCoreViewFilterGroup($id: String!) {
- destroyCoreViewFilterGroup(id: $id)
- }
-`;
diff --git a/packages/twenty-front/src/modules/views/graphql/mutations/destroyCoreViewGroup.ts b/packages/twenty-front/src/modules/views/graphql/mutations/destroyCoreViewGroup.ts
deleted file mode 100644
index 27a118d4a94..00000000000
--- a/packages/twenty-front/src/modules/views/graphql/mutations/destroyCoreViewGroup.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import { VIEW_GROUP_FRAGMENT } from '@/views/graphql/fragments/viewGroupFragment';
-import { gql } from '@apollo/client';
-
-export const DESTROY_CORE_VIEW_GROUP = gql`
- ${VIEW_GROUP_FRAGMENT}
- mutation DestroyCoreViewGroup($input: DestroyViewGroupInput!) {
- destroyCoreViewGroup(input: $input) {
- ...ViewGroupFragment
- }
- }
-`;
diff --git a/packages/twenty-front/src/modules/views/graphql/mutations/destroyCoreViewSort.ts b/packages/twenty-front/src/modules/views/graphql/mutations/destroyCoreViewSort.ts
deleted file mode 100644
index 5be92cd2f3e..00000000000
--- a/packages/twenty-front/src/modules/views/graphql/mutations/destroyCoreViewSort.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-import { gql } from '@apollo/client';
-
-export const DESTROY_CORE_VIEW_SORT = gql`
- mutation DestroyCoreViewSort($input: DestroyViewSortInput!) {
- destroyCoreViewSort(input: $input)
- }
-`;
diff --git a/packages/twenty-front/src/modules/views/graphql/mutations/destroyView.ts b/packages/twenty-front/src/modules/views/graphql/mutations/destroyView.ts
new file mode 100644
index 00000000000..81c38e87698
--- /dev/null
+++ b/packages/twenty-front/src/modules/views/graphql/mutations/destroyView.ts
@@ -0,0 +1,7 @@
+import { gql } from '@apollo/client';
+
+export const DESTROY_VIEW = gql`
+ mutation DestroyView($id: String!) {
+ destroyView(id: $id)
+ }
+`;
diff --git a/packages/twenty-front/src/modules/views/graphql/mutations/deleteCoreViewField.ts b/packages/twenty-front/src/modules/views/graphql/mutations/destroyViewField.ts
similarity index 55%
rename from packages/twenty-front/src/modules/views/graphql/mutations/deleteCoreViewField.ts
rename to packages/twenty-front/src/modules/views/graphql/mutations/destroyViewField.ts
index 4d25f61bbf5..59f4304bd8f 100644
--- a/packages/twenty-front/src/modules/views/graphql/mutations/deleteCoreViewField.ts
+++ b/packages/twenty-front/src/modules/views/graphql/mutations/destroyViewField.ts
@@ -1,10 +1,10 @@
import { VIEW_FIELD_FRAGMENT } from '@/views/graphql/fragments/viewFieldFragment';
import { gql } from '@apollo/client';
-export const DELETE_CORE_VIEW_FIELD = gql`
+export const DESTROY_VIEW_FIELD = gql`
${VIEW_FIELD_FRAGMENT}
- mutation DeleteCoreViewField($input: DeleteViewFieldInput!) {
- deleteCoreViewField(input: $input) {
+ mutation DestroyViewField($input: DestroyViewFieldInput!) {
+ destroyViewField(input: $input) {
...ViewFieldFragment
}
}
diff --git a/packages/twenty-front/src/modules/views/graphql/mutations/createCoreViewFilter.ts b/packages/twenty-front/src/modules/views/graphql/mutations/destroyViewFilter.ts
similarity index 55%
rename from packages/twenty-front/src/modules/views/graphql/mutations/createCoreViewFilter.ts
rename to packages/twenty-front/src/modules/views/graphql/mutations/destroyViewFilter.ts
index 7f4c03a6f85..dbdd30fc14e 100644
--- a/packages/twenty-front/src/modules/views/graphql/mutations/createCoreViewFilter.ts
+++ b/packages/twenty-front/src/modules/views/graphql/mutations/destroyViewFilter.ts
@@ -1,10 +1,10 @@
import { VIEW_FILTER_FRAGMENT } from '@/views/graphql/fragments/viewFilterFragment';
import { gql } from '@apollo/client';
-export const CREATE_CORE_VIEW_FILTER = gql`
+export const DESTROY_VIEW_FILTER = gql`
${VIEW_FILTER_FRAGMENT}
- mutation CreateCoreViewFilter($input: CreateViewFilterInput!) {
- createCoreViewFilter(input: $input) {
+ mutation DestroyViewFilter($input: DestroyViewFilterInput!) {
+ destroyViewFilter(input: $input) {
...ViewFilterFragment
}
}
diff --git a/packages/twenty-front/src/modules/views/graphql/mutations/destroyViewFilterGroup.ts b/packages/twenty-front/src/modules/views/graphql/mutations/destroyViewFilterGroup.ts
new file mode 100644
index 00000000000..dc59c2ab6aa
--- /dev/null
+++ b/packages/twenty-front/src/modules/views/graphql/mutations/destroyViewFilterGroup.ts
@@ -0,0 +1,7 @@
+import { gql } from '@apollo/client';
+
+export const DESTROY_VIEW_FILTER_GROUP = gql`
+ mutation DestroyViewFilterGroup($id: String!) {
+ destroyViewFilterGroup(id: $id)
+ }
+`;
diff --git a/packages/twenty-front/src/modules/views/graphql/mutations/deleteCoreViewGroup.ts b/packages/twenty-front/src/modules/views/graphql/mutations/destroyViewGroup.ts
similarity index 55%
rename from packages/twenty-front/src/modules/views/graphql/mutations/deleteCoreViewGroup.ts
rename to packages/twenty-front/src/modules/views/graphql/mutations/destroyViewGroup.ts
index 8d4d56f36af..bc732c02a56 100644
--- a/packages/twenty-front/src/modules/views/graphql/mutations/deleteCoreViewGroup.ts
+++ b/packages/twenty-front/src/modules/views/graphql/mutations/destroyViewGroup.ts
@@ -1,10 +1,10 @@
import { VIEW_GROUP_FRAGMENT } from '@/views/graphql/fragments/viewGroupFragment';
import { gql } from '@apollo/client';
-export const DELETE_CORE_VIEW_GROUP = gql`
+export const DESTROY_VIEW_GROUP = gql`
${VIEW_GROUP_FRAGMENT}
- mutation DeleteCoreViewGroup($input: DeleteViewGroupInput!) {
- deleteCoreViewGroup(input: $input) {
+ mutation DestroyViewGroup($input: DestroyViewGroupInput!) {
+ destroyViewGroup(input: $input) {
...ViewGroupFragment
}
}
diff --git a/packages/twenty-front/src/modules/views/graphql/mutations/destroyViewSort.ts b/packages/twenty-front/src/modules/views/graphql/mutations/destroyViewSort.ts
new file mode 100644
index 00000000000..c123d57dc1a
--- /dev/null
+++ b/packages/twenty-front/src/modules/views/graphql/mutations/destroyViewSort.ts
@@ -0,0 +1,7 @@
+import { gql } from '@apollo/client';
+
+export const DESTROY_VIEW_SORT = gql`
+ mutation DestroyViewSort($input: DestroyViewSortInput!) {
+ destroyViewSort(input: $input)
+ }
+`;
diff --git a/packages/twenty-front/src/modules/views/graphql/mutations/updateCoreViewFilter.ts b/packages/twenty-front/src/modules/views/graphql/mutations/updateCoreViewFilter.ts
deleted file mode 100644
index 78518b72282..00000000000
--- a/packages/twenty-front/src/modules/views/graphql/mutations/updateCoreViewFilter.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import { VIEW_FILTER_FRAGMENT } from '@/views/graphql/fragments/viewFilterFragment';
-import { gql } from '@apollo/client';
-
-export const UPDATE_CORE_VIEW_FILTER = gql`
- ${VIEW_FILTER_FRAGMENT}
- mutation UpdateCoreViewFilter($input: UpdateViewFilterInput!) {
- updateCoreViewFilter(input: $input) {
- ...ViewFilterFragment
- }
- }
-`;
diff --git a/packages/twenty-front/src/modules/views/graphql/mutations/updateCoreView.ts b/packages/twenty-front/src/modules/views/graphql/mutations/updateView.ts
similarity index 52%
rename from packages/twenty-front/src/modules/views/graphql/mutations/updateCoreView.ts
rename to packages/twenty-front/src/modules/views/graphql/mutations/updateView.ts
index bae50885e73..579a3568dfc 100644
--- a/packages/twenty-front/src/modules/views/graphql/mutations/updateCoreView.ts
+++ b/packages/twenty-front/src/modules/views/graphql/mutations/updateView.ts
@@ -1,10 +1,10 @@
import { VIEW_FRAGMENT } from '@/views/graphql/fragments/viewFragment';
import { gql } from '@apollo/client';
-export const UPDATE_CORE_VIEW = gql`
+export const UPDATE_VIEW = gql`
${VIEW_FRAGMENT}
- mutation UpdateCoreView($id: String!, $input: UpdateViewInput!) {
- updateCoreView(id: $id, input: $input) {
+ mutation UpdateView($id: String!, $input: UpdateViewInput!) {
+ updateView(id: $id, input: $input) {
...ViewFragment
}
}
diff --git a/packages/twenty-front/src/modules/views/graphql/mutations/updateViewField.ts b/packages/twenty-front/src/modules/views/graphql/mutations/updateViewField.ts
new file mode 100644
index 00000000000..23e8bf3cbe6
--- /dev/null
+++ b/packages/twenty-front/src/modules/views/graphql/mutations/updateViewField.ts
@@ -0,0 +1,11 @@
+import { VIEW_FIELD_FRAGMENT } from '@/views/graphql/fragments/viewFieldFragment';
+import { gql } from '@apollo/client';
+
+export const UPDATE_VIEW_FIELD = gql`
+ ${VIEW_FIELD_FRAGMENT}
+ mutation UpdateViewField($input: UpdateViewFieldInput!) {
+ updateViewField(input: $input) {
+ ...ViewFieldFragment
+ }
+ }
+`;
diff --git a/packages/twenty-front/src/modules/views/graphql/mutations/updateCoreViewFieldGroup.ts b/packages/twenty-front/src/modules/views/graphql/mutations/updateViewFieldGroup.ts
similarity index 55%
rename from packages/twenty-front/src/modules/views/graphql/mutations/updateCoreViewFieldGroup.ts
rename to packages/twenty-front/src/modules/views/graphql/mutations/updateViewFieldGroup.ts
index 9b288cbbcae..645445b3e78 100644
--- a/packages/twenty-front/src/modules/views/graphql/mutations/updateCoreViewFieldGroup.ts
+++ b/packages/twenty-front/src/modules/views/graphql/mutations/updateViewFieldGroup.ts
@@ -1,10 +1,10 @@
import { VIEW_FIELD_GROUP_FRAGMENT } from '@/views/graphql/fragments/viewFieldGroupFragment';
import { gql } from '@apollo/client';
-export const UPDATE_CORE_VIEW_FIELD_GROUP = gql`
+export const UPDATE_VIEW_FIELD_GROUP = gql`
${VIEW_FIELD_GROUP_FRAGMENT}
- mutation UpdateCoreViewFieldGroup($input: UpdateViewFieldGroupInput!) {
- updateCoreViewFieldGroup(input: $input) {
+ mutation UpdateViewFieldGroup($input: UpdateViewFieldGroupInput!) {
+ updateViewFieldGroup(input: $input) {
...ViewFieldGroupFragment
}
}
diff --git a/packages/twenty-front/src/modules/views/graphql/mutations/updateViewFilter.ts b/packages/twenty-front/src/modules/views/graphql/mutations/updateViewFilter.ts
new file mode 100644
index 00000000000..0036a59bbbf
--- /dev/null
+++ b/packages/twenty-front/src/modules/views/graphql/mutations/updateViewFilter.ts
@@ -0,0 +1,11 @@
+import { VIEW_FILTER_FRAGMENT } from '@/views/graphql/fragments/viewFilterFragment';
+import { gql } from '@apollo/client';
+
+export const UPDATE_VIEW_FILTER = gql`
+ ${VIEW_FILTER_FRAGMENT}
+ mutation UpdateViewFilter($input: UpdateViewFilterInput!) {
+ updateViewFilter(input: $input) {
+ ...ViewFilterFragment
+ }
+ }
+`;
diff --git a/packages/twenty-front/src/modules/views/graphql/mutations/updateCoreViewFilterGroup.ts b/packages/twenty-front/src/modules/views/graphql/mutations/updateViewFilterGroup.ts
similarity index 65%
rename from packages/twenty-front/src/modules/views/graphql/mutations/updateCoreViewFilterGroup.ts
rename to packages/twenty-front/src/modules/views/graphql/mutations/updateViewFilterGroup.ts
index ad7b43c3348..abd42abc91c 100644
--- a/packages/twenty-front/src/modules/views/graphql/mutations/updateCoreViewFilterGroup.ts
+++ b/packages/twenty-front/src/modules/views/graphql/mutations/updateViewFilterGroup.ts
@@ -1,13 +1,13 @@
import { VIEW_FILTER_GROUP_FRAGMENT } from '@/views/graphql/fragments/viewFilterGroupFragment';
import { gql } from '@apollo/client';
-export const UPDATE_CORE_VIEW_FILTER_GROUP = gql`
+export const UPDATE_VIEW_FILTER_GROUP = gql`
${VIEW_FILTER_GROUP_FRAGMENT}
- mutation UpdateCoreViewFilterGroup(
+ mutation UpdateViewFilterGroup(
$id: String!
$input: UpdateViewFilterGroupInput!
) {
- updateCoreViewFilterGroup(id: $id, input: $input) {
+ updateViewFilterGroup(id: $id, input: $input) {
...ViewFilterGroupFragment
}
}
diff --git a/packages/twenty-front/src/modules/views/graphql/mutations/updateViewGroup.ts b/packages/twenty-front/src/modules/views/graphql/mutations/updateViewGroup.ts
new file mode 100644
index 00000000000..df246df52fc
--- /dev/null
+++ b/packages/twenty-front/src/modules/views/graphql/mutations/updateViewGroup.ts
@@ -0,0 +1,11 @@
+import { VIEW_GROUP_FRAGMENT } from '@/views/graphql/fragments/viewGroupFragment';
+import { gql } from '@apollo/client';
+
+export const UPDATE_VIEW_GROUP = gql`
+ ${VIEW_GROUP_FRAGMENT}
+ mutation UpdateViewGroup($input: UpdateViewGroupInput!) {
+ updateViewGroup(input: $input) {
+ ...ViewGroupFragment
+ }
+ }
+`;
diff --git a/packages/twenty-front/src/modules/views/graphql/mutations/updateCoreViewSort.ts b/packages/twenty-front/src/modules/views/graphql/mutations/updateViewSort.ts
similarity index 55%
rename from packages/twenty-front/src/modules/views/graphql/mutations/updateCoreViewSort.ts
rename to packages/twenty-front/src/modules/views/graphql/mutations/updateViewSort.ts
index cb4d481e630..0c94f51caeb 100644
--- a/packages/twenty-front/src/modules/views/graphql/mutations/updateCoreViewSort.ts
+++ b/packages/twenty-front/src/modules/views/graphql/mutations/updateViewSort.ts
@@ -1,10 +1,10 @@
import { VIEW_SORT_FRAGMENT } from '@/views/graphql/fragments/viewSortFragment';
import { gql } from '@apollo/client';
-export const UPDATE_CORE_VIEW_SORT = gql`
+export const UPDATE_VIEW_SORT = gql`
${VIEW_SORT_FRAGMENT}
- mutation UpdateCoreViewSort($input: UpdateViewSortInput!) {
- updateCoreViewSort(input: $input) {
+ mutation UpdateViewSort($input: UpdateViewSortInput!) {
+ updateViewSort(input: $input) {
...ViewSortFragment
}
}
diff --git a/packages/twenty-front/src/modules/views/graphql/queries/findAllCoreViews.ts b/packages/twenty-front/src/modules/views/graphql/queries/findAllViews.ts
similarity index 55%
rename from packages/twenty-front/src/modules/views/graphql/queries/findAllCoreViews.ts
rename to packages/twenty-front/src/modules/views/graphql/queries/findAllViews.ts
index 131b239cf2a..8f35a8b0adb 100644
--- a/packages/twenty-front/src/modules/views/graphql/queries/findAllCoreViews.ts
+++ b/packages/twenty-front/src/modules/views/graphql/queries/findAllViews.ts
@@ -1,10 +1,10 @@
import { VIEW_FRAGMENT } from '@/views/graphql/fragments/viewFragment';
import { gql } from '@apollo/client';
-export const FIND_ALL_CORE_VIEWS = gql`
+export const FIND_ALL_VIEWS = gql`
${VIEW_FRAGMENT}
- query FindAllCoreViews($viewTypes: [ViewType!]) {
- getCoreViews(viewTypes: $viewTypes) {
+ query FindAllViews($viewTypes: [ViewType!]) {
+ getViews(viewTypes: $viewTypes) {
...ViewFragment
}
}
diff --git a/packages/twenty-front/src/modules/views/graphql/queries/findFieldsWidgetCoreViews.ts b/packages/twenty-front/src/modules/views/graphql/queries/findFieldsWidgetCoreViews.ts
deleted file mode 100644
index 35aba8597a9..00000000000
--- a/packages/twenty-front/src/modules/views/graphql/queries/findFieldsWidgetCoreViews.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import { VIEW_FRAGMENT } from '@/views/graphql/fragments/viewFragment';
-import { gql } from '@apollo/client';
-
-export const FIND_FIELDS_WIDGET_CORE_VIEWS = gql`
- ${VIEW_FRAGMENT}
- query FindFieldsWidgetCoreViews($viewTypes: [ViewType!]) {
- getCoreViews(viewTypes: $viewTypes) {
- ...ViewFragment
- }
- }
-`;
diff --git a/packages/twenty-front/src/modules/views/graphql/queries/findFieldsWidgetViews.ts b/packages/twenty-front/src/modules/views/graphql/queries/findFieldsWidgetViews.ts
new file mode 100644
index 00000000000..1b3d5d929d9
--- /dev/null
+++ b/packages/twenty-front/src/modules/views/graphql/queries/findFieldsWidgetViews.ts
@@ -0,0 +1,11 @@
+import { VIEW_FRAGMENT } from '@/views/graphql/fragments/viewFragment';
+import { gql } from '@apollo/client';
+
+export const FIND_FIELDS_WIDGET_VIEWS = gql`
+ ${VIEW_FRAGMENT}
+ query FindFieldsWidgetViews($viewTypes: [ViewType!]) {
+ getViews(viewTypes: $viewTypes) {
+ ...ViewFragment
+ }
+ }
+`;
diff --git a/packages/twenty-front/src/modules/views/graphql/queries/findManyCoreViews.ts b/packages/twenty-front/src/modules/views/graphql/queries/findManyCoreViews.ts
deleted file mode 100644
index bf0f1ff6dd3..00000000000
--- a/packages/twenty-front/src/modules/views/graphql/queries/findManyCoreViews.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import { VIEW_FRAGMENT } from '@/views/graphql/fragments/viewFragment';
-import { gql } from '@apollo/client';
-
-export const FIND_MANY_CORE_VIEWS = gql`
- ${VIEW_FRAGMENT}
- query FindManyCoreViews($objectMetadataId: String, $viewTypes: [ViewType!]) {
- getCoreViews(objectMetadataId: $objectMetadataId, viewTypes: $viewTypes) {
- ...ViewFragment
- }
- }
-`;
diff --git a/packages/twenty-front/src/modules/views/graphql/queries/findManyViewFields.ts b/packages/twenty-front/src/modules/views/graphql/queries/findManyViewFields.ts
new file mode 100644
index 00000000000..d1ce3f903a4
--- /dev/null
+++ b/packages/twenty-front/src/modules/views/graphql/queries/findManyViewFields.ts
@@ -0,0 +1,11 @@
+import { VIEW_FIELD_FRAGMENT } from '@/views/graphql/fragments/viewFieldFragment';
+import { gql } from '@apollo/client';
+
+export const FIND_MANY_VIEW_FIELDS = gql`
+ ${VIEW_FIELD_FRAGMENT}
+ query FindManyViewFields($viewId: String!) {
+ getViewFields(viewId: $viewId) {
+ ...ViewFieldFragment
+ }
+ }
+`;
diff --git a/packages/twenty-front/src/modules/views/graphql/queries/findManyCoreViewFilterGroups.ts b/packages/twenty-front/src/modules/views/graphql/queries/findManyViewFilterGroups.ts
similarity index 57%
rename from packages/twenty-front/src/modules/views/graphql/queries/findManyCoreViewFilterGroups.ts
rename to packages/twenty-front/src/modules/views/graphql/queries/findManyViewFilterGroups.ts
index 146fe56557d..57f06b8539a 100644
--- a/packages/twenty-front/src/modules/views/graphql/queries/findManyCoreViewFilterGroups.ts
+++ b/packages/twenty-front/src/modules/views/graphql/queries/findManyViewFilterGroups.ts
@@ -1,10 +1,10 @@
import { VIEW_FILTER_GROUP_FRAGMENT } from '@/views/graphql/fragments/viewFilterGroupFragment';
import { gql } from '@apollo/client';
-export const FIND_MANY_CORE_VIEW_FILTER_GROUPS = gql`
+export const FIND_MANY_VIEW_FILTER_GROUPS = gql`
${VIEW_FILTER_GROUP_FRAGMENT}
- query FindManyCoreViewFilterGroups($viewId: String) {
- getCoreViewFilterGroups(viewId: $viewId) {
+ query FindManyViewFilterGroups($viewId: String) {
+ getViewFilterGroups(viewId: $viewId) {
...ViewFilterGroupFragment
}
}
diff --git a/packages/twenty-front/src/modules/views/graphql/queries/findManyViewFilters.ts b/packages/twenty-front/src/modules/views/graphql/queries/findManyViewFilters.ts
new file mode 100644
index 00000000000..bcfd2ffd6e2
--- /dev/null
+++ b/packages/twenty-front/src/modules/views/graphql/queries/findManyViewFilters.ts
@@ -0,0 +1,11 @@
+import { VIEW_FILTER_FRAGMENT } from '@/views/graphql/fragments/viewFilterFragment';
+import { gql } from '@apollo/client';
+
+export const FIND_MANY_VIEW_FILTERS = gql`
+ ${VIEW_FILTER_FRAGMENT}
+ query FindManyViewFilters($viewId: String) {
+ getViewFilters(viewId: $viewId) {
+ ...ViewFilterFragment
+ }
+ }
+`;
diff --git a/packages/twenty-front/src/modules/views/graphql/queries/findManyViewGroups.ts b/packages/twenty-front/src/modules/views/graphql/queries/findManyViewGroups.ts
new file mode 100644
index 00000000000..6bd302d7f64
--- /dev/null
+++ b/packages/twenty-front/src/modules/views/graphql/queries/findManyViewGroups.ts
@@ -0,0 +1,11 @@
+import { VIEW_GROUP_FRAGMENT } from '@/views/graphql/fragments/viewGroupFragment';
+import { gql } from '@apollo/client';
+
+export const FIND_MANY_VIEW_GROUPS = gql`
+ ${VIEW_GROUP_FRAGMENT}
+ query FindManyViewGroups($viewId: String) {
+ getViewGroups(viewId: $viewId) {
+ ...ViewGroupFragment
+ }
+ }
+`;
diff --git a/packages/twenty-front/src/modules/views/graphql/mutations/createCoreViewSort.ts b/packages/twenty-front/src/modules/views/graphql/queries/findManyViewSorts.ts
similarity index 55%
rename from packages/twenty-front/src/modules/views/graphql/mutations/createCoreViewSort.ts
rename to packages/twenty-front/src/modules/views/graphql/queries/findManyViewSorts.ts
index 9c7676f8b7b..fbae06dcc81 100644
--- a/packages/twenty-front/src/modules/views/graphql/mutations/createCoreViewSort.ts
+++ b/packages/twenty-front/src/modules/views/graphql/queries/findManyViewSorts.ts
@@ -1,10 +1,10 @@
import { VIEW_SORT_FRAGMENT } from '@/views/graphql/fragments/viewSortFragment';
import { gql } from '@apollo/client';
-export const CREATE_CORE_VIEW_SORT = gql`
+export const FIND_MANY_VIEW_SORTS = gql`
${VIEW_SORT_FRAGMENT}
- mutation CreateCoreViewSort($input: CreateViewSortInput!) {
- createCoreViewSort(input: $input) {
+ query FindManyViewSorts($viewId: String) {
+ getViewSorts(viewId: $viewId) {
...ViewSortFragment
}
}
diff --git a/packages/twenty-front/src/modules/views/graphql/queries/findManyViews.ts b/packages/twenty-front/src/modules/views/graphql/queries/findManyViews.ts
new file mode 100644
index 00000000000..afc63536d19
--- /dev/null
+++ b/packages/twenty-front/src/modules/views/graphql/queries/findManyViews.ts
@@ -0,0 +1,11 @@
+import { VIEW_FRAGMENT } from '@/views/graphql/fragments/viewFragment';
+import { gql } from '@apollo/client';
+
+export const FIND_MANY_VIEWS = gql`
+ ${VIEW_FRAGMENT}
+ query FindManyViews($objectMetadataId: String, $viewTypes: [ViewType!]) {
+ getViews(objectMetadataId: $objectMetadataId, viewTypes: $viewTypes) {
+ ...ViewFragment
+ }
+ }
+`;
diff --git a/packages/twenty-front/src/modules/views/graphql/queries/findOneCoreView.ts b/packages/twenty-front/src/modules/views/graphql/queries/findOneView.ts
similarity index 60%
rename from packages/twenty-front/src/modules/views/graphql/queries/findOneCoreView.ts
rename to packages/twenty-front/src/modules/views/graphql/queries/findOneView.ts
index 6425290853e..d59fd9f2bea 100644
--- a/packages/twenty-front/src/modules/views/graphql/queries/findOneCoreView.ts
+++ b/packages/twenty-front/src/modules/views/graphql/queries/findOneView.ts
@@ -1,10 +1,10 @@
import { VIEW_FRAGMENT } from '@/views/graphql/fragments/viewFragment';
import { gql } from '@apollo/client';
-export const FIND_ONE_CORE_VIEW = gql`
+export const FIND_ONE_VIEW = gql`
${VIEW_FRAGMENT}
- query FindOneCoreView($id: String!) {
- getCoreView(id: $id) {
+ query FindOneView($id: String!) {
+ getView(id: $id) {
...ViewFragment
}
}
diff --git a/packages/twenty-front/src/modules/views/graphql/queries/findOneCoreViewField.ts b/packages/twenty-front/src/modules/views/graphql/queries/findOneViewField.ts
similarity index 60%
rename from packages/twenty-front/src/modules/views/graphql/queries/findOneCoreViewField.ts
rename to packages/twenty-front/src/modules/views/graphql/queries/findOneViewField.ts
index 94b07c8f812..eb5ab0b9000 100644
--- a/packages/twenty-front/src/modules/views/graphql/queries/findOneCoreViewField.ts
+++ b/packages/twenty-front/src/modules/views/graphql/queries/findOneViewField.ts
@@ -1,10 +1,10 @@
import { VIEW_FIELD_FRAGMENT } from '@/views/graphql/fragments/viewFieldFragment';
import { gql } from '@apollo/client';
-export const FIND_ONE_CORE_VIEW_FIELD = gql`
+export const FIND_ONE_VIEW_FIELD = gql`
${VIEW_FIELD_FRAGMENT}
- query FindOneCoreViewField($id: String!) {
- getCoreViewField(id: $id) {
+ query FindOneViewField($id: String!) {
+ getViewField(id: $id) {
...ViewFieldFragment
}
}
diff --git a/packages/twenty-front/src/modules/views/graphql/queries/findOneCoreViewFilter.ts b/packages/twenty-front/src/modules/views/graphql/queries/findOneViewFilter.ts
similarity index 60%
rename from packages/twenty-front/src/modules/views/graphql/queries/findOneCoreViewFilter.ts
rename to packages/twenty-front/src/modules/views/graphql/queries/findOneViewFilter.ts
index 73f79276109..6d16087d6d4 100644
--- a/packages/twenty-front/src/modules/views/graphql/queries/findOneCoreViewFilter.ts
+++ b/packages/twenty-front/src/modules/views/graphql/queries/findOneViewFilter.ts
@@ -1,10 +1,10 @@
import { VIEW_FILTER_FRAGMENT } from '@/views/graphql/fragments/viewFilterFragment';
import { gql } from '@apollo/client';
-export const FIND_ONE_CORE_VIEW_FILTER = gql`
+export const FIND_ONE_VIEW_FILTER = gql`
${VIEW_FILTER_FRAGMENT}
- query FindOneCoreViewFilter($id: String!) {
- getCoreViewFilter(id: $id) {
+ query FindOneViewFilter($id: String!) {
+ getViewFilter(id: $id) {
...ViewFilterFragment
}
}
diff --git a/packages/twenty-front/src/modules/views/graphql/queries/findOneCoreViewFilterGroup.ts b/packages/twenty-front/src/modules/views/graphql/queries/findOneViewFilterGroup.ts
similarity index 60%
rename from packages/twenty-front/src/modules/views/graphql/queries/findOneCoreViewFilterGroup.ts
rename to packages/twenty-front/src/modules/views/graphql/queries/findOneViewFilterGroup.ts
index 9d6228cd8f7..32ac18489c4 100644
--- a/packages/twenty-front/src/modules/views/graphql/queries/findOneCoreViewFilterGroup.ts
+++ b/packages/twenty-front/src/modules/views/graphql/queries/findOneViewFilterGroup.ts
@@ -1,10 +1,10 @@
import { VIEW_FILTER_GROUP_FRAGMENT } from '@/views/graphql/fragments/viewFilterGroupFragment';
import { gql } from '@apollo/client';
-export const FIND_ONE_CORE_VIEW_FILTER_GROUP = gql`
+export const FIND_ONE_VIEW_FILTER_GROUP = gql`
${VIEW_FILTER_GROUP_FRAGMENT}
- query FindOneCoreViewFilterGroup($id: String!) {
- getCoreViewFilterGroup(id: $id) {
+ query FindOneViewFilterGroup($id: String!) {
+ getViewFilterGroup(id: $id) {
...ViewFilterGroupFragment
}
}
diff --git a/packages/twenty-front/src/modules/views/graphql/queries/findOneCoreViewGroup.ts b/packages/twenty-front/src/modules/views/graphql/queries/findOneViewGroup.ts
similarity index 60%
rename from packages/twenty-front/src/modules/views/graphql/queries/findOneCoreViewGroup.ts
rename to packages/twenty-front/src/modules/views/graphql/queries/findOneViewGroup.ts
index 366fabeb93c..cd64a652a96 100644
--- a/packages/twenty-front/src/modules/views/graphql/queries/findOneCoreViewGroup.ts
+++ b/packages/twenty-front/src/modules/views/graphql/queries/findOneViewGroup.ts
@@ -1,10 +1,10 @@
import { VIEW_GROUP_FRAGMENT } from '@/views/graphql/fragments/viewGroupFragment';
import { gql } from '@apollo/client';
-export const FIND_ONE_CORE_VIEW_GROUP = gql`
+export const FIND_ONE_VIEW_GROUP = gql`
${VIEW_GROUP_FRAGMENT}
- query FindOneCoreViewGroup($id: String!) {
- getCoreViewGroup(id: $id) {
+ query FindOneViewGroup($id: String!) {
+ getViewGroup(id: $id) {
...ViewGroupFragment
}
}
diff --git a/packages/twenty-front/src/modules/views/graphql/queries/findOneCoreViewSort.ts b/packages/twenty-front/src/modules/views/graphql/queries/findOneViewSort.ts
similarity index 60%
rename from packages/twenty-front/src/modules/views/graphql/queries/findOneCoreViewSort.ts
rename to packages/twenty-front/src/modules/views/graphql/queries/findOneViewSort.ts
index 68a1b55f33f..142475fed5a 100644
--- a/packages/twenty-front/src/modules/views/graphql/queries/findOneCoreViewSort.ts
+++ b/packages/twenty-front/src/modules/views/graphql/queries/findOneViewSort.ts
@@ -1,10 +1,10 @@
import { VIEW_SORT_FRAGMENT } from '@/views/graphql/fragments/viewSortFragment';
import { gql } from '@apollo/client';
-export const FIND_ONE_CORE_VIEW_SORT = gql`
+export const FIND_ONE_VIEW_SORT = gql`
${VIEW_SORT_FRAGMENT}
- query FindOneCoreViewSort($id: String!) {
- getCoreViewSort(id: $id) {
+ query FindOneViewSort($id: String!) {
+ getViewSort(id: $id) {
...ViewSortFragment
}
}
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 0f176c25293..cf42ff4b822 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
@@ -6,18 +6,18 @@ import { type RecordFilterGroup } from '@/object-record/record-filter-group/type
import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';
import { resetJotaiStore } from '@/ui/utilities/state/jotai/jotaiStore';
import { useApplyCurrentViewFilterGroupsToCurrentRecordFilterGroups } from '@/views/hooks/useApplyCurrentViewFilterGroupsToCurrentRecordFilterGroups';
-import { type CoreViewWithRelations } from '@/views/types/CoreViewWithRelations';
+import { type ViewWithRelations } from '@/views/types/ViewWithRelations';
import { type View } from '@/views/types/View';
import { type ViewFilterGroup } from '@/views/types/ViewFilterGroup';
import { ViewFilterGroupLogicalOperator } from '@/views/types/ViewFilterGroupLogicalOperator';
import { mapViewFilterGroupLogicalOperatorToRecordFilterGroupLogicalOperator } from '@/views/utils/mapViewFilterGroupLogicalOperatorToRecordFilterGroupLogicalOperator';
import { act } from 'react';
import { isDefined } from 'twenty-shared/utils';
-import { type CoreViewFilterGroup } from '~/generated-metadata/graphql';
+import { type ViewFilterGroup as GqlViewFilterGroup } from '~/generated-metadata/graphql';
import { getJestMetadataAndApolloMocksAndCommandMenuWrapper } from '~/testing/jest/getJestMetadataAndApolloMocksAndCommandMenuWrapper';
-import { mockedCoreViews } from '~/testing/mock-data/generated/metadata/views/mock-views-data';
+import { mockedViews } from '~/testing/mock-data/generated/metadata/views/mock-views-data';
import { generatedMockObjectMetadataItems } from '~/testing/utils/generatedMockObjectMetadataItems';
-import { setTestCoreViewsInMetadataStore } from '~/testing/utils/setTestCoreViewsInMetadataStore';
+import { setTestViewsInMetadataStore } from '~/testing/utils/setTestViewsInMetadataStore';
const mockObjectMetadataItemNameSingular = 'company';
@@ -37,7 +37,6 @@ describe('useApplyCurrentViewFilterGroupsToCurrentRecordFilterGroups', () => {
});
const mockViewFilterGroup: ViewFilterGroup = {
- __typename: 'ViewFilterGroup',
id: 'filter-group-1',
logicalOperator: ViewFilterGroupLogicalOperator.AND,
viewId: 'view-1',
@@ -45,15 +44,15 @@ describe('useApplyCurrentViewFilterGroupsToCurrentRecordFilterGroups', () => {
positionInViewFilterGroup: 0,
};
- const allCompaniesCoreView = mockedCoreViews.find(
+ const allCompaniesViewData = mockedViews.find(
(v) => v.name === 'All Companies',
)!;
- const allCompaniesView = allCompaniesCoreView as unknown as View;
+ const allCompaniesView = allCompaniesViewData as unknown as View;
- const mockCoreViewFilterGroup: Omit<CoreViewFilterGroup, 'workspaceId'> = {
- __typename: 'CoreViewFilterGroup',
+ const mockGqlViewFilterGroup: Omit<GqlViewFilterGroup, 'workspaceId'> = {
+ __typename: 'ViewFilterGroup',
id: 'filter-group-1',
- viewId: allCompaniesCoreView.id,
+ viewId: allCompaniesViewData.id,
logicalOperator: ViewFilterGroupLogicalOperator.AND,
createdAt: new Date().toISOString(),
updatedAt: new Date().toISOString(),
@@ -65,10 +64,10 @@ describe('useApplyCurrentViewFilterGroupsToCurrentRecordFilterGroups', () => {
viewFilterGroups: [mockViewFilterGroup],
} satisfies View;
- const mockCoreView = {
- ...allCompaniesCoreView,
- viewFilterGroups: [mockCoreViewFilterGroup],
- } satisfies CoreViewWithRelations;
+ const mockViewWithRelations = {
+ ...allCompaniesViewData,
+ viewFilterGroups: [mockGqlViewFilterGroup],
+ } satisfies ViewWithRelations;
it('should apply view filter groups from current view', () => {
const { result } = renderHook(
@@ -94,7 +93,7 @@ describe('useApplyCurrentViewFilterGroupsToCurrentRecordFilterGroups', () => {
contextStoreCurrentObjectMetadataNameSingular:
mockObjectMetadataItemNameSingular,
onInitializeJotaiStore: (store) => {
- setTestCoreViewsInMetadataStore(store, [mockCoreView]);
+ setTestViewsInMetadataStore(store, [mockViewWithRelations]);
},
}),
},
@@ -111,7 +110,8 @@ describe('useApplyCurrentViewFilterGroupsToCurrentRecordFilterGroups', () => {
mapViewFilterGroupLogicalOperatorToRecordFilterGroupLogicalOperator({
viewFilterGroupLogicalOperator: mockViewFilterGroup.logicalOperator,
}),
- parentRecordFilterGroupId: mockViewFilterGroup.parentViewFilterGroupId,
+ parentRecordFilterGroupId:
+ mockViewFilterGroup.parentViewFilterGroupId ?? undefined,
positionInRecordFilterGroup:
mockViewFilterGroup.positionInViewFilterGroup,
},
@@ -186,8 +186,8 @@ describe('useApplyCurrentViewFilterGroupsToCurrentRecordFilterGroups', () => {
contextStoreCurrentObjectMetadataNameSingular:
mockObjectMetadataItemNameSingular,
onInitializeJotaiStore: (store) => {
- setTestCoreViewsInMetadataStore(store, [
- { ...mockCoreView, viewFilterGroups: [] },
+ setTestViewsInMetadataStore(store, [
+ { ...mockViewWithRelations, viewFilterGroups: [] },
]);
store.set(
contextStoreCurrentViewIdComponentState.atomFamily({
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 aeea87b039f..788ee099075 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
@@ -6,20 +6,20 @@ import { type RecordFilter } from '@/object-record/record-filter/types/RecordFil
import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';
import { resetJotaiStore } from '@/ui/utilities/state/jotai/jotaiStore';
import { useApplyCurrentViewFiltersToCurrentRecordFilters } from '@/views/hooks/useApplyCurrentViewFiltersToCurrentRecordFilters';
-import { type CoreViewWithRelations } from '@/views/types/CoreViewWithRelations';
+import { type ViewWithRelations } from '@/views/types/ViewWithRelations';
import { type View } from '@/views/types/View';
import { type ViewFilter } from '@/views/types/ViewFilter';
import { act } from 'react';
import { ViewFilterOperand } from 'twenty-shared/types';
import { getFilterTypeFromFieldType, isDefined } from 'twenty-shared/utils';
import {
- type CoreViewFilter,
- ViewFilterOperand as CoreViewFilterOperand,
+ type ViewFilter as GqlViewFilter,
+ ViewFilterOperand as GqlViewFilterOperand,
} from '~/generated-metadata/graphql';
import { getJestMetadataAndApolloMocksAndCommandMenuWrapper } from '~/testing/jest/getJestMetadataAndApolloMocksAndCommandMenuWrapper';
-import { mockedCoreViews } from '~/testing/mock-data/generated/metadata/views/mock-views-data';
+import { mockedViews } from '~/testing/mock-data/generated/metadata/views/mock-views-data';
import { generatedMockObjectMetadataItems } from '~/testing/utils/generatedMockObjectMetadataItems';
-import { setTestCoreViewsInMetadataStore } from '~/testing/utils/setTestCoreViewsInMetadataStore';
+import { setTestViewsInMetadataStore } from '~/testing/utils/setTestViewsInMetadataStore';
const mockObjectMetadataItemNameSingular = 'company';
@@ -38,15 +38,14 @@ describe('useApplyCurrentViewFiltersToCurrentRecordFilters', () => {
resetJotaiStore();
});
- const allCompaniesCoreView = mockedCoreViews.find(
+ const allCompaniesViewData = mockedViews.find(
(v) => v.name === 'All Companies',
)!;
- const allCompaniesView = allCompaniesCoreView as unknown as View;
+ const allCompaniesView = allCompaniesViewData as unknown as View;
const mockFieldMetadataItem = mockObjectMetadataItem.fields[0];
const mockViewFilter: ViewFilter = {
- __typename: 'ViewFilter',
id: 'filter-1',
fieldMetadataId: mockFieldMetadataItem.id,
operand: ViewFilterOperand.CONTAINS,
@@ -57,15 +56,14 @@ describe('useApplyCurrentViewFiltersToCurrentRecordFilters', () => {
subFieldName: null,
};
- const mockCoreViewFilter: Omit<CoreViewFilter, 'workspaceId'> = {
- __typename: 'CoreViewFilter',
+ const mockGqlViewFilter: Omit<GqlViewFilter, 'workspaceId'> = {
id: 'filter-1',
fieldMetadataId: mockFieldMetadataItem.id,
- operand: CoreViewFilterOperand.CONTAINS,
+ operand: GqlViewFilterOperand.CONTAINS,
value: 'test',
createdAt: new Date().toISOString(),
updatedAt: new Date().toISOString(),
- viewId: allCompaniesCoreView.id,
+ viewId: allCompaniesViewData.id,
positionInViewFilterGroup: 0,
viewFilterGroupId: 'group-1',
subFieldName: null,
@@ -76,10 +74,10 @@ describe('useApplyCurrentViewFiltersToCurrentRecordFilters', () => {
viewFilters: [mockViewFilter],
} satisfies View;
- const mockCoreView = {
- ...allCompaniesCoreView,
- viewFilters: [mockCoreViewFilter],
- } satisfies CoreViewWithRelations;
+ const mockViewWithRelations = {
+ ...allCompaniesViewData,
+ viewFilters: [mockGqlViewFilter],
+ } satisfies ViewWithRelations;
it('should apply filters from current view', () => {
const { result } = renderHook(
@@ -105,7 +103,7 @@ describe('useApplyCurrentViewFiltersToCurrentRecordFilters', () => {
mockObjectMetadataItemNameSingular,
contextStoreCurrentViewId: mockView.id,
onInitializeJotaiStore: (store) => {
- setTestCoreViewsInMetadataStore(store, [mockCoreView]);
+ setTestViewsInMetadataStore(store, [mockViewWithRelations]);
},
}),
},
@@ -120,9 +118,9 @@ describe('useApplyCurrentViewFiltersToCurrentRecordFilters', () => {
id: mockViewFilter.id,
fieldMetadataId: mockViewFilter.fieldMetadataId,
value: mockViewFilter.value,
- displayValue: mockViewFilter.displayValue,
+ displayValue: mockViewFilter.displayValue ?? mockViewFilter.value,
operand: mockViewFilter.operand,
- recordFilterGroupId: mockViewFilter.viewFilterGroupId,
+ recordFilterGroupId: mockViewFilter.viewFilterGroupId ?? undefined,
positionInRecordFilterGroup: mockViewFilter.positionInViewFilterGroup,
label: mockFieldMetadataItem.label,
type: getFilterTypeFromFieldType(mockFieldMetadataItem.type),
@@ -195,8 +193,8 @@ describe('useApplyCurrentViewFiltersToCurrentRecordFilters', () => {
contextStoreCurrentObjectMetadataNameSingular:
mockObjectMetadataItemNameSingular,
onInitializeJotaiStore: (store) => {
- setTestCoreViewsInMetadataStore(store, [
- { ...mockCoreView, viewFilters: [] },
+ setTestViewsInMetadataStore(store, [
+ { ...mockViewWithRelations, viewFilters: [] },
]);
store.set(
contextStoreCurrentViewIdComponentState.atomFamily({
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 516b88da411..a62fe3892ec 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
@@ -7,16 +7,16 @@ import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/use
import { contextStoreCurrentViewIdComponentState } from '@/context-store/states/contextStoreCurrentViewIdComponentState';
import { useApplyCurrentViewSortsToCurrentRecordSorts } from '@/views/hooks/useApplyCurrentViewSortsToCurrentRecordSorts';
-import { type CoreViewSortEssential } from '@/views/types/CoreViewSortEssential';
-import { type CoreViewWithRelations } from '@/views/types/CoreViewWithRelations';
+import { type ViewSortEssential } from '@/views/types/ViewSortEssential';
+import { type ViewWithRelations } from '@/views/types/ViewWithRelations';
import { type View } from '@/views/types/View';
import { type ViewSort } from '@/views/types/ViewSort';
import { isDefined } from 'twenty-shared/utils';
import { ViewSortDirection } from '~/generated-metadata/graphql';
import { getJestMetadataAndApolloMocksAndCommandMenuWrapper } from '~/testing/jest/getJestMetadataAndApolloMocksAndCommandMenuWrapper';
-import { mockedCoreViews } from '~/testing/mock-data/generated/metadata/views/mock-views-data';
+import { mockedViews } from '~/testing/mock-data/generated/metadata/views/mock-views-data';
import { generatedMockObjectMetadataItems } from '~/testing/utils/generatedMockObjectMetadataItems';
-import { setTestCoreViewsInMetadataStore } from '~/testing/utils/setTestCoreViewsInMetadataStore';
+import { setTestViewsInMetadataStore } from '~/testing/utils/setTestViewsInMetadataStore';
const mockObjectMetadataItemNameSingular = 'company';
@@ -40,19 +40,18 @@ describe('useApplyCurrentViewSortsToCurrentRecordSorts', () => {
}
const mockViewSort: ViewSort = {
- __typename: 'ViewSort',
id: 'sort-1',
fieldMetadataId: mockFieldMetadataItem.id,
direction: ViewSortDirection.ASC,
viewId: 'view-1',
};
- const allCompaniesCoreView = mockedCoreViews.find(
+ const allCompaniesViewData = mockedViews.find(
(v) => v.name === 'All Companies',
)!;
- const allCompaniesView = allCompaniesCoreView as unknown as View;
+ const allCompaniesView = allCompaniesViewData as unknown as View;
- const mockCoreViewSort: CoreViewSortEssential = {
+ const mockViewSortData: ViewSortEssential = {
id: 'sort-1',
fieldMetadataId: mockFieldMetadataItem.id,
direction: ViewSortDirection.ASC,
@@ -64,10 +63,10 @@ describe('useApplyCurrentViewSortsToCurrentRecordSorts', () => {
viewSorts: [mockViewSort],
} satisfies View;
- const mockCoreView = {
- ...allCompaniesCoreView,
- viewSorts: [mockCoreViewSort],
- } satisfies CoreViewWithRelations;
+ const mockViewWithRelations = {
+ ...allCompaniesViewData,
+ viewSorts: [mockViewSortData],
+ } satisfies ViewWithRelations;
it('should apply sorts from current view', () => {
const { result } = renderHook(
@@ -93,7 +92,7 @@ describe('useApplyCurrentViewSortsToCurrentRecordSorts', () => {
mockObjectMetadataItemNameSingular,
contextStoreCurrentViewId: mockView.id,
onInitializeJotaiStore: (store) => {
- setTestCoreViewsInMetadataStore(store, [mockCoreView]);
+ setTestViewsInMetadataStore(store, [mockViewWithRelations]);
},
}),
},
@@ -105,7 +104,6 @@ describe('useApplyCurrentViewSortsToCurrentRecordSorts', () => {
expect(result.current.currentRecordSorts).toEqual([
{
- __typename: 'ViewSort',
id: mockViewSort.id,
fieldMetadataId: mockViewSort.fieldMetadataId,
direction: mockViewSort.direction,
@@ -156,7 +154,7 @@ describe('useApplyCurrentViewSortsToCurrentRecordSorts', () => {
it('should handle view with empty sorts', () => {
const viewWithNoSorts = {
- ...mockCoreView,
+ ...mockViewWithRelations,
viewSorts: [],
};
@@ -182,7 +180,7 @@ describe('useApplyCurrentViewSortsToCurrentRecordSorts', () => {
contextStoreCurrentObjectMetadataNameSingular:
mockObjectMetadataItemNameSingular,
onInitializeJotaiStore: (store) => {
- setTestCoreViewsInMetadataStore(store, [viewWithNoSorts]);
+ setTestViewsInMetadataStore(store, [viewWithNoSorts]);
store.set(
contextStoreCurrentViewIdComponentState.atomFamily({
instanceId: 'instanceId',
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 684f0a86816..b85909420d3 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
@@ -5,7 +5,7 @@ import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/use
import { generatedMockObjectMetadataItems } from '~/testing/utils/generatedMockObjectMetadataItems';
-import { type CoreViewSortEssential } from '@/views/types/CoreViewSortEssential';
+import { type ViewSortEssential } from '@/views/types/ViewSortEssential';
import { isDefined } from 'twenty-shared/utils';
import { ViewSortDirection } from '~/generated-metadata/graphql';
import { getJestMetadataAndApolloMocksAndCommandMenuWrapper } from '~/testing/jest/getJestMetadataAndApolloMocksAndCommandMenuWrapper';
@@ -32,7 +32,7 @@ describe('useApplyViewSortsToCurrentRecordSorts', () => {
throw new Error(`Missing mock field metadata Name`);
}
- const mockViewSort: CoreViewSortEssential = {
+ const mockViewSort: ViewSortEssential = {
id: 'sort-1',
fieldMetadataId: mockFieldMetadataItem.id,
direction: ViewSortDirection.ASC,
diff --git a/packages/twenty-front/src/modules/views/hooks/internal/useFiltersFromQueryParams.ts b/packages/twenty-front/src/modules/views/hooks/internal/useFiltersFromQueryParams.ts
index 2a07ecfb677..7975e541e7e 100644
--- a/packages/twenty-front/src/modules/views/hooks/internal/useFiltersFromQueryParams.ts
+++ b/packages/twenty-front/src/modules/views/hooks/internal/useFiltersFromQueryParams.ts
@@ -93,7 +93,6 @@ export const useFiltersFromQueryParams = () => {
].join('-')}`;
return {
- __typename: 'ViewFilter',
id: filterId,
fieldMetadataId: fieldMetadataItem.id,
operand: filterOperandFromURL as ViewFilterOperand,
diff --git a/packages/twenty-front/src/modules/views/hooks/internal/usePerformViewAPIPersist.ts b/packages/twenty-front/src/modules/views/hooks/internal/usePerformViewAPIPersist.ts
index 96fb6f07542..1f440208604 100644
--- a/packages/twenty-front/src/modules/views/hooks/internal/usePerformViewAPIPersist.ts
+++ b/packages/twenty-front/src/modules/views/hooks/internal/usePerformViewAPIPersist.ts
@@ -11,16 +11,16 @@ import { isDefined } from 'twenty-shared/utils';
import { v4 } from 'uuid';
import { useMutation } from '@apollo/client/react';
import {
- type CreateCoreViewMutationVariables,
- type DestroyCoreViewMutationVariables,
+ type CreateViewMutationVariables,
+ type DestroyViewMutationVariables,
ViewType,
- CreateCoreViewDocument,
- DestroyCoreViewDocument,
+ CreateViewDocument,
+ DestroyViewDocument,
} from '~/generated-metadata/graphql';
export const usePerformViewAPIPersist = () => {
- const [createCoreViewMutation] = useMutation(CreateCoreViewDocument);
- const [destroyCoreViewMutation] = useMutation(DestroyCoreViewDocument);
+ const [createViewMutation] = useMutation(CreateViewDocument);
+ const [destroyViewMutation] = useMutation(DestroyViewDocument);
const { triggerViewGroupOptimisticEffectAtViewCreation } =
useViewsSideEffectsOnViewGroups();
@@ -29,10 +29,10 @@ export const usePerformViewAPIPersist = () => {
const performViewAPICreate = useCallback(
async (
- variables: CreateCoreViewMutationVariables,
+ variables: CreateViewMutationVariables,
objectMetadataItemId: string,
): Promise<
- MetadataRequestResult<Awaited<ReturnType<typeof createCoreViewMutation>>>
+ MetadataRequestResult<Awaited<ReturnType<typeof createViewMutation>>>
> => {
try {
const newViewId = variables.input.id ?? v4();
@@ -44,7 +44,7 @@ export const usePerformViewAPIPersist = () => {
});
}
- const result = await createCoreViewMutation({
+ const result = await createViewMutation({
variables: {
input: {
...variables.input,
@@ -53,7 +53,7 @@ export const usePerformViewAPIPersist = () => {
},
});
- const newView = result.data?.createCoreView;
+ const newView = result.data?.createView;
if (!isDefined(newView)) {
return {
@@ -83,7 +83,7 @@ export const usePerformViewAPIPersist = () => {
}
},
[
- createCoreViewMutation,
+ createViewMutation,
triggerViewGroupOptimisticEffectAtViewCreation,
handleMetadataError,
enqueueErrorSnackBar,
@@ -92,12 +92,12 @@ export const usePerformViewAPIPersist = () => {
const performViewAPIDestroy = useCallback(
async (
- variables: DestroyCoreViewMutationVariables,
+ variables: DestroyViewMutationVariables,
): Promise<
- MetadataRequestResult<Awaited<ReturnType<typeof destroyCoreViewMutation>>>
+ MetadataRequestResult<Awaited<ReturnType<typeof destroyViewMutation>>>
> => {
try {
- const result = await destroyCoreViewMutation({
+ const result = await destroyViewMutation({
variables,
});
@@ -121,7 +121,7 @@ export const usePerformViewAPIPersist = () => {
};
}
},
- [destroyCoreViewMutation, handleMetadataError, enqueueErrorSnackBar],
+ [destroyViewMutation, handleMetadataError, enqueueErrorSnackBar],
);
return {
diff --git a/packages/twenty-front/src/modules/views/hooks/internal/usePerformViewAPIUpdate.ts b/packages/twenty-front/src/modules/views/hooks/internal/usePerformViewAPIUpdate.ts
index d1d6524b5b2..99edd3454a9 100644
--- a/packages/twenty-front/src/modules/views/hooks/internal/usePerformViewAPIUpdate.ts
+++ b/packages/twenty-front/src/modules/views/hooks/internal/usePerformViewAPIUpdate.ts
@@ -8,24 +8,24 @@ import { t } from '@lingui/core/macro';
import { CrudOperationType } from 'twenty-shared/types';
import { useMutation } from '@apollo/client/react';
import {
- type UpdateCoreViewMutationVariables,
- UpdateCoreViewDocument,
+ type UpdateViewMutationVariables,
+ UpdateViewDocument,
} from '~/generated-metadata/graphql';
export const usePerformViewAPIUpdate = () => {
- const [updateCoreViewMutation] = useMutation(UpdateCoreViewDocument);
+ const [updateViewMutation] = useMutation(UpdateViewDocument);
const { handleMetadataError } = useMetadataErrorHandler();
const { enqueueErrorSnackBar } = useSnackBar();
const performViewAPIUpdate = useCallback(
async (
- variables: UpdateCoreViewMutationVariables,
+ variables: UpdateViewMutationVariables,
): Promise<
- MetadataRequestResult<Awaited<ReturnType<typeof updateCoreViewMutation>>>
+ MetadataRequestResult<Awaited<ReturnType<typeof updateViewMutation>>>
> => {
try {
- const result = await updateCoreViewMutation({
+ const result = await updateViewMutation({
variables,
});
@@ -49,7 +49,7 @@ export const usePerformViewAPIUpdate = () => {
};
}
},
- [updateCoreViewMutation, handleMetadataError, enqueueErrorSnackBar],
+ [updateViewMutation, handleMetadataError, enqueueErrorSnackBar],
);
return { performViewAPIUpdate };
diff --git a/packages/twenty-front/src/modules/views/hooks/internal/usePerformViewFieldAPIPersist.ts b/packages/twenty-front/src/modules/views/hooks/internal/usePerformViewFieldAPIPersist.ts
index 94a43a85eac..728191dfeef 100644
--- a/packages/twenty-front/src/modules/views/hooks/internal/usePerformViewFieldAPIPersist.ts
+++ b/packages/twenty-front/src/modules/views/hooks/internal/usePerformViewFieldAPIPersist.ts
@@ -8,44 +8,38 @@ import { t } from '@lingui/core/macro';
import { CrudOperationType } from 'twenty-shared/types';
import { useMutation } from '@apollo/client/react';
import {
- type CreateManyCoreViewFieldsMutationVariables,
- type DeleteCoreViewFieldMutationVariables,
- type DestroyCoreViewFieldMutationVariables,
- type UpdateCoreViewFieldMutationVariables,
- CreateManyCoreViewFieldsDocument,
- DeleteCoreViewFieldDocument,
- DestroyCoreViewFieldDocument,
- UpdateCoreViewFieldDocument,
+ type CreateManyViewFieldsMutationVariables,
+ type DeleteViewFieldMutationVariables,
+ type DestroyViewFieldMutationVariables,
+ type UpdateViewFieldMutationVariables,
+ CreateManyViewFieldsDocument,
+ DeleteViewFieldDocument,
+ DestroyViewFieldDocument,
+ UpdateViewFieldDocument,
} from '~/generated-metadata/graphql';
export const usePerformViewFieldAPIPersist = () => {
- const [createManyCoreViewFieldsMutation] = useMutation(
- CreateManyCoreViewFieldsDocument,
- );
- const [updateCoreViewFieldMutation] = useMutation(
- UpdateCoreViewFieldDocument,
- );
- const [deleteCoreViewFieldMutation] = useMutation(
- DeleteCoreViewFieldDocument,
- );
- const [destroyCoreViewFieldMutation] = useMutation(
- DestroyCoreViewFieldDocument,
+ const [createManyViewFieldsMutation] = useMutation(
+ CreateManyViewFieldsDocument,
);
+ const [updateViewFieldMutation] = useMutation(UpdateViewFieldDocument);
+ const [deleteViewFieldMutation] = useMutation(DeleteViewFieldDocument);
+ const [destroyViewFieldMutation] = useMutation(DestroyViewFieldDocument);
const { handleMetadataError } = useMetadataErrorHandler();
const { enqueueErrorSnackBar } = useSnackBar();
const performViewFieldAPICreate = useCallback(
async (
- createCoreViewFieldInputs: CreateManyCoreViewFieldsMutationVariables,
+ createViewFieldInputs: CreateManyViewFieldsMutationVariables,
): Promise<
MetadataRequestResult<Awaited<
- ReturnType<typeof createManyCoreViewFieldsMutation>
+ ReturnType<typeof createManyViewFieldsMutation>
> | null>
> => {
if (
- !Array.isArray(createCoreViewFieldInputs.inputs) ||
- createCoreViewFieldInputs.inputs.length === 0
+ !Array.isArray(createViewFieldInputs.inputs) ||
+ createViewFieldInputs.inputs.length === 0
) {
return {
status: 'successful',
@@ -54,8 +48,8 @@ export const usePerformViewFieldAPIPersist = () => {
}
try {
- const result = await createManyCoreViewFieldsMutation({
- variables: createCoreViewFieldInputs,
+ const result = await createManyViewFieldsMutation({
+ variables: createViewFieldInputs,
});
return {
@@ -78,22 +72,18 @@ export const usePerformViewFieldAPIPersist = () => {
};
}
},
- [
- createManyCoreViewFieldsMutation,
- handleMetadataError,
- enqueueErrorSnackBar,
- ],
+ [createManyViewFieldsMutation, handleMetadataError, enqueueErrorSnackBar],
);
const performViewFieldAPIUpdate = useCallback(
async (
- createCoreViewFieldInputs: UpdateCoreViewFieldMutationVariables[],
+ createViewFieldInputs: UpdateViewFieldMutationVariables[],
): Promise<
MetadataRequestResult<
- Awaited<ReturnType<typeof updateCoreViewFieldMutation>>[]
+ Awaited<ReturnType<typeof updateViewFieldMutation>>[]
>
> => {
- if (createCoreViewFieldInputs.length === 0) {
+ if (createViewFieldInputs.length === 0) {
return {
status: 'successful',
response: [],
@@ -102,8 +92,8 @@ export const usePerformViewFieldAPIPersist = () => {
try {
const results = await Promise.all(
- createCoreViewFieldInputs.map((variables) =>
- updateCoreViewFieldMutation({
+ createViewFieldInputs.map((variables) =>
+ updateViewFieldMutation({
variables,
}),
),
@@ -129,18 +119,18 @@ export const usePerformViewFieldAPIPersist = () => {
};
}
},
- [updateCoreViewFieldMutation, handleMetadataError, enqueueErrorSnackBar],
+ [updateViewFieldMutation, handleMetadataError, enqueueErrorSnackBar],
);
const performViewFieldAPIDelete = useCallback(
async (
- deleteCoreViewFieldInputs: DeleteCoreViewFieldMutationVariables[],
+ deleteViewFieldInputs: DeleteViewFieldMutationVariables[],
): Promise<
MetadataRequestResult<
- Awaited<ReturnType<typeof deleteCoreViewFieldMutation>>[]
+ Awaited<ReturnType<typeof deleteViewFieldMutation>>[]
>
> => {
- if (deleteCoreViewFieldInputs.length === 0) {
+ if (deleteViewFieldInputs.length === 0) {
return {
status: 'successful',
response: [],
@@ -149,8 +139,8 @@ export const usePerformViewFieldAPIPersist = () => {
try {
const results = await Promise.all(
- deleteCoreViewFieldInputs.map((variables) =>
- deleteCoreViewFieldMutation({
+ deleteViewFieldInputs.map((variables) =>
+ deleteViewFieldMutation({
variables,
}),
),
@@ -176,18 +166,18 @@ export const usePerformViewFieldAPIPersist = () => {
};
}
},
- [deleteCoreViewFieldMutation, handleMetadataError, enqueueErrorSnackBar],
+ [deleteViewFieldMutation, handleMetadataError, enqueueErrorSnackBar],
);
const performViewFieldAPIDestroy = useCallback(
async (
- destroyCoreViewFieldInputs: DestroyCoreViewFieldMutationVariables[],
+ destroyViewFieldInputs: DestroyViewFieldMutationVariables[],
): Promise<
MetadataRequestResult<
- Awaited<ReturnType<typeof destroyCoreViewFieldMutation>>[]
+ Awaited<ReturnType<typeof destroyViewFieldMutation>>[]
>
> => {
- if (destroyCoreViewFieldInputs.length === 0) {
+ if (destroyViewFieldInputs.length === 0) {
return {
status: 'successful',
response: [],
@@ -196,8 +186,8 @@ export const usePerformViewFieldAPIPersist = () => {
try {
const results = await Promise.all(
- destroyCoreViewFieldInputs.map((variables) =>
- destroyCoreViewFieldMutation({
+ destroyViewFieldInputs.map((variables) =>
+ destroyViewFieldMutation({
variables,
}),
),
@@ -223,7 +213,7 @@ export const usePerformViewFieldAPIPersist = () => {
};
}
},
- [destroyCoreViewFieldMutation, handleMetadataError, enqueueErrorSnackBar],
+ [destroyViewFieldMutation, handleMetadataError, enqueueErrorSnackBar],
);
return {
diff --git a/packages/twenty-front/src/modules/views/hooks/internal/usePerformViewFieldGroupAPIPersist.ts b/packages/twenty-front/src/modules/views/hooks/internal/usePerformViewFieldGroupAPIPersist.ts
index 48e0a31ca44..4ff0c0d5db5 100644
--- a/packages/twenty-front/src/modules/views/hooks/internal/usePerformViewFieldGroupAPIPersist.ts
+++ b/packages/twenty-front/src/modules/views/hooks/internal/usePerformViewFieldGroupAPIPersist.ts
@@ -3,59 +3,59 @@ import { useCallback } from 'react';
import { useMetadataErrorHandler } from '@/metadata-error-handler/hooks/useMetadataErrorHandler';
import { type MetadataRequestResult } from '@/object-metadata/types/MetadataRequestResult.type';
import { useSnackBar } from '@/ui/feedback/snack-bar-manager/hooks/useSnackBar';
-import { CREATE_MANY_CORE_VIEW_FIELD_GROUPS } from '@/views/graphql/mutations/createManyCoreViewFieldGroups';
-import { DELETE_CORE_VIEW_FIELD_GROUP } from '@/views/graphql/mutations/deleteCoreViewFieldGroup';
-import { UPDATE_CORE_VIEW_FIELD_GROUP } from '@/views/graphql/mutations/updateCoreViewFieldGroup';
+import { CREATE_MANY_VIEW_FIELD_GROUPS } from '@/views/graphql/mutations/createManyViewFieldGroups';
+import { DELETE_VIEW_FIELD_GROUP } from '@/views/graphql/mutations/deleteViewFieldGroup';
+import { UPDATE_VIEW_FIELD_GROUP } from '@/views/graphql/mutations/updateViewFieldGroup';
import { useMutation } from '@apollo/client/react';
import { CombinedGraphQLErrors } from '@apollo/client/errors';
import { t } from '@lingui/core/macro';
import { CrudOperationType } from 'twenty-shared/types';
import { isDefined } from 'twenty-shared/utils';
import {
- type CoreViewFieldGroup,
- type MutationCreateManyCoreViewFieldGroupsArgs,
- type MutationDeleteCoreViewFieldGroupArgs,
- type MutationUpdateCoreViewFieldGroupArgs,
+ type ViewFieldGroup,
+ type MutationCreateManyViewFieldGroupsArgs,
+ type MutationDeleteViewFieldGroupArgs,
+ type MutationUpdateViewFieldGroupArgs,
} from '~/generated-metadata/graphql';
-type CreateManyCoreViewFieldGroupsMutationResult = {
- createManyCoreViewFieldGroups: CoreViewFieldGroup[];
+type CreateManyViewFieldGroupsMutationResult = {
+ createManyViewFieldGroups: ViewFieldGroup[];
};
-type UpdateCoreViewFieldGroupMutationResult = {
- updateCoreViewFieldGroup: CoreViewFieldGroup;
+type UpdateViewFieldGroupMutationResult = {
+ updateViewFieldGroup: ViewFieldGroup;
};
-type DeleteCoreViewFieldGroupMutationResult = {
- deleteCoreViewFieldGroup: CoreViewFieldGroup;
+type DeleteViewFieldGroupMutationResult = {
+ deleteViewFieldGroup: ViewFieldGroup;
};
export const usePerformViewFieldGroupAPIPersist = () => {
- const [createManyCoreViewFieldGroupsMutation] = useMutation<
- CreateManyCoreViewFieldGroupsMutationResult,
- MutationCreateManyCoreViewFieldGroupsArgs
- >(CREATE_MANY_CORE_VIEW_FIELD_GROUPS);
- const [updateCoreViewFieldGroupMutation] = useMutation<
- UpdateCoreViewFieldGroupMutationResult,
- MutationUpdateCoreViewFieldGroupArgs
- >(UPDATE_CORE_VIEW_FIELD_GROUP);
- const [deleteCoreViewFieldGroupMutation] = useMutation<
- DeleteCoreViewFieldGroupMutationResult,
- MutationDeleteCoreViewFieldGroupArgs
- >(DELETE_CORE_VIEW_FIELD_GROUP);
+ const [createManyViewFieldGroupsMutation] = useMutation<
+ CreateManyViewFieldGroupsMutationResult,
+ MutationCreateManyViewFieldGroupsArgs
+ >(CREATE_MANY_VIEW_FIELD_GROUPS);
+ const [updateViewFieldGroupMutation] = useMutation<
+ UpdateViewFieldGroupMutationResult,
+ MutationUpdateViewFieldGroupArgs
+ >(UPDATE_VIEW_FIELD_GROUP);
+ const [deleteViewFieldGroupMutation] = useMutation<
+ DeleteViewFieldGroupMutationResult,
+ MutationDeleteViewFieldGroupArgs
+ >(DELETE_VIEW_FIELD_GROUP);
const { handleMetadataError } = useMetadataErrorHandler();
const { enqueueErrorSnackBar } = useSnackBar();
const performViewFieldGroupAPICreate = useCallback(
async (
- createCoreViewFieldGroupInputs: MutationCreateManyCoreViewFieldGroupsArgs,
+ createViewFieldGroupInputs: MutationCreateManyViewFieldGroupsArgs,
): Promise<
- MetadataRequestResult<CreateManyCoreViewFieldGroupsMutationResult | null>
+ MetadataRequestResult<CreateManyViewFieldGroupsMutationResult | null>
> => {
if (
- !Array.isArray(createCoreViewFieldGroupInputs.inputs) ||
- createCoreViewFieldGroupInputs.inputs.length === 0
+ !Array.isArray(createViewFieldGroupInputs.inputs) ||
+ createViewFieldGroupInputs.inputs.length === 0
) {
return {
status: 'successful',
@@ -64,8 +64,8 @@ export const usePerformViewFieldGroupAPIPersist = () => {
}
try {
- const result = await createManyCoreViewFieldGroupsMutation({
- variables: createCoreViewFieldGroupInputs,
+ const result = await createManyViewFieldGroupsMutation({
+ variables: createViewFieldGroupInputs,
});
return {
@@ -89,7 +89,7 @@ export const usePerformViewFieldGroupAPIPersist = () => {
}
},
[
- createManyCoreViewFieldGroupsMutation,
+ createManyViewFieldGroupsMutation,
handleMetadataError,
enqueueErrorSnackBar,
],
@@ -97,11 +97,11 @@ export const usePerformViewFieldGroupAPIPersist = () => {
const performViewFieldGroupAPIUpdate = useCallback(
async (
- updateCoreViewFieldGroupInputs: MutationUpdateCoreViewFieldGroupArgs[],
+ updateViewFieldGroupInputs: MutationUpdateViewFieldGroupArgs[],
): Promise<
- MetadataRequestResult<UpdateCoreViewFieldGroupMutationResult[] | null>
+ MetadataRequestResult<UpdateViewFieldGroupMutationResult[] | null>
> => {
- if (updateCoreViewFieldGroupInputs.length === 0) {
+ if (updateViewFieldGroupInputs.length === 0) {
return {
status: 'successful',
response: [],
@@ -110,8 +110,8 @@ export const usePerformViewFieldGroupAPIPersist = () => {
try {
const results = await Promise.all(
- updateCoreViewFieldGroupInputs.map((variables) =>
- updateCoreViewFieldGroupMutation({
+ updateViewFieldGroupInputs.map((variables) =>
+ updateViewFieldGroupMutation({
variables,
}),
),
@@ -121,7 +121,7 @@ export const usePerformViewFieldGroupAPIPersist = () => {
status: 'successful',
response: results
.map((r) => r.data)
- .filter(isDefined) as UpdateCoreViewFieldGroupMutationResult[],
+ .filter(isDefined) as UpdateViewFieldGroupMutationResult[],
};
} catch (error) {
if (CombinedGraphQLErrors.is(error)) {
@@ -139,20 +139,16 @@ export const usePerformViewFieldGroupAPIPersist = () => {
};
}
},
- [
- updateCoreViewFieldGroupMutation,
- handleMetadataError,
- enqueueErrorSnackBar,
- ],
+ [updateViewFieldGroupMutation, handleMetadataError, enqueueErrorSnackBar],
);
const performViewFieldGroupAPIDelete = useCallback(
async (
- deleteCoreViewFieldGroupInputs: MutationDeleteCoreViewFieldGroupArgs[],
+ deleteViewFieldGroupInputs: MutationDeleteViewFieldGroupArgs[],
): Promise<
- MetadataRequestResult<DeleteCoreViewFieldGroupMutationResult[] | null>
+ MetadataRequestResult<DeleteViewFieldGroupMutationResult[] | null>
> => {
- if (deleteCoreViewFieldGroupInputs.length === 0) {
+ if (deleteViewFieldGroupInputs.length === 0) {
return {
status: 'successful',
response: [],
@@ -161,8 +157,8 @@ export const usePerformViewFieldGroupAPIPersist = () => {
try {
const results = await Promise.all(
- deleteCoreViewFieldGroupInputs.map((variables) =>
- deleteCoreViewFieldGroupMutation({
+ deleteViewFieldGroupInputs.map((variables) =>
+ deleteViewFieldGroupMutation({
variables,
}),
),
@@ -172,7 +168,7 @@ export const usePerformViewFieldGroupAPIPersist = () => {
status: 'successful',
response: results
.map((r) => r.data)
- .filter(isDefined) as DeleteCoreViewFieldGroupMutationResult[],
+ .filter(isDefined) as DeleteViewFieldGroupMutationResult[],
};
} catch (error) {
if (CombinedGraphQLErrors.is(error)) {
@@ -190,11 +186,7 @@ export const usePerformViewFieldGroupAPIPersist = () => {
};
}
},
- [
- deleteCoreViewFieldGroupMutation,
- handleMetadataError,
- enqueueErrorSnackBar,
- ],
+ [deleteViewFieldGroupMutation, handleMetadataError, enqueueErrorSnackBar],
);
return {
diff --git a/packages/twenty-front/src/modules/views/hooks/internal/usePerformViewFilterAPIPersist.ts b/packages/twenty-front/src/modules/views/hooks/internal/usePerformViewFilterAPIPersist.ts
index 1b4acd5d81d..e911ed53ec0 100644
--- a/packages/twenty-front/src/modules/views/hooks/internal/usePerformViewFilterAPIPersist.ts
+++ b/packages/twenty-front/src/modules/views/hooks/internal/usePerformViewFilterAPIPersist.ts
@@ -8,42 +8,34 @@ import { t } from '@lingui/core/macro';
import { CrudOperationType } from 'twenty-shared/types';
import { useMutation } from '@apollo/client/react';
import {
- type CreateCoreViewFilterMutationVariables,
- type DeleteCoreViewFilterMutationVariables,
- type DestroyCoreViewFilterMutationVariables,
- type UpdateCoreViewFilterMutationVariables,
- CreateCoreViewFilterDocument,
- DeleteCoreViewFilterDocument,
- DestroyCoreViewFilterDocument,
- UpdateCoreViewFilterDocument,
+ type CreateViewFilterMutationVariables,
+ type DeleteViewFilterMutationVariables,
+ type DestroyViewFilterMutationVariables,
+ type UpdateViewFilterMutationVariables,
+ CreateViewFilterDocument,
+ DeleteViewFilterDocument,
+ DestroyViewFilterDocument,
+ UpdateViewFilterDocument,
} from '~/generated-metadata/graphql';
export const usePerformViewFilterAPIPersist = () => {
- const [createCoreViewFilterMutation] = useMutation(
- CreateCoreViewFilterDocument,
- );
- const [updateCoreViewFilterMutation] = useMutation(
- UpdateCoreViewFilterDocument,
- );
- const [deleteCoreViewFilterMutation] = useMutation(
- DeleteCoreViewFilterDocument,
- );
- const [destroyCoreViewFilterMutation] = useMutation(
- DestroyCoreViewFilterDocument,
- );
+ const [createViewFilterMutation] = useMutation(CreateViewFilterDocument);
+ const [updateViewFilterMutation] = useMutation(UpdateViewFilterDocument);
+ const [deleteViewFilterMutation] = useMutation(DeleteViewFilterDocument);
+ const [destroyViewFilterMutation] = useMutation(DestroyViewFilterDocument);
const { handleMetadataError } = useMetadataErrorHandler();
const { enqueueErrorSnackBar } = useSnackBar();
const performViewFilterAPICreate = useCallback(
async (
- createCoreViewFilterInputs: CreateCoreViewFilterMutationVariables[],
+ createViewFilterInputs: CreateViewFilterMutationVariables[],
): Promise<
MetadataRequestResult<
- Awaited<ReturnType<typeof createCoreViewFilterMutation>>[]
+ Awaited<ReturnType<typeof createViewFilterMutation>>[]
>
> => {
- if (createCoreViewFilterInputs.length === 0) {
+ if (createViewFilterInputs.length === 0) {
return {
status: 'successful',
response: [],
@@ -52,8 +44,8 @@ export const usePerformViewFilterAPIPersist = () => {
try {
const results = await Promise.all(
- createCoreViewFilterInputs.map((variables) =>
- createCoreViewFilterMutation({
+ createViewFilterInputs.map((variables) =>
+ createViewFilterMutation({
variables,
}),
),
@@ -79,18 +71,18 @@ export const usePerformViewFilterAPIPersist = () => {
};
}
},
- [createCoreViewFilterMutation, handleMetadataError, enqueueErrorSnackBar],
+ [createViewFilterMutation, handleMetadataError, enqueueErrorSnackBar],
);
const performViewFilterAPIUpdate = useCallback(
async (
- updateCoreViewFilterInputs: UpdateCoreViewFilterMutationVariables[],
+ updateViewFilterInputs: UpdateViewFilterMutationVariables[],
): Promise<
MetadataRequestResult<
- Awaited<ReturnType<typeof updateCoreViewFilterMutation>>[]
+ Awaited<ReturnType<typeof updateViewFilterMutation>>[]
>
> => {
- if (updateCoreViewFilterInputs.length === 0) {
+ if (updateViewFilterInputs.length === 0) {
return {
status: 'successful',
response: [],
@@ -99,8 +91,8 @@ export const usePerformViewFilterAPIPersist = () => {
try {
const results = await Promise.all(
- updateCoreViewFilterInputs.map((variables) =>
- updateCoreViewFilterMutation({
+ updateViewFilterInputs.map((variables) =>
+ updateViewFilterMutation({
variables,
}),
),
@@ -126,18 +118,18 @@ export const usePerformViewFilterAPIPersist = () => {
};
}
},
- [updateCoreViewFilterMutation, handleMetadataError, enqueueErrorSnackBar],
+ [updateViewFilterMutation, handleMetadataError, enqueueErrorSnackBar],
);
const performViewFilterAPIDelete = useCallback(
async (
- deleteCoreViewFilterInputs: DeleteCoreViewFilterMutationVariables[],
+ deleteViewFilterInputs: DeleteViewFilterMutationVariables[],
): Promise<
MetadataRequestResult<
- Awaited<ReturnType<typeof deleteCoreViewFilterMutation>>[]
+ Awaited<ReturnType<typeof deleteViewFilterMutation>>[]
>
> => {
- if (deleteCoreViewFilterInputs.length === 0) {
+ if (deleteViewFilterInputs.length === 0) {
return {
status: 'successful',
response: [],
@@ -146,8 +138,8 @@ export const usePerformViewFilterAPIPersist = () => {
try {
const results = await Promise.all(
- deleteCoreViewFilterInputs.map((variables) =>
- deleteCoreViewFilterMutation({
+ deleteViewFilterInputs.map((variables) =>
+ deleteViewFilterMutation({
variables,
}),
),
@@ -173,18 +165,18 @@ export const usePerformViewFilterAPIPersist = () => {
};
}
},
- [deleteCoreViewFilterMutation, handleMetadataError, enqueueErrorSnackBar],
+ [deleteViewFilterMutation, handleMetadataError, enqueueErrorSnackBar],
);
const performViewFilterAPIDestroy = useCallback(
async (
- destroyCoreViewFilterInputs: DestroyCoreViewFilterMutationVariables[],
+ destroyViewFilterInputs: DestroyViewFilterMutationVariables[],
): Promise<
MetadataRequestResult<
- Awaited<ReturnType<typeof destroyCoreViewFilterMutation>>[]
+ Awaited<ReturnType<typeof destroyViewFilterMutation>>[]
>
> => {
- if (destroyCoreViewFilterInputs.length === 0) {
+ if (destroyViewFilterInputs.length === 0) {
return {
status: 'successful',
response: [],
@@ -193,8 +185,8 @@ export const usePerformViewFilterAPIPersist = () => {
try {
const results = await Promise.all(
- destroyCoreViewFilterInputs.map((variables) =>
- destroyCoreViewFilterMutation({
+ destroyViewFilterInputs.map((variables) =>
+ destroyViewFilterMutation({
variables,
}),
),
@@ -220,7 +212,7 @@ export const usePerformViewFilterAPIPersist = () => {
};
}
},
- [destroyCoreViewFilterMutation, handleMetadataError, enqueueErrorSnackBar],
+ [destroyViewFilterMutation, handleMetadataError, enqueueErrorSnackBar],
);
return {
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 35e58652891..92d8f7736dc 100644
--- a/packages/twenty-front/src/modules/views/hooks/internal/usePerformViewFilterGroupAPIPersist.ts
+++ b/packages/twenty-front/src/modules/views/hooks/internal/usePerformViewFilterGroupAPIPersist.ts
@@ -1,23 +1,23 @@
import { useCallback } from 'react';
-import { CREATE_CORE_VIEW_FILTER_GROUP } from '@/views/graphql/mutations/createCoreViewFilterGroup';
-import { DESTROY_CORE_VIEW_FILTER_GROUP } from '@/views/graphql/mutations/destroyCoreViewFilterGroup';
-import { UPDATE_CORE_VIEW_FILTER_GROUP } from '@/views/graphql/mutations/updateCoreViewFilterGroup';
+import { CREATE_VIEW_FILTER_GROUP } from '@/views/graphql/mutations/createViewFilterGroup';
+import { DESTROY_VIEW_FILTER_GROUP } from '@/views/graphql/mutations/destroyViewFilterGroup';
+import { UPDATE_VIEW_FILTER_GROUP } from '@/views/graphql/mutations/updateViewFilterGroup';
import { type GraphQLView } from '@/views/types/GraphQLView';
import { type ViewFilterGroup } from '@/views/types/ViewFilterGroup';
import { useApolloClient } from '@apollo/client/react';
import { isDefined } from 'twenty-shared/utils';
-import { type CoreViewFilterGroup } from '~/generated-metadata/graphql';
+import { type ViewFilterGroup as GqlViewFilterGroup } from '~/generated-metadata/graphql';
export const usePerformViewFilterGroupAPIPersist = () => {
const apolloClient = useApolloClient();
- const createCoreViewFilterGroupRecord = useCallback(
+ const createViewFilterGroupRecord = useCallback(
async (viewFilterGroup: ViewFilterGroup, view: Pick<GraphQLView, 'id'>) => {
const result = await apolloClient.mutate<{
- createCoreViewFilterGroup: ViewFilterGroup;
+ createViewFilterGroup: ViewFilterGroup;
}>({
- mutation: CREATE_CORE_VIEW_FILTER_GROUP,
+ mutation: CREATE_VIEW_FILTER_GROUP,
variables: {
input: {
id: viewFilterGroup.id,
@@ -26,15 +26,15 @@ export const usePerformViewFilterGroupAPIPersist = () => {
logicalOperator: viewFilterGroup.logicalOperator,
positionInViewFilterGroup:
viewFilterGroup.positionInViewFilterGroup,
- } satisfies Partial<CoreViewFilterGroup>,
+ } satisfies Partial<GqlViewFilterGroup>,
},
});
if (!result.data) {
- throw new Error('Failed to create core view filter group');
+ throw new Error('Failed to create view filter group');
}
- return { newRecordId: result.data.createCoreViewFilterGroup.id };
+ return { newRecordId: result.data.createViewFilterGroup.id };
},
[apolloClient],
);
@@ -56,7 +56,7 @@ export const usePerformViewFilterGroupAPIPersist = () => {
viewFilterGroupToCreate.parentViewFilterGroupId)
: undefined;
- const { newRecordId } = await createCoreViewFilterGroupRecord(
+ const { newRecordId } = await createViewFilterGroupRecord(
{
...viewFilterGroupToCreate,
parentViewFilterGroupId: newParentViewFilterGroupId,
@@ -70,14 +70,14 @@ export const usePerformViewFilterGroupAPIPersist = () => {
const newRecordIds = viewFilterGroupsToCreate.map((viewFilterGroup) => {
const newId = oldToNewId.get(viewFilterGroup.id);
if (!newId) {
- throw new Error('Failed to create core view filter group');
+ throw new Error('Failed to create view filter group');
}
return newId;
});
return newRecordIds;
},
- [createCoreViewFilterGroupRecord],
+ [createViewFilterGroupRecord],
);
const performViewFilterGroupAPIUpdate = useCallback(
@@ -85,8 +85,8 @@ export const usePerformViewFilterGroupAPIPersist = () => {
if (!viewFilterGroupsToUpdate.length) return;
return Promise.all(
viewFilterGroupsToUpdate.map((viewFilterGroup) =>
- apolloClient.mutate<{ updateCoreViewFilterGroup: ViewFilterGroup }>({
- mutation: UPDATE_CORE_VIEW_FILTER_GROUP,
+ apolloClient.mutate<{ updateViewFilterGroup: ViewFilterGroup }>({
+ mutation: UPDATE_VIEW_FILTER_GROUP,
variables: {
id: viewFilterGroup.id,
input: {
@@ -95,7 +95,7 @@ export const usePerformViewFilterGroupAPIPersist = () => {
logicalOperator: viewFilterGroup.logicalOperator,
positionInViewFilterGroup:
viewFilterGroup.positionInViewFilterGroup,
- } satisfies Partial<CoreViewFilterGroup>,
+ } satisfies Partial<GqlViewFilterGroup>,
},
}),
),
@@ -109,8 +109,8 @@ export const usePerformViewFilterGroupAPIPersist = () => {
if (!viewFilterGroupIdsToDelete.length) return;
return Promise.all(
viewFilterGroupIdsToDelete.map((viewFilterGroupId) =>
- apolloClient.mutate<{ destroyCoreViewFilterGroup: ViewFilterGroup }>({
- mutation: DESTROY_CORE_VIEW_FILTER_GROUP,
+ apolloClient.mutate<{ destroyViewFilterGroup: ViewFilterGroup }>({
+ mutation: DESTROY_VIEW_FILTER_GROUP,
variables: {
id: viewFilterGroupId,
},
diff --git a/packages/twenty-front/src/modules/views/hooks/internal/usePerformViewGroupAPIPersist.ts b/packages/twenty-front/src/modules/views/hooks/internal/usePerformViewGroupAPIPersist.ts
index c963e8582ff..ad366f45a66 100644
--- a/packages/twenty-front/src/modules/views/hooks/internal/usePerformViewGroupAPIPersist.ts
+++ b/packages/twenty-front/src/modules/views/hooks/internal/usePerformViewGroupAPIPersist.ts
@@ -8,27 +8,25 @@ import { t } from '@lingui/core/macro';
import { CrudOperationType } from 'twenty-shared/types';
import { useMutation } from '@apollo/client/react';
import {
- type UpdateCoreViewGroupMutationVariables,
- UpdateCoreViewGroupDocument,
+ type UpdateViewGroupMutationVariables,
+ UpdateViewGroupDocument,
} from '~/generated-metadata/graphql';
export const usePerformViewGroupAPIPersist = () => {
- const [updateCoreViewGroupMutation] = useMutation(
- UpdateCoreViewGroupDocument,
- );
+ const [updateViewGroupMutation] = useMutation(UpdateViewGroupDocument);
const { handleMetadataError } = useMetadataErrorHandler();
const { enqueueErrorSnackBar } = useSnackBar();
const performViewGroupAPIUpdate = useCallback(
async (
- updateCoreViewGroupInputs: UpdateCoreViewGroupMutationVariables[],
+ updateViewGroupInputs: UpdateViewGroupMutationVariables[],
): Promise<
MetadataRequestResult<
- Awaited<ReturnType<typeof updateCoreViewGroupMutation>>[]
+ Awaited<ReturnType<typeof updateViewGroupMutation>>[]
>
> => {
- if (updateCoreViewGroupInputs.length === 0) {
+ if (updateViewGroupInputs.length === 0) {
return {
status: 'successful',
response: [],
@@ -37,8 +35,8 @@ export const usePerformViewGroupAPIPersist = () => {
try {
const results = await Promise.all(
- updateCoreViewGroupInputs.map((variables) =>
- updateCoreViewGroupMutation({
+ updateViewGroupInputs.map((variables) =>
+ updateViewGroupMutation({
variables,
}),
),
@@ -64,7 +62,7 @@ export const usePerformViewGroupAPIPersist = () => {
};
}
},
- [updateCoreViewGroupMutation, handleMetadataError, enqueueErrorSnackBar],
+ [updateViewGroupMutation, handleMetadataError, enqueueErrorSnackBar],
);
return {
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 d402c306791..71344dae966 100644
--- a/packages/twenty-front/src/modules/views/hooks/internal/usePerformViewSortAPIPersist.ts
+++ b/packages/twenty-front/src/modules/views/hooks/internal/usePerformViewSortAPIPersist.ts
@@ -8,36 +8,34 @@ import { t } from '@lingui/core/macro';
import { CrudOperationType } from 'twenty-shared/types';
import { useMutation } from '@apollo/client/react';
import {
- type CreateCoreViewSortMutationVariables,
- type DeleteCoreViewSortMutationVariables,
- type DestroyCoreViewSortMutationVariables,
- type UpdateCoreViewSortMutationVariables,
- CreateCoreViewSortDocument,
- DeleteCoreViewSortDocument,
- DestroyCoreViewSortDocument,
- UpdateCoreViewSortDocument,
+ type CreateViewSortMutationVariables,
+ type DeleteViewSortMutationVariables,
+ type DestroyViewSortMutationVariables,
+ type UpdateViewSortMutationVariables,
+ CreateViewSortDocument,
+ DeleteViewSortDocument,
+ DestroyViewSortDocument,
+ UpdateViewSortDocument,
} from '~/generated-metadata/graphql';
export const usePerformViewSortAPIPersist = () => {
- const [createCoreViewSortMutation] = useMutation(CreateCoreViewSortDocument);
- const [updateCoreViewSortMutation] = useMutation(UpdateCoreViewSortDocument);
- const [deleteCoreViewSortMutation] = useMutation(DeleteCoreViewSortDocument);
- const [destroyCoreViewSortMutation] = useMutation(
- DestroyCoreViewSortDocument,
- );
+ const [createViewSortMutation] = useMutation(CreateViewSortDocument);
+ const [updateViewSortMutation] = useMutation(UpdateViewSortDocument);
+ const [deleteViewSortMutation] = useMutation(DeleteViewSortDocument);
+ const [destroyViewSortMutation] = useMutation(DestroyViewSortDocument);
const { handleMetadataError } = useMetadataErrorHandler();
const { enqueueErrorSnackBar } = useSnackBar();
const performViewSortAPICreate = useCallback(
async (
- createCoreViewSortInputs: CreateCoreViewSortMutationVariables[],
+ createViewSortInputs: CreateViewSortMutationVariables[],
): Promise<
MetadataRequestResult<
- Awaited<ReturnType<typeof createCoreViewSortMutation>>[]
+ Awaited<ReturnType<typeof createViewSortMutation>>[]
>
> => {
- if (createCoreViewSortInputs.length === 0) {
+ if (createViewSortInputs.length === 0) {
return {
status: 'successful',
response: [],
@@ -46,8 +44,8 @@ export const usePerformViewSortAPIPersist = () => {
try {
const results = await Promise.all(
- createCoreViewSortInputs.map((variables) =>
- createCoreViewSortMutation({
+ createViewSortInputs.map((variables) =>
+ createViewSortMutation({
variables,
}),
),
@@ -72,18 +70,18 @@ export const usePerformViewSortAPIPersist = () => {
};
}
},
- [createCoreViewSortMutation, handleMetadataError, enqueueErrorSnackBar],
+ [createViewSortMutation, handleMetadataError, enqueueErrorSnackBar],
);
const performViewSortAPIUpdate = useCallback(
async (
- updateCoreViewSortInputs: UpdateCoreViewSortMutationVariables[],
+ updateViewSortInputs: UpdateViewSortMutationVariables[],
): Promise<
MetadataRequestResult<
- Awaited<ReturnType<typeof updateCoreViewSortMutation>>[]
+ Awaited<ReturnType<typeof updateViewSortMutation>>[]
>
> => {
- if (updateCoreViewSortInputs.length === 0) {
+ if (updateViewSortInputs.length === 0) {
return {
status: 'successful',
response: [],
@@ -92,8 +90,8 @@ export const usePerformViewSortAPIPersist = () => {
try {
const results = await Promise.all(
- updateCoreViewSortInputs.map((variables) =>
- updateCoreViewSortMutation({
+ updateViewSortInputs.map((variables) =>
+ updateViewSortMutation({
variables,
}),
),
@@ -119,18 +117,18 @@ export const usePerformViewSortAPIPersist = () => {
};
}
},
- [updateCoreViewSortMutation, handleMetadataError, enqueueErrorSnackBar],
+ [updateViewSortMutation, handleMetadataError, enqueueErrorSnackBar],
);
const performViewSortAPIDelete = useCallback(
async (
- deleteCoreViewSortInputs: DeleteCoreViewSortMutationVariables[],
+ deleteViewSortInputs: DeleteViewSortMutationVariables[],
): Promise<
MetadataRequestResult<
- Awaited<ReturnType<typeof deleteCoreViewSortMutation>>[]
+ Awaited<ReturnType<typeof deleteViewSortMutation>>[]
>
> => {
- if (deleteCoreViewSortInputs.length === 0) {
+ if (deleteViewSortInputs.length === 0) {
return {
status: 'successful',
response: [],
@@ -139,8 +137,8 @@ export const usePerformViewSortAPIPersist = () => {
try {
const results = await Promise.all(
- deleteCoreViewSortInputs.map((variables) =>
- deleteCoreViewSortMutation({
+ deleteViewSortInputs.map((variables) =>
+ deleteViewSortMutation({
variables,
}),
),
@@ -166,18 +164,18 @@ export const usePerformViewSortAPIPersist = () => {
};
}
},
- [deleteCoreViewSortMutation, handleMetadataError, enqueueErrorSnackBar],
+ [deleteViewSortMutation, handleMetadataError, enqueueErrorSnackBar],
);
const performViewSortAPIDestroy = useCallback(
async (
- destroyCoreViewSortInputs: DestroyCoreViewSortMutationVariables[],
+ destroyViewSortInputs: DestroyViewSortMutationVariables[],
): Promise<
MetadataRequestResult<
- Awaited<ReturnType<typeof destroyCoreViewSortMutation>>[]
+ Awaited<ReturnType<typeof destroyViewSortMutation>>[]
>
> => {
- if (destroyCoreViewSortInputs.length === 0) {
+ if (destroyViewSortInputs.length === 0) {
return {
status: 'successful',
response: [],
@@ -186,8 +184,8 @@ export const usePerformViewSortAPIPersist = () => {
try {
const results = await Promise.all(
- destroyCoreViewSortInputs.map((variables) =>
- destroyCoreViewSortMutation({
+ destroyViewSortInputs.map((variables) =>
+ destroyViewSortMutation({
variables,
}),
),
@@ -213,7 +211,7 @@ export const usePerformViewSortAPIPersist = () => {
};
}
},
- [destroyCoreViewSortMutation, handleMetadataError, enqueueErrorSnackBar],
+ [destroyViewSortMutation, handleMetadataError, enqueueErrorSnackBar],
);
return {
diff --git a/packages/twenty-front/src/modules/views/hooks/useApplyCurrentViewAnyFieldFilterToAnyFieldFilter.ts b/packages/twenty-front/src/modules/views/hooks/useApplyCurrentViewAnyFieldFilterToAnyFieldFilter.ts
index 3f4c609d8b4..144d73e7a90 100644
--- a/packages/twenty-front/src/modules/views/hooks/useApplyCurrentViewAnyFieldFilterToAnyFieldFilter.ts
+++ b/packages/twenty-front/src/modules/views/hooks/useApplyCurrentViewAnyFieldFilterToAnyFieldFilter.ts
@@ -2,7 +2,7 @@ import { contextStoreCurrentViewIdComponentState } from '@/context-store/states/
import { anyFieldFilterValueComponentState } from '@/object-record/record-filter/states/anyFieldFilterValueComponentState';
import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';
import { useSetAtomComponentState } from '@/ui/utilities/state/jotai/hooks/useSetAtomComponentState';
-import { coreViewFromViewIdFamilySelector } from '@/views/states/selectors/coreViewFromViewIdFamilySelector';
+import { viewFromViewIdFamilySelector } from '@/views/states/selectors/viewFromViewIdFamilySelector';
import { useStore } from 'jotai';
import { useCallback } from 'react';
import { isDefined } from 'twenty-shared/utils';
@@ -20,7 +20,7 @@ export const useApplyCurrentViewAnyFieldFilterToAnyFieldFilter = () => {
const applyCurrentViewAnyFieldFilterToAnyFieldFilter = useCallback(() => {
const currentView = store.get(
- coreViewFromViewIdFamilySelector.selectorFamily({
+ viewFromViewIdFamilySelector.selectorFamily({
viewId: contextStoreCurrentViewId ?? '',
}),
);
diff --git a/packages/twenty-front/src/modules/views/hooks/useApplyCurrentViewFilterGroupsToCurrentRecordFilterGroups.ts b/packages/twenty-front/src/modules/views/hooks/useApplyCurrentViewFilterGroupsToCurrentRecordFilterGroups.ts
index 09a74126ff2..91c6ebc0ae4 100644
--- a/packages/twenty-front/src/modules/views/hooks/useApplyCurrentViewFilterGroupsToCurrentRecordFilterGroups.ts
+++ b/packages/twenty-front/src/modules/views/hooks/useApplyCurrentViewFilterGroupsToCurrentRecordFilterGroups.ts
@@ -3,7 +3,7 @@ import { currentRecordFilterGroupsComponentState } from '@/object-record/record-
import { useAtomComponentStateCallbackState } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateCallbackState';
import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';
import { useSetAtomComponentState } from '@/ui/utilities/state/jotai/hooks/useSetAtomComponentState';
-import { coreViewFromViewIdFamilySelector } from '@/views/states/selectors/coreViewFromViewIdFamilySelector';
+import { viewFromViewIdFamilySelector } from '@/views/states/selectors/viewFromViewIdFamilySelector';
import { mapViewFilterGroupsToRecordFilterGroups } from '@/views/utils/mapViewFilterGroupsToRecordFilterGroups';
import { useStore } from 'jotai';
import { useCallback } from 'react';
@@ -29,7 +29,7 @@ export const useApplyCurrentViewFilterGroupsToCurrentRecordFilterGroups =
const applyCurrentViewFilterGroupsToCurrentRecordFilterGroups =
useCallback(() => {
const currentView = store.get(
- coreViewFromViewIdFamilySelector.selectorFamily({
+ viewFromViewIdFamilySelector.selectorFamily({
viewId: contextStoreCurrentViewId ?? '',
}),
);
diff --git a/packages/twenty-front/src/modules/views/hooks/useApplyCurrentViewFiltersToCurrentRecordFilters.ts b/packages/twenty-front/src/modules/views/hooks/useApplyCurrentViewFiltersToCurrentRecordFilters.ts
index 080112a4729..14df292d106 100644
--- a/packages/twenty-front/src/modules/views/hooks/useApplyCurrentViewFiltersToCurrentRecordFilters.ts
+++ b/packages/twenty-front/src/modules/views/hooks/useApplyCurrentViewFiltersToCurrentRecordFilters.ts
@@ -2,7 +2,7 @@ import { contextStoreCurrentViewIdComponentState } from '@/context-store/states/
import { currentRecordFiltersComponentState } from '@/object-record/record-filter/states/currentRecordFiltersComponentState';
import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';
import { useSetAtomComponentState } from '@/ui/utilities/state/jotai/hooks/useSetAtomComponentState';
-import { coreViewFromViewIdFamilySelector } from '@/views/states/selectors/coreViewFromViewIdFamilySelector';
+import { viewFromViewIdFamilySelector } from '@/views/states/selectors/viewFromViewIdFamilySelector';
import { useStore } from 'jotai';
import { useCallback } from 'react';
import { isDefined } from 'twenty-shared/utils';
@@ -23,7 +23,7 @@ export const useApplyCurrentViewFiltersToCurrentRecordFilters = () => {
const applyCurrentViewFiltersToCurrentRecordFilters = useCallback(() => {
const currentView = store.get(
- coreViewFromViewIdFamilySelector.selectorFamily({
+ viewFromViewIdFamilySelector.selectorFamily({
viewId: contextStoreCurrentViewId ?? '',
}),
);
diff --git a/packages/twenty-front/src/modules/views/hooks/useApplyCurrentViewSortsToCurrentRecordSorts.ts b/packages/twenty-front/src/modules/views/hooks/useApplyCurrentViewSortsToCurrentRecordSorts.ts
index b76d69f9c82..50613a3bb9e 100644
--- a/packages/twenty-front/src/modules/views/hooks/useApplyCurrentViewSortsToCurrentRecordSorts.ts
+++ b/packages/twenty-front/src/modules/views/hooks/useApplyCurrentViewSortsToCurrentRecordSorts.ts
@@ -3,7 +3,7 @@ import { currentRecordSortsComponentState } from '@/object-record/record-sort/st
import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';
import { useSetAtomComponentState } from '@/ui/utilities/state/jotai/hooks/useSetAtomComponentState';
import { useAtomFamilySelectorValue } from '@/ui/utilities/state/jotai/hooks/useAtomFamilySelectorValue';
-import { coreViewFromViewIdFamilySelector } from '@/views/states/selectors/coreViewFromViewIdFamilySelector';
+import { viewFromViewIdFamilySelector } from '@/views/states/selectors/viewFromViewIdFamilySelector';
import { isDefined } from 'twenty-shared/utils';
export const useApplyCurrentViewSortsToCurrentRecordSorts = () => {
@@ -11,12 +11,9 @@ export const useApplyCurrentViewSortsToCurrentRecordSorts = () => {
contextStoreCurrentViewIdComponentState,
);
- const currentView = useAtomFamilySelectorValue(
- coreViewFromViewIdFamilySelector,
- {
- viewId: contextStoreCurrentViewId ?? '',
- },
- );
+ const currentView = useAtomFamilySelectorValue(viewFromViewIdFamilySelector, {
+ viewId: contextStoreCurrentViewId ?? '',
+ });
const setCurrentRecordSorts = useSetAtomComponentState(
currentRecordSortsComponentState,
diff --git a/packages/twenty-front/src/modules/views/hooks/useApplyViewSortsToCurrentRecordSorts.ts b/packages/twenty-front/src/modules/views/hooks/useApplyViewSortsToCurrentRecordSorts.ts
index 3d2e93f21a5..e279d77fd26 100644
--- a/packages/twenty-front/src/modules/views/hooks/useApplyViewSortsToCurrentRecordSorts.ts
+++ b/packages/twenty-front/src/modules/views/hooks/useApplyViewSortsToCurrentRecordSorts.ts
@@ -1,6 +1,6 @@
import { currentRecordSortsComponentState } from '@/object-record/record-sort/states/currentRecordSortsComponentState';
import { useSetAtomComponentState } from '@/ui/utilities/state/jotai/hooks/useSetAtomComponentState';
-import { type CoreViewSortEssential } from '@/views/types/CoreViewSortEssential';
+import { type ViewSortEssential } from '@/views/types/ViewSortEssential';
export const useApplyViewSortsToCurrentRecordSorts = () => {
const setCurrentRecordSorts = useSetAtomComponentState(
@@ -8,7 +8,7 @@ export const useApplyViewSortsToCurrentRecordSorts = () => {
);
const applyViewSortsToCurrentRecordSorts = (
- viewSorts: CoreViewSortEssential[],
+ viewSorts: ViewSortEssential[],
) => {
const recordSorts = viewSorts.map((viewSort) => {
const { viewId: _viewId, ...recordSort } = viewSort;
diff --git a/packages/twenty-front/src/modules/views/hooks/useCreateViewFromCurrentView.ts b/packages/twenty-front/src/modules/views/hooks/useCreateViewFromCurrentView.ts
index 927bf4edff5..c46b5909647 100644
--- a/packages/twenty-front/src/modules/views/hooks/useCreateViewFromCurrentView.ts
+++ b/packages/twenty-front/src/modules/views/hooks/useCreateViewFromCurrentView.ts
@@ -11,11 +11,9 @@ import { usePerformViewFieldAPIPersist } from '@/views/hooks/internal/usePerform
import { usePerformViewFilterAPIPersist } from '@/views/hooks/internal/usePerformViewFilterAPIPersist';
import { usePerformViewFilterGroupAPIPersist } from '@/views/hooks/internal/usePerformViewFilterGroupAPIPersist';
import { usePerformViewSortAPIPersist } from '@/views/hooks/internal/usePerformViewSortAPIPersist';
-import { coreViewFromViewIdFamilySelector } from '@/views/states/selectors/coreViewFromViewIdFamilySelector';
+import { viewFromViewIdFamilySelector } from '@/views/states/selectors/viewFromViewIdFamilySelector';
import { type GraphQLView } from '@/views/types/GraphQLView';
import { ViewType } from '@/views/types/ViewType';
-import { convertViewOpenRecordInToCore } from '@/views/utils/convertViewOpenRecordInToCore';
-import { convertViewTypeToCore } from '@/views/utils/convertViewTypeToCore';
import { duplicateViewFiltersAndViewFilterGroups } from '@/views/utils/duplicateViewFiltersAndViewFilterGroups';
import { mapRecordFilterGroupToViewFilterGroup } from '@/views/utils/mapRecordFilterGroupToViewFilterGroup';
import { mapRecordFilterToViewFilter } from '@/views/utils/mapRecordFilterToViewFilter';
@@ -99,7 +97,7 @@ export const useCreateViewFromCurrentView = (viewBarComponentId?: string) => {
}
const sourceView = store.get(
- coreViewFromViewIdFamilySelector.selectorFamily({
+ viewFromViewIdFamilySelector.selectorFamily({
viewId: existingCurrentViewId,
}),
);
@@ -127,18 +125,16 @@ export const useCreateViewFromCurrentView = (viewBarComponentId?: string) => {
mainGroupByFieldMetadataId: shouldCopyFiltersAndSortsAndAggregate
? sourceView.mainGroupByFieldMetadataId
: mainGroupByFieldMetadataId,
- type: convertViewTypeToCore(viewType),
+ type: viewType,
objectMetadataId: sourceView.objectMetadataId,
- openRecordIn: convertViewOpenRecordInToCore(
- sourceView.openRecordIn,
- ),
+ openRecordIn: sourceView.openRecordIn,
anyFieldFilterValue: anyFieldFilterValue,
calendarLayout:
- viewType === ViewType.Calendar
+ viewType === ViewType.CALENDAR
? ViewCalendarLayout.MONTH
: undefined,
calendarFieldMetadataId:
- viewType === ViewType.Calendar
+ viewType === ViewType.CALENDAR
? calendarFieldMetadataId
: undefined,
visibility,
@@ -151,20 +147,23 @@ export const useCreateViewFromCurrentView = (viewBarComponentId?: string) => {
return undefined;
}
- const newViewId = result.response.data?.createCoreView.id;
+ const newViewId = result.response.data?.createView.id;
if (isUndefinedOrNull(newViewId)) {
throw new Error('Failed to create view');
}
const fieldResult = await performViewFieldAPICreate({
- inputs: sourceView.viewFields.map(
- ({ __typename, id: _id, ...viewField }) => ({
- ...viewField,
- id: v4(),
- viewId: newViewId,
- }),
- ),
+ inputs: sourceView.viewFields.map((viewField) => ({
+ id: v4(),
+ fieldMetadataId: viewField.fieldMetadataId,
+ position: viewField.position,
+ isVisible: viewField.isVisible,
+ size: viewField.size,
+ aggregateOperation: viewField.aggregateOperation,
+ viewFieldGroupId: viewField.viewFieldGroupId,
+ viewId: newViewId,
+ })),
});
if (fieldResult.status === 'failed') {
diff --git a/packages/twenty-front/src/modules/views/hooks/useGetCurrentViewOnly.ts b/packages/twenty-front/src/modules/views/hooks/useGetCurrentViewOnly.ts
index 2a4ea021a5a..24b5d08858e 100644
--- a/packages/twenty-front/src/modules/views/hooks/useGetCurrentViewOnly.ts
+++ b/packages/twenty-front/src/modules/views/hooks/useGetCurrentViewOnly.ts
@@ -1,19 +1,16 @@
import { contextStoreCurrentViewIdComponentState } from '@/context-store/states/contextStoreCurrentViewIdComponentState';
import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';
import { useAtomFamilySelectorValue } from '@/ui/utilities/state/jotai/hooks/useAtomFamilySelectorValue';
-import { coreViewFromViewIdFamilySelector } from '@/views/states/selectors/coreViewFromViewIdFamilySelector';
+import { viewFromViewIdFamilySelector } from '@/views/states/selectors/viewFromViewIdFamilySelector';
export const useGetCurrentViewOnly = () => {
const contextStoreCurrentViewId = useAtomComponentStateValue(
contextStoreCurrentViewIdComponentState,
);
- const currentView = useAtomFamilySelectorValue(
- coreViewFromViewIdFamilySelector,
- {
- viewId: contextStoreCurrentViewId ?? '',
- },
- );
+ const currentView = useAtomFamilySelectorValue(viewFromViewIdFamilySelector, {
+ viewId: contextStoreCurrentViewId ?? '',
+ });
return {
currentView,
diff --git a/packages/twenty-front/src/modules/views/hooks/useGetViewById.ts b/packages/twenty-front/src/modules/views/hooks/useGetViewById.ts
index ed43ee10490..e40341a7e2d 100644
--- a/packages/twenty-front/src/modules/views/hooks/useGetViewById.ts
+++ b/packages/twenty-front/src/modules/views/hooks/useGetViewById.ts
@@ -1,4 +1,4 @@
-import { coreViewFromViewIdFamilySelector } from '@/views/states/selectors/coreViewFromViewIdFamilySelector';
+import { viewFromViewIdFamilySelector } from '@/views/states/selectors/viewFromViewIdFamilySelector';
import { useStore } from 'jotai';
import { useCallback } from 'react';
@@ -8,7 +8,7 @@ export const useGetViewById = () => {
const getViewById = useCallback(
(viewId: string | null) => {
const view = store.get(
- coreViewFromViewIdFamilySelector.selectorFamily({
+ viewFromViewIdFamilySelector.selectorFamily({
viewId: viewId ?? '',
}),
);
diff --git a/packages/twenty-front/src/modules/views/hooks/useGetViewFromState.ts b/packages/twenty-front/src/modules/views/hooks/useGetViewFromState.ts
index 9c3c13616d8..1ab77f45eb8 100644
--- a/packages/twenty-front/src/modules/views/hooks/useGetViewFromState.ts
+++ b/packages/twenty-front/src/modules/views/hooks/useGetViewFromState.ts
@@ -1,4 +1,4 @@
-import { coreViewFromViewIdFamilySelector } from '@/views/states/selectors/coreViewFromViewIdFamilySelector';
+import { viewFromViewIdFamilySelector } from '@/views/states/selectors/viewFromViewIdFamilySelector';
import { useStore } from 'jotai';
import { useCallback } from 'react';
@@ -7,9 +7,7 @@ export const useGetViewFromState = () => {
const getViewFromState = useCallback(
(viewId: string) => {
- return store.get(
- coreViewFromViewIdFamilySelector.selectorFamily({ viewId }),
- );
+ return store.get(viewFromViewIdFamilySelector.selectorFamily({ viewId }));
},
[store],
);
diff --git a/packages/twenty-front/src/modules/views/hooks/useMapViewFiltersToFilters.ts b/packages/twenty-front/src/modules/views/hooks/useMapViewFiltersToFilters.ts
index 05d4c210906..7f4b2897cac 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-metadata/graphql';
+import { type ViewFilter as GqlViewFilter } from '~/generated-metadata/graphql';
import { type ViewFilter } from '@/views/types/ViewFilter';
import { getFilterableFields } from '@/views/utils/getFilterableFields';
import { mapViewFiltersToFilters } from '@/views/utils/mapViewFiltersToFilters';
@@ -8,7 +8,7 @@ export const useMapViewFiltersToFilters = () => {
const { objectMetadataItem } = useRecordIndexContextOrThrow();
const mapViewFiltersToRecordFilters = (
- viewFilters: ViewFilter[] | CoreViewFilter[],
+ viewFilters: ViewFilter[] | GqlViewFilter[],
) => {
const filterableFieldMetadataItems =
getFilterableFields(objectMetadataItem);
diff --git a/packages/twenty-front/src/modules/views/hooks/useSaveAnyFieldFilterToView.ts b/packages/twenty-front/src/modules/views/hooks/useSaveAnyFieldFilterToView.ts
index 6a2367b5414..501eeb3ac0d 100644
--- a/packages/twenty-front/src/modules/views/hooks/useSaveAnyFieldFilterToView.ts
+++ b/packages/twenty-front/src/modules/views/hooks/useSaveAnyFieldFilterToView.ts
@@ -3,7 +3,7 @@ import { useAtomComponentStateCallbackState } from '@/ui/utilities/state/jotai/h
import { usePerformViewAPIUpdate } from '@/views/hooks/internal/usePerformViewAPIUpdate';
import { useCanPersistViewChanges } from '@/views/hooks/useCanPersistViewChanges';
import { useGetCurrentViewOnly } from '@/views/hooks/useGetCurrentViewOnly';
-import { convertUpdateViewInputToCore } from '@/views/utils/convertUpdateViewInputToCore';
+import { convertUpdateViewInputToGql } from '@/views/utils/convertUpdateViewInputToGql';
import { useStore } from 'jotai';
import { useCallback } from 'react';
import { isDefined } from 'twenty-shared/utils';
@@ -34,7 +34,7 @@ export const useSaveAnyFieldFilterToView = () => {
if (currentAnyFieldFilterValue !== currentViewAnyFieldFilterValue) {
await performViewAPIUpdate({
id: currentView.id,
- input: convertUpdateViewInputToCore({
+ input: convertUpdateViewInputToGql({
...currentView,
anyFieldFilterValue: currentAnyFieldFilterValue,
}),
diff --git a/packages/twenty-front/src/modules/views/hooks/useSaveCurrentViewFields.ts b/packages/twenty-front/src/modules/views/hooks/useSaveCurrentViewFields.ts
index beacb6af638..7dd84e94678 100644
--- a/packages/twenty-front/src/modules/views/hooks/useSaveCurrentViewFields.ts
+++ b/packages/twenty-front/src/modules/views/hooks/useSaveCurrentViewFields.ts
@@ -9,7 +9,7 @@ import { useGetViewFromState } from '@/views/hooks/useGetViewFromState';
import { type ViewField } from '@/views/types/ViewField';
import {
type CreateViewFieldInput,
- type UpdateCoreViewFieldMutationVariables,
+ type UpdateViewFieldMutationVariables,
} from '~/generated-metadata/graphql';
import { isDeeplyEqual } from '~/utils/isDeeplyEqual';
import { isUndefinedOrNull } from '~/utils/isUndefinedOrNull';
@@ -50,14 +50,19 @@ export const useSaveCurrentViewFields = () => {
const { viewFieldsToCreate, viewFieldsToUpdate } =
viewFieldsToSave.reduce<{
viewFieldsToCreate: CreateViewFieldInput[];
- viewFieldsToUpdate: UpdateCoreViewFieldMutationVariables[];
+ viewFieldsToUpdate: UpdateViewFieldMutationVariables[];
}>(
(
{ viewFieldsToCreate, viewFieldsToUpdate },
- { __typename, ...viewFieldToCreateOrUpdate },
+ viewFieldToCreateOrUpdate,
) => {
const createViewFieldInput: CreateViewFieldInput = {
- ...viewFieldToCreateOrUpdate,
+ id: viewFieldToCreateOrUpdate.id,
+ fieldMetadataId: viewFieldToCreateOrUpdate.fieldMetadataId,
+ position: viewFieldToCreateOrUpdate.position,
+ isVisible: viewFieldToCreateOrUpdate.isVisible,
+ size: viewFieldToCreateOrUpdate.size,
+ aggregateOperation: viewFieldToCreateOrUpdate.aggregateOperation,
viewId: currentViewId,
};
const existingField = currentViewFields.find(
diff --git a/packages/twenty-front/src/modules/views/hooks/useSaveRecordFiltersToViewFilters.ts b/packages/twenty-front/src/modules/views/hooks/useSaveRecordFiltersToViewFilters.ts
index 4071e205a05..fa92198005b 100644
--- a/packages/twenty-front/src/modules/views/hooks/useSaveRecordFiltersToViewFilters.ts
+++ b/packages/twenty-front/src/modules/views/hooks/useSaveRecordFiltersToViewFilters.ts
@@ -4,8 +4,7 @@ import { useAtomComponentStateCallbackState } from '@/ui/utilities/state/jotai/h
import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';
import { usePerformViewFilterAPIPersist } from '@/views/hooks/internal/usePerformViewFilterAPIPersist';
import { useCanPersistViewChanges } from '@/views/hooks/useCanPersistViewChanges';
-import { coreViewsSelector } from '@/views/states/selectors/coreViewsSelector';
-import { convertCoreViewToView } from '@/views/utils/convertCoreViewToView';
+import { viewsSelector } from '@/views/states/selectors/viewsSelector';
import { getViewFiltersToCreate } from '@/views/utils/getViewFiltersToCreate';
import { getViewFiltersToDelete } from '@/views/utils/getViewFiltersToDelete';
import { getViewFiltersToUpdate } from '@/views/utils/getViewFiltersToUpdate';
@@ -33,18 +32,16 @@ export const useSaveRecordFiltersToViewFilters = () => {
const store = useStore();
const saveRecordFiltersToViewFilters = useCallback(async () => {
- const views = store.get(coreViewsSelector.atom);
+ const views = store.get(viewsSelector.atom);
- const currentCoreView = views.find(
+ const currentView = views.find(
(view) => view.id === contextStoreCurrentViewId,
);
- if (!isDefined(currentCoreView)) {
+ if (!isDefined(currentView)) {
return;
}
- const currentView = convertCoreViewToView(currentCoreView);
-
if (!canPersistChanges || !isDefined(currentView)) {
return;
}
diff --git a/packages/twenty-front/src/modules/views/hooks/useUpdateCurrentView.ts b/packages/twenty-front/src/modules/views/hooks/useUpdateCurrentView.ts
index 471c8e35022..a3da70fc305 100644
--- a/packages/twenty-front/src/modules/views/hooks/useUpdateCurrentView.ts
+++ b/packages/twenty-front/src/modules/views/hooks/useUpdateCurrentView.ts
@@ -7,17 +7,17 @@ import { useLoadRecordIndexStates } from '@/object-record/record-index/hooks/use
import { recordIndexViewTypeState } from '@/object-record/record-index/states/recordIndexViewTypeState';
import { useAtomComponentStateCallbackState } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateCallbackState';
import { useCanPersistViewChanges } from '@/views/hooks/useCanPersistViewChanges';
-import { coreViewFromViewIdFamilySelector } from '@/views/states/selectors/coreViewFromViewIdFamilySelector';
+import { viewFromViewIdFamilySelector } from '@/views/states/selectors/viewFromViewIdFamilySelector';
import { type GraphQLView } from '@/views/types/GraphQLView';
import { type View } from '@/views/types/View';
import { type ViewGroup } from '@/views/types/ViewGroup';
import { type ViewType } from '@/views/types/ViewType';
-import { convertUpdateViewInputToCore } from '@/views/utils/convertUpdateViewInputToCore';
+import { convertUpdateViewInputToGql } from '@/views/utils/convertUpdateViewInputToGql';
import { useCallback, useMemo } from 'react';
import { isDefined } from 'twenty-shared/utils';
import { v4 } from 'uuid';
import { useMutation } from '@apollo/client/react';
-import { UpdateCoreViewDocument } from '~/generated-metadata/graphql';
+import { UpdateViewDocument } from '~/generated-metadata/graphql';
export const useUpdateCurrentView = () => {
const { canPersistChanges } = useCanPersistViewChanges();
@@ -30,7 +30,7 @@ export const useUpdateCurrentView = () => {
const store = useStore();
- const [updateOneCoreView] = useMutation(UpdateCoreViewDocument);
+ const [updateOneView] = useMutation(UpdateViewDocument);
const getViewGroupsToCreateAtViewUpdate = useMemo(() => {
return ({
@@ -61,7 +61,6 @@ export const useUpdateCurrentView = () => {
(option: { value: string }, index: number) =>
({
id: v4(),
- __typename: 'ViewGroup',
fieldValue: option.value,
isVisible: true,
position: index,
@@ -75,7 +74,6 @@ export const useUpdateCurrentView = () => {
)?.isNullable === true
) {
viewGroupsToCreate.push({
- __typename: 'ViewGroup',
id: v4(),
fieldValue: '',
position: viewGroupsToCreate.length,
@@ -98,7 +96,7 @@ export const useUpdateCurrentView = () => {
const currentViewId = store.get(currentViewIdCallbackState);
const currentView = store.get(
- coreViewFromViewIdFamilySelector.selectorFamily({
+ viewFromViewIdFamilySelector.selectorFamily({
viewId: currentViewId ?? '',
}),
);
@@ -108,9 +106,9 @@ export const useUpdateCurrentView = () => {
}
if (isDefined(currentViewId)) {
- const input = convertUpdateViewInputToCore(view);
+ const input = convertUpdateViewInputToGql(view);
- await updateOneCoreView({
+ await updateOneView({
variables: {
id: currentViewId,
input,
@@ -150,7 +148,7 @@ export const useUpdateCurrentView = () => {
objectMetadataItem,
setRecordIndexViewType,
store,
- updateOneCoreView,
+ updateOneView,
],
);
diff --git a/packages/twenty-front/src/modules/views/hooks/useUpdateViewAggregate.ts b/packages/twenty-front/src/modules/views/hooks/useUpdateViewAggregate.ts
index da94e582f43..b4418f22d7f 100644
--- a/packages/twenty-front/src/modules/views/hooks/useUpdateViewAggregate.ts
+++ b/packages/twenty-front/src/modules/views/hooks/useUpdateViewAggregate.ts
@@ -6,10 +6,9 @@ import { convertExtendedAggregateOperationToAggregateOperation } from '@/object-
import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';
import { usePerformViewAPIUpdate } from '@/views/hooks/internal/usePerformViewAPIUpdate';
import { useCanPersistViewChanges } from '@/views/hooks/useCanPersistViewChanges';
-import { convertCoreViewToView } from '@/views/utils/convertCoreViewToView';
import { useCallback } from 'react';
import { isDefined } from 'twenty-shared/utils';
-import { type CoreView } from '~/generated-metadata/graphql';
+import { type View as GqlView } from '~/generated-metadata/graphql';
export const useUpdateViewAggregate = () => {
const { canPersistChanges } = useCanPersistViewChanges();
@@ -54,15 +53,13 @@ export const useUpdateViewAggregate = () => {
});
if (updatedViewResult.status === 'successful') {
- const updatedCoreView = updatedViewResult.response.data
- ?.updateCoreView as CoreView;
+ const updatedView = updatedViewResult.response.data
+ ?.updateView as GqlView;
- if (!isDefined(updatedCoreView)) {
+ if (!isDefined(updatedView)) {
return;
}
- const updatedView = convertCoreViewToView(updatedCoreView);
-
loadRecordIndexStates(updatedView, objectMetadataItem);
}
},
diff --git a/packages/twenty-front/src/modules/views/hooks/useViewById.ts b/packages/twenty-front/src/modules/views/hooks/useViewById.ts
index 25cb8feca7e..86cc7b1b54c 100644
--- a/packages/twenty-front/src/modules/views/hooks/useViewById.ts
+++ b/packages/twenty-front/src/modules/views/hooks/useViewById.ts
@@ -1,8 +1,8 @@
import { useAtomFamilySelectorValue } from '@/ui/utilities/state/jotai/hooks/useAtomFamilySelectorValue';
-import { coreViewFromViewIdFamilySelector } from '@/views/states/selectors/coreViewFromViewIdFamilySelector';
+import { viewFromViewIdFamilySelector } from '@/views/states/selectors/viewFromViewIdFamilySelector';
export const useViewById = (viewId: string | null) => {
- const view = useAtomFamilySelectorValue(coreViewFromViewIdFamilySelector, {
+ const view = useAtomFamilySelectorValue(viewFromViewIdFamilySelector, {
viewId: viewId ?? '',
});
diff --git a/packages/twenty-front/src/modules/views/hooks/useViewOrDefaultView.ts b/packages/twenty-front/src/modules/views/hooks/useViewOrDefaultView.ts
index b27dbdcf97a..769f68aed71 100644
--- a/packages/twenty-front/src/modules/views/hooks/useViewOrDefaultView.ts
+++ b/packages/twenty-front/src/modules/views/hooks/useViewOrDefaultView.ts
@@ -1,6 +1,6 @@
import { useAtomFamilySelectorValue } from '@/ui/utilities/state/jotai/hooks/useAtomFamilySelectorValue';
-import { coreIndexViewIdFromObjectMetadataItemFamilySelector } from '@/views/states/selectors/coreIndexViewIdFromObjectMetadataItemFamilySelector';
-import { coreViewFromViewIdFamilySelector } from '@/views/states/selectors/coreViewFromViewIdFamilySelector';
+import { indexViewIdFromObjectMetadataItemFamilySelector } from '@/views/states/selectors/indexViewIdFromObjectMetadataItemFamilySelector';
+import { viewFromViewIdFamilySelector } from '@/views/states/selectors/viewFromViewIdFamilySelector';
export const useViewOrDefaultView = ({
objectMetadataItemId,
@@ -8,16 +8,13 @@ export const useViewOrDefaultView = ({
objectMetadataItemId: string;
}) => {
const indexViewId = useAtomFamilySelectorValue(
- coreIndexViewIdFromObjectMetadataItemFamilySelector,
+ indexViewIdFromObjectMetadataItemFamilySelector,
{ objectMetadataItemId },
);
- const indexView = useAtomFamilySelectorValue(
- coreViewFromViewIdFamilySelector,
- {
- viewId: indexViewId ?? '',
- },
- );
+ const indexView = useAtomFamilySelectorValue(viewFromViewIdFamilySelector, {
+ viewId: indexViewId ?? '',
+ });
return { view: indexView };
};
diff --git a/packages/twenty-front/src/modules/views/hooks/useViewsSideEffectsOnViewGroups.ts b/packages/twenty-front/src/modules/views/hooks/useViewsSideEffectsOnViewGroups.ts
index 82a3f5ccfa3..1db4cbdafe6 100644
--- a/packages/twenty-front/src/modules/views/hooks/useViewsSideEffectsOnViewGroups.ts
+++ b/packages/twenty-front/src/modules/views/hooks/useViewsSideEffectsOnViewGroups.ts
@@ -35,7 +35,6 @@ const useViewsSideEffectsOnViewGroups = () => {
(option, index) =>
({
id: v4(),
- __typename: 'ViewGroup',
fieldValue: option.value,
isVisible: true,
position: index,
@@ -48,7 +47,6 @@ const useViewsSideEffectsOnViewGroups = () => {
)?.isNullable === true
) {
viewGroupsToCreate.push({
- __typename: 'ViewGroup',
id: v4(),
fieldValue: '',
position: viewGroupsToCreate.length,
diff --git a/packages/twenty-front/src/modules/views/states/selectors/coreViewFromViewIdFamilySelector.ts b/packages/twenty-front/src/modules/views/states/selectors/coreViewFromViewIdFamilySelector.ts
deleted file mode 100644
index f7d62607a67..00000000000
--- a/packages/twenty-front/src/modules/views/states/selectors/coreViewFromViewIdFamilySelector.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-import { createAtomFamilySelector } from '@/ui/utilities/state/jotai/utils/createAtomFamilySelector';
-import { coreViewsSelector } from '@/views/states/selectors/coreViewsSelector';
-import { type View } from '@/views/types/View';
-import { convertCoreViewToView } from '@/views/utils/convertCoreViewToView';
-
-export const coreViewFromViewIdFamilySelector = createAtomFamilySelector<
- View | undefined,
- { viewId: string }
->({
- key: 'coreViewFromViewIdFamilySelector',
- get:
- ({ viewId }) =>
- ({ get }) => {
- const coreViews = get(coreViewsSelector);
- const views = coreViews.map(convertCoreViewToView);
- return views?.find((view) => view.id === viewId);
- },
-});
diff --git a/packages/twenty-front/src/modules/views/states/selectors/coreViewIdsFromObjectMetadataItemFamilySelector.ts b/packages/twenty-front/src/modules/views/states/selectors/coreViewIdsFromObjectMetadataItemFamilySelector.ts
deleted file mode 100644
index 82cbde171d3..00000000000
--- a/packages/twenty-front/src/modules/views/states/selectors/coreViewIdsFromObjectMetadataItemFamilySelector.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-import { coreViewsSelector } from '@/views/states/selectors/coreViewsSelector';
-import { convertCoreViewToView } from '@/views/utils/convertCoreViewToView';
-import { createAtomFamilySelector } from '@/ui/utilities/state/jotai/utils/createAtomFamilySelector';
-
-export const coreViewIdsFromObjectMetadataItemFamilySelector =
- createAtomFamilySelector<string[], { objectMetadataItemId: string }>({
- key: 'coreViewIdsFromObjectMetadataItemFamilySelector',
- get:
- ({ objectMetadataItemId }) =>
- ({ get }) => {
- const coreViews = get(coreViewsSelector);
- const views = coreViews.map(convertCoreViewToView);
- return views
- .filter((view) => view.objectMetadataId === objectMetadataItemId)
- .map((view) => view.id);
- },
- });
diff --git a/packages/twenty-front/src/modules/views/states/selectors/coreViewLengthFamilySelector.ts b/packages/twenty-front/src/modules/views/states/selectors/coreViewLengthFamilySelector.ts
deleted file mode 100644
index 78c23308f23..00000000000
--- a/packages/twenty-front/src/modules/views/states/selectors/coreViewLengthFamilySelector.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-import { coreViewsSelector } from '@/views/states/selectors/coreViewsSelector';
-import { createAtomSelector } from '@/ui/utilities/state/jotai/utils/createAtomSelector';
-
-export const coreViewLengthFamilySelector = createAtomSelector<number>({
- key: 'coreViewLengthFamilySelector',
- get: ({ get }) => {
- const coreViews = get(coreViewsSelector);
- return coreViews?.length ?? 0;
- },
-});
diff --git a/packages/twenty-front/src/modules/views/states/selectors/coreViewsByObjectMetadataIdFamilySelector.ts b/packages/twenty-front/src/modules/views/states/selectors/coreViewsByObjectMetadataIdFamilySelector.ts
deleted file mode 100644
index 5df272e6f1b..00000000000
--- a/packages/twenty-front/src/modules/views/states/selectors/coreViewsByObjectMetadataIdFamilySelector.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-import { type CoreViewWithRelations } from '@/views/types/CoreViewWithRelations';
-import { coreViewsSelector } from '@/views/states/selectors/coreViewsSelector';
-import { createAtomFamilySelector } from '@/ui/utilities/state/jotai/utils/createAtomFamilySelector';
-
-export const coreViewsByObjectMetadataIdFamilySelector =
- createAtomFamilySelector<CoreViewWithRelations[], string>({
- key: 'coreViewsByObjectMetadataIdFamilySelector',
- get:
- (objectMetadataId) =>
- ({ get }) => {
- const coreViews = get(coreViewsSelector);
- return coreViews.filter(
- (view) => view.objectMetadataId === objectMetadataId,
- );
- },
- });
diff --git a/packages/twenty-front/src/modules/views/states/selectors/coreIndexViewIdFromObjectMetadataItemFamilySelector.ts b/packages/twenty-front/src/modules/views/states/selectors/indexViewIdFromObjectMetadataItemFamilySelector.ts
similarity index 50%
rename from packages/twenty-front/src/modules/views/states/selectors/coreIndexViewIdFromObjectMetadataItemFamilySelector.ts
rename to packages/twenty-front/src/modules/views/states/selectors/indexViewIdFromObjectMetadataItemFamilySelector.ts
index c8d50814cf9..ad6c4e222d4 100644
--- a/packages/twenty-front/src/modules/views/states/selectors/coreIndexViewIdFromObjectMetadataItemFamilySelector.ts
+++ b/packages/twenty-front/src/modules/views/states/selectors/indexViewIdFromObjectMetadataItemFamilySelector.ts
@@ -1,23 +1,21 @@
-import { coreViewsSelector } from '@/views/states/selectors/coreViewsSelector';
-import { ViewKey } from '@/views/types/ViewKey';
-import { convertCoreViewToView } from '@/views/utils/convertCoreViewToView';
import { createAtomFamilySelector } from '@/ui/utilities/state/jotai/utils/createAtomFamilySelector';
+import { viewsSelector } from '@/views/states/selectors/viewsSelector';
+import { ViewKey } from '@/views/types/ViewKey';
-export const coreIndexViewIdFromObjectMetadataItemFamilySelector =
+export const indexViewIdFromObjectMetadataItemFamilySelector =
createAtomFamilySelector<
string | undefined,
{ objectMetadataItemId: string }
>({
- key: 'coreIndexViewIdFromObjectMetadataItemFamilySelector',
+ key: 'indexViewIdFromObjectMetadataItemFamilySelector',
get:
({ objectMetadataItemId }) =>
({ get }) => {
- const coreViews = get(coreViewsSelector);
- const views = coreViews.map(convertCoreViewToView);
+ const views = get(viewsSelector);
return views?.find(
(view) =>
view.objectMetadataId === objectMetadataItemId &&
- view.key === ViewKey.Index,
+ view.key === ViewKey.INDEX,
)?.id;
},
});
diff --git a/packages/twenty-front/src/modules/views/states/selectors/viewFromViewIdFamilySelector.ts b/packages/twenty-front/src/modules/views/states/selectors/viewFromViewIdFamilySelector.ts
new file mode 100644
index 00000000000..a51fc495958
--- /dev/null
+++ b/packages/twenty-front/src/modules/views/states/selectors/viewFromViewIdFamilySelector.ts
@@ -0,0 +1,16 @@
+import { createAtomFamilySelector } from '@/ui/utilities/state/jotai/utils/createAtomFamilySelector';
+import { viewsSelector } from '@/views/states/selectors/viewsSelector';
+import { type View } from '@/views/types/View';
+
+export const viewFromViewIdFamilySelector = createAtomFamilySelector<
+ View | undefined,
+ { viewId: string }
+>({
+ key: 'viewFromViewIdFamilySelector',
+ get:
+ ({ viewId }) =>
+ ({ get }) => {
+ const views = get(viewsSelector);
+ return views?.find((view) => view.id === viewId);
+ },
+});
diff --git a/packages/twenty-front/src/modules/views/states/selectors/viewIdsFromObjectMetadataItemFamilySelector.ts b/packages/twenty-front/src/modules/views/states/selectors/viewIdsFromObjectMetadataItemFamilySelector.ts
new file mode 100644
index 00000000000..fbd9c1b7513
--- /dev/null
+++ b/packages/twenty-front/src/modules/views/states/selectors/viewIdsFromObjectMetadataItemFamilySelector.ts
@@ -0,0 +1,15 @@
+import { createAtomFamilySelector } from '@/ui/utilities/state/jotai/utils/createAtomFamilySelector';
+import { viewsSelector } from '@/views/states/selectors/viewsSelector';
+
+export const viewIdsFromObjectMetadataItemFamilySelector =
+ createAtomFamilySelector<string[], { objectMetadataItemId: string }>({
+ key: 'viewIdsFromObjectMetadataItemFamilySelector',
+ get:
+ ({ objectMetadataItemId }) =>
+ ({ get }) => {
+ const views = get(viewsSelector);
+ return views
+ .filter((view) => view.objectMetadataId === objectMetadataItemId)
+ .map((view) => view.id);
+ },
+ });
diff --git a/packages/twenty-front/src/modules/views/states/selectors/viewsByObjectMetadataIdFamilySelector.ts b/packages/twenty-front/src/modules/views/states/selectors/viewsByObjectMetadataIdFamilySelector.ts
new file mode 100644
index 00000000000..f16c62edd31
--- /dev/null
+++ b/packages/twenty-front/src/modules/views/states/selectors/viewsByObjectMetadataIdFamilySelector.ts
@@ -0,0 +1,16 @@
+import { type ViewWithRelations } from '@/views/types/ViewWithRelations';
+import { viewsSelector } from '@/views/states/selectors/viewsSelector';
+import { createAtomFamilySelector } from '@/ui/utilities/state/jotai/utils/createAtomFamilySelector';
+
+export const viewsByObjectMetadataIdFamilySelector = createAtomFamilySelector<
+ ViewWithRelations[],
+ string
+>({
+ key: 'viewsByObjectMetadataIdFamilySelector',
+ get:
+ (objectMetadataId) =>
+ ({ get }) => {
+ const views = get(viewsSelector);
+ return views.filter((view) => view.objectMetadataId === objectMetadataId);
+ },
+});
diff --git a/packages/twenty-front/src/modules/views/states/selectors/coreViewsFromObjectMetadataItemFamilySelector.ts b/packages/twenty-front/src/modules/views/states/selectors/viewsFromObjectMetadataItemFamilySelector.ts
similarity index 55%
rename from packages/twenty-front/src/modules/views/states/selectors/coreViewsFromObjectMetadataItemFamilySelector.ts
rename to packages/twenty-front/src/modules/views/states/selectors/viewsFromObjectMetadataItemFamilySelector.ts
index 002f54a0ee6..f7cd487fb56 100644
--- a/packages/twenty-front/src/modules/views/states/selectors/coreViewsFromObjectMetadataItemFamilySelector.ts
+++ b/packages/twenty-front/src/modules/views/states/selectors/viewsFromObjectMetadataItemFamilySelector.ts
@@ -1,22 +1,20 @@
import { createAtomFamilySelector } from '@/ui/utilities/state/jotai/utils/createAtomFamilySelector';
-import { coreViewsSelector } from '@/views/states/selectors/coreViewsSelector';
+import { viewsSelector } from '@/views/states/selectors/viewsSelector';
import { type View } from '@/views/types/View';
import { ViewType } from '@/views/types/ViewType';
-import { convertCoreViewToView } from '@/views/utils/convertCoreViewToView';
-export const coreViewsFromObjectMetadataItemFamilySelector =
+export const viewsFromObjectMetadataItemFamilySelector =
createAtomFamilySelector<View[], { objectMetadataItemId: string }>({
- key: 'coreViewsFromObjectMetadataItemFamilySelector',
+ key: 'viewsFromObjectMetadataItemFamilySelector',
get:
({ objectMetadataItemId }) =>
({ get }) => {
- const coreViews = get(coreViewsSelector);
- const views = coreViews.map(convertCoreViewToView);
+ const views = get(viewsSelector);
return views
.filter(
(view) =>
view.objectMetadataId === objectMetadataItemId &&
- view.type !== ViewType.FieldsWidget,
+ view.type !== ViewType.FIELDS_WIDGET,
)
.sort((a, b) => a.position - b.position);
},
diff --git a/packages/twenty-front/src/modules/views/states/selectors/viewsLengthSelector.ts b/packages/twenty-front/src/modules/views/states/selectors/viewsLengthSelector.ts
new file mode 100644
index 00000000000..02a72a27b94
--- /dev/null
+++ b/packages/twenty-front/src/modules/views/states/selectors/viewsLengthSelector.ts
@@ -0,0 +1,10 @@
+import { viewsSelector } from '@/views/states/selectors/viewsSelector';
+import { createAtomSelector } from '@/ui/utilities/state/jotai/utils/createAtomSelector';
+
+export const viewsLengthSelector = createAtomSelector<number>({
+ key: 'viewsLengthSelector',
+ get: ({ get }) => {
+ const views = get(viewsSelector);
+ return views?.length ?? 0;
+ },
+});
diff --git a/packages/twenty-front/src/modules/views/states/selectors/coreViewsSelector.ts b/packages/twenty-front/src/modules/views/states/selectors/viewsSelector.ts
similarity index 94%
rename from packages/twenty-front/src/modules/views/states/selectors/coreViewsSelector.ts
rename to packages/twenty-front/src/modules/views/states/selectors/viewsSelector.ts
index 7f1cf0bf103..6eed7653bd7 100644
--- a/packages/twenty-front/src/modules/views/states/selectors/coreViewsSelector.ts
+++ b/packages/twenty-front/src/modules/views/states/selectors/viewsSelector.ts
@@ -7,10 +7,10 @@ import { type FlatViewFilterGroup } from '@/metadata-store/types/FlatViewFilterG
import { type FlatViewGroup } from '@/metadata-store/types/FlatViewGroup';
import { type FlatViewSort } from '@/metadata-store/types/FlatViewSort';
import { createAtomSelector } from '@/ui/utilities/state/jotai/utils/createAtomSelector';
-import { type CoreViewWithRelations } from '@/views/types/CoreViewWithRelations';
+import { type ViewWithRelations } from '@/views/types/ViewWithRelations';
-export const coreViewsSelector = createAtomSelector<CoreViewWithRelations[]>({
- key: 'coreViewsSelector',
+export const viewsSelector = createAtomSelector<ViewWithRelations[]>({
+ key: 'viewsSelector',
get: ({ get }) => {
const flatViews = get(metadataStoreState, 'views').current as FlatView[];
const flatViewFields = get(metadataStoreState, 'viewFields')
@@ -90,6 +90,6 @@ export const coreViewsSelector = createAtomSelector<CoreViewWithRelations[]>({
),
}),
),
- })) as CoreViewWithRelations[];
+ })) as ViewWithRelations[];
},
});
diff --git a/packages/twenty-front/src/modules/views/states/viewsWithRelationsSelector.ts b/packages/twenty-front/src/modules/views/states/viewsWithRelationsSelector.ts
deleted file mode 100644
index fc5b8fdbb1a..00000000000
--- a/packages/twenty-front/src/modules/views/states/viewsWithRelationsSelector.ts
+++ /dev/null
@@ -1,130 +0,0 @@
-import { metadataStoreState } from '@/metadata-store/states/metadataStoreState';
-import { type FlatView } from '@/metadata-store/types/FlatView';
-import { type FlatViewField } from '@/metadata-store/types/FlatViewField';
-import { type FlatViewFieldGroup } from '@/metadata-store/types/FlatViewFieldGroup';
-import { type FlatViewFilter } from '@/metadata-store/types/FlatViewFilter';
-import { type FlatViewFilterGroup } from '@/metadata-store/types/FlatViewFilterGroup';
-import { type FlatViewGroup } from '@/metadata-store/types/FlatViewGroup';
-import { type FlatViewSort } from '@/metadata-store/types/FlatViewSort';
-import { createAtomSelector } from '@/ui/utilities/state/jotai/utils/createAtomSelector';
-import { type CoreViewWithRelations } from '@/views/types/CoreViewWithRelations';
-import { isDefined } from 'twenty-shared/utils';
-
-export const viewsWithRelationsSelector = createAtomSelector<
- CoreViewWithRelations[]
->({
- key: 'viewsWithRelationsSelector',
- get: ({ get }) => {
- const flatViews = get(metadataStoreState, 'views').current as FlatView[];
- const allFlatViewFields = get(metadataStoreState, 'viewFields')
- .current as FlatViewField[];
- const allFlatViewFilters = get(metadataStoreState, 'viewFilters')
- .current as FlatViewFilter[];
- const allFlatViewSorts = get(metadataStoreState, 'viewSorts')
- .current as FlatViewSort[];
- const allFlatViewGroups = get(metadataStoreState, 'viewGroups')
- .current as FlatViewGroup[];
- const allFlatViewFilterGroups = get(metadataStoreState, 'viewFilterGroups')
- .current as FlatViewFilterGroup[];
- const allFlatViewFieldGroups = get(metadataStoreState, 'viewFieldGroups')
- .current as FlatViewFieldGroup[];
-
- const viewFieldsByViewId = new Map<string, FlatViewField[]>();
- const viewFiltersByViewId = new Map<string, FlatViewFilter[]>();
- const viewSortsByViewId = new Map<string, FlatViewSort[]>();
- const viewGroupsByViewId = new Map<string, FlatViewGroup[]>();
- const viewFilterGroupsByViewId = new Map<string, FlatViewFilterGroup[]>();
- const viewFieldGroupsByViewId = new Map<string, FlatViewFieldGroup[]>();
-
- for (const viewField of allFlatViewFields) {
- const existing = viewFieldsByViewId.get(viewField.viewId);
-
- if (isDefined(existing)) {
- existing.push(viewField);
- } else {
- viewFieldsByViewId.set(viewField.viewId, [viewField]);
- }
- }
-
- for (const viewFilter of allFlatViewFilters) {
- const existing = viewFiltersByViewId.get(viewFilter.viewId);
-
- if (isDefined(existing)) {
- existing.push(viewFilter);
- } else {
- viewFiltersByViewId.set(viewFilter.viewId, [viewFilter]);
- }
- }
-
- for (const viewSort of allFlatViewSorts) {
- const existing = viewSortsByViewId.get(viewSort.viewId);
-
- if (isDefined(existing)) {
- existing.push(viewSort);
- } else {
- viewSortsByViewId.set(viewSort.viewId, [viewSort]);
- }
- }
-
- for (const viewGroup of allFlatViewGroups) {
- const existing = viewGroupsByViewId.get(viewGroup.viewId);
-
- if (isDefined(existing)) {
- existing.push(viewGroup);
- } else {
- viewGroupsByViewId.set(viewGroup.viewId, [viewGroup]);
- }
- }
-
- for (const viewFilterGroup of allFlatViewFilterGroups) {
- const viewId = (viewFilterGroup as { viewId?: string }).viewId;
-
- if (!isDefined(viewId)) {
- continue;
- }
-
- const existing = viewFilterGroupsByViewId.get(viewId);
-
- if (isDefined(existing)) {
- existing.push(viewFilterGroup);
- } else {
- viewFilterGroupsByViewId.set(viewId, [viewFilterGroup]);
- }
- }
-
- for (const viewFieldGroup of allFlatViewFieldGroups) {
- const viewId = (viewFieldGroup as { viewId?: string }).viewId;
-
- if (!isDefined(viewId)) {
- continue;
- }
-
- const existing = viewFieldGroupsByViewId.get(viewId);
-
- if (isDefined(existing)) {
- existing.push(viewFieldGroup);
- } else {
- viewFieldGroupsByViewId.set(viewId, [viewFieldGroup]);
- }
- }
-
- return flatViews.map((flatView) => ({
- ...flatView,
- viewFields: viewFieldsByViewId.get(flatView.id) ?? [],
- viewFilters: viewFiltersByViewId.get(flatView.id) ?? [],
- viewSorts: viewSortsByViewId.get(flatView.id) ?? [],
- viewGroups: viewGroupsByViewId.get(flatView.id) ?? [],
- viewFilterGroups: viewFilterGroupsByViewId.get(flatView.id) ?? [],
- viewFieldGroups: (viewFieldGroupsByViewId.get(flatView.id) ?? []).map(
- (group) => ({
- ...group,
- viewFields: (viewFieldsByViewId.get(flatView.id) ?? []).filter(
- (field) =>
- (field as unknown as { viewFieldGroupId?: string })
- .viewFieldGroupId === group.id,
- ),
- }),
- ),
- }));
- },
-});
diff --git a/packages/twenty-front/src/modules/views/types/CoreViewSortEssential.ts b/packages/twenty-front/src/modules/views/types/CoreViewSortEssential.ts
deleted file mode 100644
index 4c8cc81e032..00000000000
--- a/packages/twenty-front/src/modules/views/types/CoreViewSortEssential.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-import { type CoreViewSort } from '~/generated-metadata/graphql';
-
-export type CoreViewSortEssential = Pick<
- CoreViewSort,
- 'id' | 'fieldMetadataId' | 'direction' | 'viewId'
->;
diff --git a/packages/twenty-front/src/modules/views/types/CoreViewWithRelations.ts b/packages/twenty-front/src/modules/views/types/CoreViewWithRelations.ts
deleted file mode 100644
index 71874c12d3d..00000000000
--- a/packages/twenty-front/src/modules/views/types/CoreViewWithRelations.ts
+++ /dev/null
@@ -1,60 +0,0 @@
-import {
- type AggregateOperations,
- type CoreViewField,
- type CoreViewFieldGroup,
- type CoreViewFilter,
- type CoreViewFilterGroup,
- type CoreViewGroup,
- type CoreViewSort,
- type ViewCalendarLayout,
- type ViewKey,
- type ViewOpenRecordIn,
- type ViewType,
- type ViewVisibility,
-} from '~/generated-metadata/graphql';
-
-export type CoreViewFieldEssential = Omit<
- CoreViewField,
- 'workspaceId' | 'createdAt' | 'updatedAt'
->;
-
-export type CoreViewFieldGroupEssential = Omit<
- CoreViewFieldGroup,
- 'workspaceId' | 'createdAt' | 'updatedAt' | 'viewFields'
-> & {
- viewFields: CoreViewFieldEssential[];
-};
-
-export type CoreViewWithRelations = {
- id: string;
- name: string;
- type: ViewType;
- key?: ViewKey | null;
- objectMetadataId: string;
- isCompact: boolean;
- viewFields: CoreViewFieldEssential[];
- viewFieldGroups?: CoreViewFieldGroupEssential[];
- viewGroups: Omit<CoreViewGroup, 'workspaceId' | 'createdAt' | 'updatedAt'>[];
- viewFilters: Omit<
- CoreViewFilter,
- 'workspaceId' | 'createdAt' | 'updatedAt'
- >[];
- viewFilterGroups?: Omit<
- CoreViewFilterGroup,
- 'workspaceId' | 'createdAt' | 'updatedAt'
- >[];
- viewSorts: Omit<CoreViewSort, 'workspaceId' | 'createdAt' | 'updatedAt'>[];
- mainGroupByFieldMetadataId?: string | null;
- shouldHideEmptyGroups: boolean;
- kanbanAggregateOperation?: AggregateOperations | null;
- kanbanAggregateOperationFieldMetadataId?: string | null;
- calendarFieldMetadataId?: string | null;
- calendarLayout?: ViewCalendarLayout | null;
- position: number;
- icon: string;
- openRecordIn: ViewOpenRecordIn;
- anyFieldFilterValue?: string | null;
- visibility: ViewVisibility;
- createdByUserWorkspaceId?: string | null;
- __typename?: 'CoreView';
-};
diff --git a/packages/twenty-front/src/modules/views/types/GraphQLView.ts b/packages/twenty-front/src/modules/views/types/GraphQLView.ts
index be802f8ab9f..99d1d33210b 100644
--- a/packages/twenty-front/src/modules/views/types/GraphQLView.ts
+++ b/packages/twenty-front/src/modules/views/types/GraphQLView.ts
@@ -4,25 +4,26 @@ import { type ViewFilter } from '@/views/types/ViewFilter';
import { type ViewFilterGroup } from '@/views/types/ViewFilterGroup';
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,
type ViewCalendarLayout,
+ type ViewOpenRecordIn,
+ type ViewVisibility,
} from '~/generated-metadata/graphql';
import { type ViewSort } from '@/views/types/ViewSort';
+
export type GraphQLView = {
id: string;
name: string;
type: ViewType;
- key: ViewKey | null;
+ key?: ViewKey | null;
mainGroupByFieldMetadataId?: string | null;
shouldHideEmptyGroups: boolean;
kanbanAggregateOperation?: AggregateOperations | null;
kanbanAggregateOperationFieldMetadataId?: string | null;
objectMetadataId: string;
isCompact: boolean;
- openRecordIn: ViewOpenRecordInType;
+ openRecordIn: ViewOpenRecordIn;
viewFields: ViewField[];
viewFilters: ViewFilter[];
viewFilterGroups?: ViewFilterGroup[];
diff --git a/packages/twenty-front/src/modules/views/types/View.ts b/packages/twenty-front/src/modules/views/types/View.ts
index c2b5000f060..47a5237051d 100644
--- a/packages/twenty-front/src/modules/views/types/View.ts
+++ b/packages/twenty-front/src/modules/views/types/View.ts
@@ -5,10 +5,10 @@ import { type ViewFilter } from '@/views/types/ViewFilter';
import { type ViewFilterGroup } from '@/views/types/ViewFilterGroup';
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 ViewCalendarLayout,
+ type ViewOpenRecordIn,
type ViewVisibility,
} from '~/generated-metadata/graphql';
import { type ViewSort } from '@/views/types/ViewSort';
@@ -17,7 +17,7 @@ export type View = {
id: string;
name: string;
type: ViewType;
- key: ViewKey | null;
+ key?: ViewKey | null;
objectMetadataId: string;
isCompact: boolean;
viewFields: ViewField[];
@@ -26,17 +26,16 @@ export type View = {
viewFilters: ViewFilter[];
viewFilterGroups?: ViewFilterGroup[];
viewSorts: ViewSort[];
- kanbanAggregateOperation: AggregateOperations | null;
- kanbanAggregateOperationFieldMetadataId: string | null;
+ kanbanAggregateOperation?: AggregateOperations | null;
+ kanbanAggregateOperationFieldMetadataId?: string | null;
mainGroupByFieldMetadataId?: string | null;
shouldHideEmptyGroups: boolean;
calendarFieldMetadataId?: string | null;
calendarLayout?: ViewCalendarLayout | null;
position: number;
icon: string;
- openRecordIn: ViewOpenRecordInType;
+ openRecordIn: ViewOpenRecordIn;
anyFieldFilterValue?: string | null;
visibility: ViewVisibility;
createdByUserWorkspaceId?: string | null;
- __typename: 'View';
};
diff --git a/packages/twenty-front/src/modules/views/types/ViewField.ts b/packages/twenty-front/src/modules/views/types/ViewField.ts
index 391f00c967f..6d0cf4a5783 100644
--- a/packages/twenty-front/src/modules/views/types/ViewField.ts
+++ b/packages/twenty-front/src/modules/views/types/ViewField.ts
@@ -4,7 +4,6 @@ import { type AggregateOperations } from '@/object-record/record-table/constants
import { type ColumnDefinition } from '@/object-record/record-table/types/ColumnDefinition';
export type ViewField = {
- __typename: 'ViewField';
id: string;
viewId?: string;
fieldMetadataId: string;
@@ -12,8 +11,9 @@ export type ViewField = {
isVisible: boolean;
size: number;
aggregateOperation?: AggregateOperations | null;
+ viewFieldGroupId?: string | null;
isOverridden: boolean;
- definition:
+ definition?:
| ColumnDefinition<FieldMetadata>
| RecordBoardFieldDefinition<FieldMetadata>;
};
diff --git a/packages/twenty-front/src/modules/views/types/ViewFieldGroup.ts b/packages/twenty-front/src/modules/views/types/ViewFieldGroup.ts
index 937679c51a3..f68576b557e 100644
--- a/packages/twenty-front/src/modules/views/types/ViewFieldGroup.ts
+++ b/packages/twenty-front/src/modules/views/types/ViewFieldGroup.ts
@@ -1,7 +1,6 @@
import { type ViewField } from '@/views/types/ViewField';
export type ViewFieldGroup = {
- __typename: 'ViewFieldGroup';
id: string;
name: string;
position: number;
diff --git a/packages/twenty-front/src/modules/views/types/ViewFilter.ts b/packages/twenty-front/src/modules/views/types/ViewFilter.ts
index 5aab527a232..e95d7b95fe3 100644
--- a/packages/twenty-front/src/modules/views/types/ViewFilter.ts
+++ b/packages/twenty-front/src/modules/views/types/ViewFilter.ts
@@ -1,18 +1,15 @@
-import { type CompositeFieldSubFieldName } from '@/settings/data-model/types/CompositeFieldSubFieldName';
import { type ViewFilterOperand } from 'twenty-shared/types';
export type ViewFilter = {
- __typename: 'ViewFilter';
id: string;
- variant?: 'default' | 'danger';
fieldMetadataId: string;
operand: ViewFilterOperand;
value: string;
- displayValue: string;
+ displayValue?: string;
createdAt?: string;
updatedAt?: string;
viewId?: string;
- viewFilterGroupId?: string;
+ viewFilterGroupId?: string | null;
positionInViewFilterGroup?: number | null;
- subFieldName?: CompositeFieldSubFieldName | null;
+ subFieldName?: string | null;
};
diff --git a/packages/twenty-front/src/modules/views/types/ViewFilterGroup.ts b/packages/twenty-front/src/modules/views/types/ViewFilterGroup.ts
index 572f59a1924..3711825af87 100644
--- a/packages/twenty-front/src/modules/views/types/ViewFilterGroup.ts
+++ b/packages/twenty-front/src/modules/views/types/ViewFilterGroup.ts
@@ -1,7 +1,6 @@
import { type ViewFilterGroupLogicalOperator } from '@/views/types/ViewFilterGroupLogicalOperator';
export type ViewFilterGroup = {
- __typename: 'ViewFilterGroup';
id: string;
viewId: string;
parentViewFilterGroupId?: string | null;
diff --git a/packages/twenty-front/src/modules/views/types/ViewFilterGroupLogicalOperator.ts b/packages/twenty-front/src/modules/views/types/ViewFilterGroupLogicalOperator.ts
index ad82a363cd1..e15c2d3d2b0 100644
--- a/packages/twenty-front/src/modules/views/types/ViewFilterGroupLogicalOperator.ts
+++ b/packages/twenty-front/src/modules/views/types/ViewFilterGroupLogicalOperator.ts
@@ -1,4 +1 @@
-export enum ViewFilterGroupLogicalOperator {
- AND = 'AND',
- OR = 'OR',
-}
+export { ViewFilterGroupLogicalOperator } from '~/generated-metadata/graphql';
diff --git a/packages/twenty-front/src/modules/views/types/ViewGroup.ts b/packages/twenty-front/src/modules/views/types/ViewGroup.ts
index a8e9a419048..901957af820 100644
--- a/packages/twenty-front/src/modules/views/types/ViewGroup.ts
+++ b/packages/twenty-front/src/modules/views/types/ViewGroup.ts
@@ -1,5 +1,4 @@
export type ViewGroup = {
- __typename: 'ViewGroup';
id: string;
isVisible: boolean;
fieldValue: string;
diff --git a/packages/twenty-front/src/modules/views/types/ViewKey.ts b/packages/twenty-front/src/modules/views/types/ViewKey.ts
index baf867929bf..951fd0dc41b 100644
--- a/packages/twenty-front/src/modules/views/types/ViewKey.ts
+++ b/packages/twenty-front/src/modules/views/types/ViewKey.ts
@@ -1,4 +1 @@
-export enum ViewKey {
- Index = 'INDEX',
- Custom = 'CUSTOM',
-}
+export { ViewKey } from '~/generated-metadata/graphql';
diff --git a/packages/twenty-front/src/modules/views/types/ViewOpenRecordInType.ts b/packages/twenty-front/src/modules/views/types/ViewOpenRecordInType.ts
deleted file mode 100644
index c2a1314b59e..00000000000
--- a/packages/twenty-front/src/modules/views/types/ViewOpenRecordInType.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-export enum ViewOpenRecordInType {
- SIDE_PANEL = 'SIDE_PANEL',
- RECORD_PAGE = 'RECORD_PAGE',
-}
diff --git a/packages/twenty-front/src/modules/views/types/ViewSort.ts b/packages/twenty-front/src/modules/views/types/ViewSort.ts
index 2c9245f9e88..6fd62376ef6 100644
--- a/packages/twenty-front/src/modules/views/types/ViewSort.ts
+++ b/packages/twenty-front/src/modules/views/types/ViewSort.ts
@@ -1,7 +1,6 @@
import { type ViewSortDirection } from '~/generated-metadata/graphql';
export type ViewSort = {
- __typename: 'ViewSort';
id: string;
fieldMetadataId: string;
createdAt?: string;
diff --git a/packages/twenty-front/src/modules/views/types/ViewSortEssential.ts b/packages/twenty-front/src/modules/views/types/ViewSortEssential.ts
new file mode 100644
index 00000000000..b39925245ed
--- /dev/null
+++ b/packages/twenty-front/src/modules/views/types/ViewSortEssential.ts
@@ -0,0 +1,6 @@
+import { type ViewSort } from '~/generated-metadata/graphql';
+
+export type ViewSortEssential = Pick<
+ ViewSort,
+ 'id' | 'fieldMetadataId' | 'direction' | 'viewId'
+>;
diff --git a/packages/twenty-front/src/modules/views/types/ViewType.ts b/packages/twenty-front/src/modules/views/types/ViewType.ts
index 14671365844..0ac0b6a49a1 100644
--- a/packages/twenty-front/src/modules/views/types/ViewType.ts
+++ b/packages/twenty-front/src/modules/views/types/ViewType.ts
@@ -5,17 +5,13 @@ import {
IconTable,
} from 'twenty-ui/display';
-export enum ViewType {
- Table = 'table',
- Kanban = 'kanban',
- Calendar = 'calendar',
- FieldsWidget = 'fields_widget',
-}
+export { ViewType } from '~/generated-metadata/graphql';
+import { ViewType } from '~/generated-metadata/graphql';
const VIEW_TYPE_ICON_MAPPING = [
- { icon: IconLayoutKanban, value: ViewType.Kanban },
- { icon: IconTable, value: ViewType.Table },
- { icon: IconCalendar, value: ViewType.Calendar },
+ { icon: IconLayoutKanban, value: ViewType.KANBAN },
+ { icon: IconTable, value: ViewType.TABLE },
+ { icon: IconCalendar, value: ViewType.CALENDAR },
] as const satisfies {
icon: IconComponent;
value: ViewType;
diff --git a/packages/twenty-front/src/modules/views/types/ViewWithRelations.ts b/packages/twenty-front/src/modules/views/types/ViewWithRelations.ts
new file mode 100644
index 00000000000..a7f6ff92458
--- /dev/null
+++ b/packages/twenty-front/src/modules/views/types/ViewWithRelations.ts
@@ -0,0 +1,8 @@
+import { type View } from '@/views/types/View';
+
+export type ViewWithRelations = View;
+
+export type ViewFieldEssential = View['viewFields'][number];
+export type ViewFieldGroupEssential = NonNullable<
+ View['viewFieldGroups']
+>[number];
diff --git a/packages/twenty-front/src/modules/views/utils/__tests__/areViewFiltersEqual.test.ts b/packages/twenty-front/src/modules/views/utils/__tests__/areViewFiltersEqual.test.ts
index b6fc8ffc457..159d97b825d 100644
--- a/packages/twenty-front/src/modules/views/utils/__tests__/areViewFiltersEqual.test.ts
+++ b/packages/twenty-front/src/modules/views/utils/__tests__/areViewFiltersEqual.test.ts
@@ -4,7 +4,6 @@ import { ViewFilterOperand } from 'twenty-shared/types';
describe('areViewFiltersEqual', () => {
const baseFilter: ViewFilter = {
- __typename: 'ViewFilter',
id: 'filter-1',
fieldMetadataId: 'field-1',
operand: ViewFilterOperand.CONTAINS,
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 225f0175e0f..ffe574c9c72 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,12 +1,9 @@
import { areViewSortsEqual } from '@/views/utils/areViewSortsEqual';
-import {
- type CoreViewSort,
- ViewSortDirection,
-} from '~/generated-metadata/graphql';
+import { type ViewSort, ViewSortDirection } from '~/generated-metadata/graphql';
describe('areViewSortsEqual', () => {
- const baseSort: CoreViewSort = {
- __typename: 'CoreViewSort',
+ const baseSort: ViewSort = {
+ __typename: 'ViewSort',
id: 'sort-1',
fieldMetadataId: 'field-1',
direction: ViewSortDirection.ASC,
diff --git a/packages/twenty-front/src/modules/views/utils/__tests__/convertCoreViewFieldGroupToViewFieldGroup.test.ts b/packages/twenty-front/src/modules/views/utils/__tests__/convertCoreViewFieldGroupToViewFieldGroup.test.ts
deleted file mode 100644
index be2a8f13539..00000000000
--- a/packages/twenty-front/src/modules/views/utils/__tests__/convertCoreViewFieldGroupToViewFieldGroup.test.ts
+++ /dev/null
@@ -1,114 +0,0 @@
-import { convertCoreViewFieldGroupToViewFieldGroup } from '@/views/utils/convertCoreViewFieldGroupToViewFieldGroup';
-
-describe('convertCoreViewFieldGroupToViewFieldGroup', () => {
- it('should convert a core view field group to a view field group', () => {
- const coreViewFieldGroup = {
- id: 'group-1',
- name: 'Group 1',
- position: 0,
- isVisible: true,
- isOverridden: false,
- viewId: 'view-1',
- viewFields: [
- {
- id: 'vf-1',
- fieldMetadataId: 'fm-1',
- position: 0,
- isVisible: true,
- size: 150,
- aggregateOperation: null,
- isOverridden: false,
- },
- {
- id: 'vf-2',
- fieldMetadataId: 'fm-2',
- position: 1,
- isVisible: false,
- size: 200,
- aggregateOperation: null,
- isOverridden: false,
- },
- ],
- };
-
- const result =
- convertCoreViewFieldGroupToViewFieldGroup(coreViewFieldGroup);
-
- expect(result).toEqual({
- __typename: 'ViewFieldGroup',
- id: 'group-1',
- name: 'Group 1',
- position: 0,
- isVisible: true,
- isOverridden: false,
- viewId: 'view-1',
- viewFields: [
- {
- __typename: 'ViewField',
- id: 'vf-1',
- fieldMetadataId: 'fm-1',
- position: 0,
- isVisible: true,
- size: 150,
- aggregateOperation: null,
- isOverridden: false,
- definition: undefined,
- },
- {
- __typename: 'ViewField',
- id: 'vf-2',
- fieldMetadataId: 'fm-2',
- position: 1,
- isVisible: false,
- size: 200,
- aggregateOperation: null,
- isOverridden: false,
- definition: undefined,
- },
- ],
- });
- });
-
- it('should handle a group with no view fields', () => {
- const coreViewFieldGroup = {
- id: 'group-2',
- name: 'Empty Group',
- position: 1,
- isVisible: false,
- isOverridden: false,
- viewId: 'view-1',
- viewFields: [],
- };
-
- const result =
- convertCoreViewFieldGroupToViewFieldGroup(coreViewFieldGroup);
-
- expect(result).toEqual({
- __typename: 'ViewFieldGroup',
- id: 'group-2',
- name: 'Empty Group',
- position: 1,
- isVisible: false,
- isOverridden: false,
- viewId: 'view-1',
- viewFields: [],
- });
- });
-
- it('should set __typename to ViewFieldGroup', () => {
- const coreViewFieldGroup = {
- id: 'group-3',
- name: 'Test',
- position: 0,
- isVisible: true,
- isOverridden: false,
- viewId: 'view-2',
- viewFields: [],
- };
-
- const result =
- convertCoreViewFieldGroupToViewFieldGroup(coreViewFieldGroup);
-
- expect(result.__typename).toBe('ViewFieldGroup');
- });
-});
diff --git a/packages/twenty-front/src/modules/views/utils/__tests__/convertCoreViewToView.test.ts b/packages/twenty-front/src/modules/views/utils/__tests__/convertCoreViewToView.test.ts
deleted file mode 100644
index 347783eb6f6..00000000000
--- a/packages/twenty-front/src/modules/views/utils/__tests__/convertCoreViewToView.test.ts
+++ /dev/null
@@ -1,94 +0,0 @@
-import { convertCoreViewToView } from '@/views/utils/convertCoreViewToView';
-import {
- ViewType as CoreViewType,
- ViewVisibility,
-} from '~/generated-metadata/graphql';
-
-const makeCoreView = (overrides = {}) => ({
- id: 'view-1',
- name: 'Test View',
- type: CoreViewType.TABLE,
- key: null,
- objectMetadataId: 'obj-1',
- isCompact: false,
- viewFields: [],
- viewFieldGroups: [],
- viewGroups: [],
- viewFilters: [],
- viewFilterGroups: [],
- viewSorts: [],
- mainGroupByFieldMetadataId: null,
- shouldHideEmptyGroups: false,
- kanbanAggregateOperation: null,
- kanbanAggregateOperationFieldMetadataId: null,
- calendarFieldMetadataId: null,
- calendarLayout: null,
- position: 0,
- icon: 'IconTable',
- openRecordIn: null,
- anyFieldFilterValue: null,
- visibility: ViewVisibility.WORKSPACE,
- createdByUserWorkspaceId: 'user-1',
- ...overrides,
-});
-
-describe('convertCoreViewToView', () => {
- it('should convert a core view to a view with correct typename', () => {
- const result = convertCoreViewToView(makeCoreView() as any);
-
- expect(result.__typename).toBe('View');
- expect(result.id).toBe('view-1');
- expect(result.name).toBe('Test View');
- });
-
- it('should map viewFieldGroups through converter', () => {
- const coreView = makeCoreView({
- viewFieldGroups: [
- {
- id: 'group-1',
- name: 'Group 1',
- position: 0,
- isVisible: true,
- viewId: 'view-1',
- viewFields: [
- {
- id: 'vf-1',
- fieldMetadataId: 'fm-1',
- position: 0,
- isVisible: true,
- size: 150,
- aggregateOperation: null,
- },
- ],
- },
- ],
- });
-
- const result = convertCoreViewToView(coreView as any);
-
- expect(result.viewFieldGroups).toHaveLength(1);
- expect(result.viewFieldGroups![0].__typename).toBe('ViewFieldGroup');
- expect(result.viewFieldGroups![0].id).toBe('group-1');
- expect(result.viewFieldGroups![0].viewFields).toHaveLength(1);
- });
-
- it('should handle null kanban fields', () => {
- const result = convertCoreViewToView(
- makeCoreView({
- kanbanAggregateOperation: null,
- kanbanAggregateOperationFieldMetadataId: null,
- }) as any,
- );
-
- expect(result.kanbanAggregateOperation).toBeNull();
- expect(result.kanbanAggregateOperationFieldMetadataId).toBeNull();
- });
-
- it('should default visibility to UNLISTED when not provided', () => {
- const result = convertCoreViewToView(
- makeCoreView({ visibility: undefined }) as any,
- );
-
- expect(result.visibility).toBe(ViewVisibility.UNLISTED);
- });
-});
diff --git a/packages/twenty-front/src/modules/views/utils/__tests__/convertCoreViewTypeToViewType.test.ts b/packages/twenty-front/src/modules/views/utils/__tests__/convertCoreViewTypeToViewType.test.ts
deleted file mode 100644
index 669d7928aec..00000000000
--- a/packages/twenty-front/src/modules/views/utils/__tests__/convertCoreViewTypeToViewType.test.ts
+++ /dev/null
@@ -1,35 +0,0 @@
-import { ViewType } from '@/views/types/ViewType';
-import { convertCoreViewTypeToViewType } from '@/views/utils/convertCoreViewTypeToViewType';
-import { ViewType as CoreViewType } from '~/generated-metadata/graphql';
-
-describe('convertCoreViewTypeToViewType', () => {
- it('should convert TABLE to Table', () => {
- expect(convertCoreViewTypeToViewType(CoreViewType.TABLE)).toBe(
- ViewType.Table,
- );
- });
-
- it('should convert KANBAN to Kanban', () => {
- expect(convertCoreViewTypeToViewType(CoreViewType.KANBAN)).toBe(
- ViewType.Kanban,
- );
- });
-
- it('should convert CALENDAR to Calendar', () => {
- expect(convertCoreViewTypeToViewType(CoreViewType.CALENDAR)).toBe(
- ViewType.Calendar,
- );
- });
-
- it('should convert FIELDS_WIDGET to FieldsWidget', () => {
- expect(convertCoreViewTypeToViewType(CoreViewType.FIELDS_WIDGET)).toBe(
- ViewType.FieldsWidget,
- );
- });
-
- it('should fallback to Table for unknown values', () => {
- expect(convertCoreViewTypeToViewType('UNKNOWN' as CoreViewType)).toBe(
- ViewType.Table,
- );
- });
-});
diff --git a/packages/twenty-front/src/modules/views/utils/__tests__/getViewFiltersToCreate.test.ts b/packages/twenty-front/src/modules/views/utils/__tests__/getViewFiltersToCreate.test.ts
index dc736c44624..cd621d847e6 100644
--- a/packages/twenty-front/src/modules/views/utils/__tests__/getViewFiltersToCreate.test.ts
+++ b/packages/twenty-front/src/modules/views/utils/__tests__/getViewFiltersToCreate.test.ts
@@ -4,7 +4,6 @@ import { getViewFiltersToCreate } from '@/views/utils/getViewFiltersToCreate';
describe('getViewFiltersToCreate', () => {
const baseFilter: ViewFilter = {
- __typename: 'ViewFilter',
id: 'filter-1',
fieldMetadataId: 'field-1',
operand: ViewFilterOperand.CONTAINS,
diff --git a/packages/twenty-front/src/modules/views/utils/__tests__/getViewFiltersToDelete.test.ts b/packages/twenty-front/src/modules/views/utils/__tests__/getViewFiltersToDelete.test.ts
index 61ee89a7a4e..55509122e3e 100644
--- a/packages/twenty-front/src/modules/views/utils/__tests__/getViewFiltersToDelete.test.ts
+++ b/packages/twenty-front/src/modules/views/utils/__tests__/getViewFiltersToDelete.test.ts
@@ -4,7 +4,6 @@ import { getViewFiltersToDelete } from '@/views/utils/getViewFiltersToDelete';
describe('getViewFiltersToDelete', () => {
const baseFilter: ViewFilter = {
- __typename: 'ViewFilter',
id: 'filter-1',
fieldMetadataId: 'field-1',
operand: ViewFilterOperand.CONTAINS,
diff --git a/packages/twenty-front/src/modules/views/utils/__tests__/getViewFiltersToUpdate.test.ts b/packages/twenty-front/src/modules/views/utils/__tests__/getViewFiltersToUpdate.test.ts
index 95116bd39d3..b3e940de401 100644
--- a/packages/twenty-front/src/modules/views/utils/__tests__/getViewFiltersToUpdate.test.ts
+++ b/packages/twenty-front/src/modules/views/utils/__tests__/getViewFiltersToUpdate.test.ts
@@ -4,7 +4,6 @@ import { getViewFiltersToUpdate } from '@/views/utils/getViewFiltersToUpdate';
describe('getViewFiltersToUpdate', () => {
const baseFilter: ViewFilter = {
- __typename: 'ViewFilter',
id: 'filter-1',
fieldMetadataId: 'field-1',
operand: ViewFilterOperand.CONTAINS,
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 6508559cc28..93dc386acd2 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
@@ -4,7 +4,6 @@ import { type ViewSort } from '@/views/types/ViewSort';
describe('getViewSortsToCreate', () => {
const baseSort: ViewSort = {
- __typename: 'ViewSort',
id: 'sort-1',
fieldMetadataId: 'field-1',
direction: ViewSortDirection.ASC,
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 c60635f07c3..775f832a27d 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
@@ -4,7 +4,6 @@ import { getViewSortsToDelete } from '@/views/utils/getViewSortsToDelete';
describe('getViewSortsToDelete', () => {
const baseSort: ViewSort = {
- __typename: 'ViewSort',
id: 'sort-1',
fieldMetadataId: 'field-1',
direction: ViewSortDirection.ASC,
@@ -58,7 +57,6 @@ describe('getViewSortsToDelete', () => {
it('should not delete sorts that match in both fieldMetadataId and direction', () => {
const existingSort = { ...baseSort };
const matchingSort = {
- __typename: 'ViewSort',
id: 'sort-2',
fieldMetadataId: 'field-1',
direction: ViewSortDirection.ASC,
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 6449e4c3384..a127f8b9cef 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
@@ -4,7 +4,6 @@ import { getViewSortsToUpdate } from '@/views/utils/getViewSortsToUpdate';
describe('getViewSortsToUpdate', () => {
const baseSort: ViewSort = {
- __typename: 'ViewSort',
id: 'sort-1',
fieldMetadataId: 'field-1',
direction: ViewSortDirection.ASC,
diff --git a/packages/twenty-front/src/modules/views/utils/__tests__/mapRecordFilterGroupToViewFilterGroup.test.ts b/packages/twenty-front/src/modules/views/utils/__tests__/mapRecordFilterGroupToViewFilterGroup.test.ts
index 2f683dc1146..590905d91eb 100644
--- a/packages/twenty-front/src/modules/views/utils/__tests__/mapRecordFilterGroupToViewFilterGroup.test.ts
+++ b/packages/twenty-front/src/modules/views/utils/__tests__/mapRecordFilterGroupToViewFilterGroup.test.ts
@@ -3,12 +3,11 @@ import { AggregateOperations } from '@/object-record/record-table/constants/Aggr
import { type View } from '@/views/types/View';
import { type ViewFilterGroup } from '@/views/types/ViewFilterGroup';
import { ViewFilterGroupLogicalOperator } from '@/views/types/ViewFilterGroupLogicalOperator';
-import { ViewOpenRecordInType } from '@/views/types/ViewOpenRecordInType';
import { ViewType } from '@/views/types/ViewType';
import { mapRecordFilterGroupToViewFilterGroup } from '@/views/utils/mapRecordFilterGroupToViewFilterGroup';
import { RecordFilterGroupLogicalOperator } from 'twenty-shared/types';
import { isDefined } from 'twenty-shared/utils';
-import { ViewVisibility } from '~/generated-metadata/graphql';
+import { ViewOpenRecordIn, ViewVisibility } from '~/generated-metadata/graphql';
import { generatedMockObjectMetadataItems } from '~/testing/utils/generatedMockObjectMetadataItems';
const mockObjectMetadataItemNameSingular = 'company';
@@ -30,10 +29,10 @@ describe('mapRecordFilterGroupToViewFilterGroup', () => {
objectMetadataId: mockObjectMetadataItem.id,
viewFilters: [],
viewFilterGroups: [],
- type: ViewType.Table,
+ type: ViewType.TABLE,
key: null,
isCompact: false,
- openRecordIn: ViewOpenRecordInType.SIDE_PANEL,
+ openRecordIn: ViewOpenRecordIn.SIDE_PANEL,
viewFields: [],
viewGroups: [],
viewSorts: [],
@@ -44,7 +43,6 @@ describe('mapRecordFilterGroupToViewFilterGroup', () => {
kanbanAggregateOperationFieldMetadataId: '',
position: 0,
visibility: ViewVisibility.WORKSPACE,
- __typename: 'View',
};
it('should correctly map single record filter group', () => {
@@ -64,7 +62,6 @@ describe('mapRecordFilterGroupToViewFilterGroup', () => {
logicalOperator: ViewFilterGroupLogicalOperator.AND,
positionInViewFilterGroup: 0,
viewId: 'view-1',
- __typename: 'ViewFilterGroup',
},
];
@@ -108,7 +105,6 @@ describe('mapRecordFilterGroupToViewFilterGroup', () => {
logicalOperator: ViewFilterGroupLogicalOperator.OR,
positionInViewFilterGroup: 0,
viewId: 'view-1',
- __typename: 'ViewFilterGroup',
},
{
id: 'filter-group-child-1',
@@ -116,7 +112,6 @@ describe('mapRecordFilterGroupToViewFilterGroup', () => {
logicalOperator: ViewFilterGroupLogicalOperator.AND,
positionInViewFilterGroup: 1,
viewId: 'view-1',
- __typename: 'ViewFilterGroup',
},
{
id: 'filter-group-child-2',
@@ -124,7 +119,6 @@ describe('mapRecordFilterGroupToViewFilterGroup', () => {
logicalOperator: ViewFilterGroupLogicalOperator.AND,
positionInViewFilterGroup: 2,
viewId: 'view-1',
- __typename: 'ViewFilterGroup',
},
];
diff --git a/packages/twenty-front/src/modules/views/utils/__tests__/mapViewFilterGroupsToRecordFilterGroups.test.ts b/packages/twenty-front/src/modules/views/utils/__tests__/mapViewFilterGroupsToRecordFilterGroups.test.ts
index 0c0a4dc5a0d..a5d9a6c8004 100644
--- a/packages/twenty-front/src/modules/views/utils/__tests__/mapViewFilterGroupsToRecordFilterGroups.test.ts
+++ b/packages/twenty-front/src/modules/views/utils/__tests__/mapViewFilterGroupsToRecordFilterGroups.test.ts
@@ -17,7 +17,6 @@ describe('mapViewFilterGroupsToRecordFilterGroups', () => {
logicalOperator: ViewFilterGroupLogicalOperator.AND,
positionInViewFilterGroup: 0,
viewId: 'view-1',
- __typename: 'ViewFilterGroup',
},
];
@@ -43,7 +42,6 @@ describe('mapViewFilterGroupsToRecordFilterGroups', () => {
logicalOperator: ViewFilterGroupLogicalOperator.OR,
positionInViewFilterGroup: 0,
viewId: 'view-1',
- __typename: 'ViewFilterGroup',
},
{
id: 'filter-group-child-1',
@@ -51,7 +49,6 @@ describe('mapViewFilterGroupsToRecordFilterGroups', () => {
logicalOperator: ViewFilterGroupLogicalOperator.AND,
positionInViewFilterGroup: 1,
viewId: 'view-1',
- __typename: 'ViewFilterGroup',
},
{
id: 'filter-group-child-2',
@@ -59,7 +56,6 @@ describe('mapViewFilterGroupsToRecordFilterGroups', () => {
logicalOperator: ViewFilterGroupLogicalOperator.AND,
positionInViewFilterGroup: 2,
viewId: 'view-1',
- __typename: 'ViewFilterGroup',
},
];
diff --git a/packages/twenty-front/src/modules/views/utils/__tests__/viewMapFunctions.test.ts b/packages/twenty-front/src/modules/views/utils/__tests__/viewMapFunctions.test.ts
index c4bfa140eeb..795fed6e039 100644
--- a/packages/twenty-front/src/modules/views/utils/__tests__/viewMapFunctions.test.ts
+++ b/packages/twenty-front/src/modules/views/utils/__tests__/viewMapFunctions.test.ts
@@ -24,7 +24,6 @@ describe('mapViewFiltersToFilters', () => {
it('should map each ViewFilter object to a corresponding Filter object', () => {
const viewFilters: ViewFilter[] = [
{
- __typename: 'ViewFilter',
id: 'id',
fieldMetadataId: '05731f68-6e7a-4903-8374-c0b6a9063482',
value: 'testValue',
@@ -56,7 +55,6 @@ describe('mapViewFieldsToColumnDefinitions', () => {
it('should map visible ViewFields to ColumnDefinitions and filter out missing fieldMetadata', () => {
const viewFields: ViewField[] = [
{
- __typename: 'ViewField',
id: '1',
fieldMetadataId: '1',
position: 1,
@@ -76,7 +74,6 @@ describe('mapViewFieldsToColumnDefinitions', () => {
},
},
{
- __typename: 'ViewField',
id: '2',
fieldMetadataId: '2',
position: 2,
@@ -96,7 +93,6 @@ describe('mapViewFieldsToColumnDefinitions', () => {
},
},
{
- __typename: 'ViewField',
id: '3',
fieldMetadataId: '3',
position: 3,
@@ -191,7 +187,6 @@ describe('mapColumnDefinitionsToViewFields', () => {
const expectedViewFields = [
{
- __typename: 'ViewField',
id: 'custom-id-1',
fieldMetadataId: 1,
position: 1,
@@ -201,7 +196,6 @@ describe('mapColumnDefinitionsToViewFields', () => {
size: undefined,
},
{
- __typename: 'ViewField',
id: '',
fieldMetadataId: 2,
position: 2,
diff --git a/packages/twenty-front/src/modules/views/utils/areViewSortsEqual.ts b/packages/twenty-front/src/modules/views/utils/areViewSortsEqual.ts
index 742e9561cf6..259368e2ac0 100644
--- a/packages/twenty-front/src/modules/views/utils/areViewSortsEqual.ts
+++ b/packages/twenty-front/src/modules/views/utils/areViewSortsEqual.ts
@@ -1,22 +1,22 @@
-import { type CoreViewSort } from '~/generated-metadata/graphql';
+import { type ViewSort } from '~/generated-metadata/graphql';
import { compareStrictlyExceptForNullAndUndefined } from '~/utils/compareStrictlyExceptForNullAndUndefined';
export const areViewSortsEqual = (
- viewSortA: Pick<CoreViewSort, 'fieldMetadataId' | 'direction'>,
- viewSortB: Pick<CoreViewSort, 'fieldMetadataId' | 'direction'>,
+ viewSortA: Pick<ViewSort, 'fieldMetadataId' | 'direction'>,
+ viewSortB: Pick<ViewSort, 'fieldMetadataId' | 'direction'>,
) => {
const propertiesToCompare: (keyof Pick<
- CoreViewSort,
+ ViewSort,
'fieldMetadataId' | 'direction'
>)[] = ['fieldMetadataId', 'direction'];
return propertiesToCompare.every((property) =>
compareStrictlyExceptForNullAndUndefined(
viewSortA[
- property as keyof Pick<CoreViewSort, 'fieldMetadataId' | 'direction'>
+ property as keyof Pick<ViewSort, 'fieldMetadataId' | 'direction'>
],
viewSortB[
- property as keyof Pick<CoreViewSort, 'fieldMetadataId' | 'direction'>
+ property as keyof Pick<ViewSort, 'fieldMetadataId' | 'direction'>
],
),
);
diff --git a/packages/twenty-front/src/modules/views/utils/convertCoreViewFieldGroupToViewFieldGroup.ts b/packages/twenty-front/src/modules/views/utils/convertCoreViewFieldGroupToViewFieldGroup.ts
deleted file mode 100644
index 1fd9f8ef0ae..00000000000
--- a/packages/twenty-front/src/modules/views/utils/convertCoreViewFieldGroupToViewFieldGroup.ts
+++ /dev/null
@@ -1,39 +0,0 @@
-import { type ViewFieldGroup } from '@/views/types/ViewFieldGroup';
-import { convertCoreViewFieldToViewField } from '@/views/utils/convertCoreViewFieldToViewField';
-import {
- type CoreViewField,
- type CoreViewFieldGroup,
-} from '~/generated-metadata/graphql';
-
-type CoreViewFieldGroupInput = Pick<
- CoreViewFieldGroup,
- 'id' | 'name' | 'position' | 'isVisible' | 'viewId' | 'isOverridden'
-> & {
- viewFields: Pick<
- CoreViewField,
- | 'id'
- | 'fieldMetadataId'
- | 'position'
- | 'isVisible'
- | 'size'
- | 'aggregateOperation'
- | 'isOverridden'
- >[];
-};
-
-export const convertCoreViewFieldGroupToViewFieldGroup = (
- coreViewFieldGroup: CoreViewFieldGroupInput,
-): ViewFieldGroup => {
- return {
- __typename: 'ViewFieldGroup',
- id: coreViewFieldGroup.id,
- name: coreViewFieldGroup.name,
- position: coreViewFieldGroup.position,
- isVisible: coreViewFieldGroup.isVisible,
- isOverridden: coreViewFieldGroup.isOverridden ?? false,
- viewId: coreViewFieldGroup.viewId,
- viewFields: coreViewFieldGroup.viewFields.map(
- convertCoreViewFieldToViewField,
- ),
- };
-};
diff --git a/packages/twenty-front/src/modules/views/utils/convertCoreViewFieldToViewField.ts b/packages/twenty-front/src/modules/views/utils/convertCoreViewFieldToViewField.ts
deleted file mode 100644
index c4dbde62280..00000000000
--- a/packages/twenty-front/src/modules/views/utils/convertCoreViewFieldToViewField.ts
+++ /dev/null
@@ -1,32 +0,0 @@
-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-metadata/graphql';
-
-export const convertCoreViewFieldToViewField = (
- coreViewField: Pick<
- CoreViewField,
- | 'id'
- | 'fieldMetadataId'
- | 'position'
- | 'isVisible'
- | 'size'
- | 'aggregateOperation'
- | 'isOverridden'
- >,
-): ViewField => {
- const viewField: ViewField = {
- __typename: 'ViewField',
- id: coreViewField.id,
- fieldMetadataId: coreViewField.fieldMetadataId,
- position: coreViewField.position,
- isVisible: coreViewField.isVisible,
- size: coreViewField.size,
- aggregateOperation: coreViewField.aggregateOperation ?? null,
- isOverridden: coreViewField.isOverridden ?? false,
- // TODO: remove this once we have refactored the view field definition
- definition: undefined as unknown as ColumnDefinition<FieldMetadata>,
- };
-
- return viewField;
-};
diff --git a/packages/twenty-front/src/modules/views/utils/convertCoreViewFilterGroupToViewFilterGroup.ts b/packages/twenty-front/src/modules/views/utils/convertCoreViewFilterGroupToViewFilterGroup.ts
deleted file mode 100644
index 57a46fc9895..00000000000
--- a/packages/twenty-front/src/modules/views/utils/convertCoreViewFilterGroupToViewFilterGroup.ts
+++ /dev/null
@@ -1,28 +0,0 @@
-import { type ViewFilterGroup } from '@/views/types/ViewFilterGroup';
-import { ViewFilterGroupLogicalOperator } from '@/views/types/ViewFilterGroupLogicalOperator';
-import { type CoreViewFilterGroup } from '~/generated-metadata/graphql';
-
-export const convertCoreViewFilterGroupToViewFilterGroup = (
- coreViewFilterGroup: Pick<
- CoreViewFilterGroup,
- | 'id'
- | 'viewId'
- | 'parentViewFilterGroupId'
- | 'logicalOperator'
- | 'positionInViewFilterGroup'
- >,
-): ViewFilterGroup => {
- return {
- __typename: 'ViewFilterGroup',
- id: coreViewFilterGroup.id,
- viewId: coreViewFilterGroup.viewId,
- parentViewFilterGroupId:
- coreViewFilterGroup.parentViewFilterGroupId ?? null,
- logicalOperator:
- coreViewFilterGroup.logicalOperator === 'AND'
- ? ViewFilterGroupLogicalOperator.AND
- : ViewFilterGroupLogicalOperator.OR,
- positionInViewFilterGroup:
- coreViewFilterGroup.positionInViewFilterGroup ?? null,
- };
-};
diff --git a/packages/twenty-front/src/modules/views/utils/convertCoreViewFilterToViewFilter.ts b/packages/twenty-front/src/modules/views/utils/convertCoreViewFilterToViewFilter.ts
deleted file mode 100644
index 9d6927762a8..00000000000
--- a/packages/twenty-front/src/modules/views/utils/convertCoreViewFilterToViewFilter.ts
+++ /dev/null
@@ -1,29 +0,0 @@
-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-metadata/graphql';
-
-export const convertCoreViewFilterToViewFilter = (
- coreViewFilter: Pick<
- CoreViewFilter,
- | 'id'
- | 'fieldMetadataId'
- | 'operand'
- | 'value'
- | 'viewFilterGroupId'
- | 'positionInViewFilterGroup'
- | 'subFieldName'
- >,
-): ViewFilter => {
- return {
- __typename: 'ViewFilter',
- id: coreViewFilter.id,
- fieldMetadataId: coreViewFilter.fieldMetadataId,
- operand: coreViewFilter.operand,
- value: convertViewFilterValueToString(coreViewFilter.value),
- displayValue: convertViewFilterValueToString(coreViewFilter.value),
- 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
deleted file mode 100644
index 1d9523216f9..00000000000
--- a/packages/twenty-front/src/modules/views/utils/convertCoreViewGroupToViewGroup.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-import { type ViewGroup } from '@/views/types/ViewGroup';
-import { type CoreViewGroup } from '~/generated-metadata/graphql';
-
-export const convertCoreViewGroupToViewGroup = (
- coreViewGroup: Pick<
- CoreViewGroup,
- 'id' | 'isVisible' | 'fieldValue' | 'position'
- >,
-): ViewGroup => {
- return {
- __typename: 'ViewGroup',
- id: coreViewGroup.id,
- isVisible: coreViewGroup.isVisible,
- fieldValue: coreViewGroup.fieldValue,
- position: coreViewGroup.position,
- };
-};
diff --git a/packages/twenty-front/src/modules/views/utils/convertCoreViewKeyToViewKey.ts b/packages/twenty-front/src/modules/views/utils/convertCoreViewKeyToViewKey.ts
deleted file mode 100644
index 5302fe8346f..00000000000
--- a/packages/twenty-front/src/modules/views/utils/convertCoreViewKeyToViewKey.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-import { ViewKey } from '@/views/types/ViewKey';
-import { ViewKey as CoreViewKey } from '~/generated-metadata/graphql';
-
-export const convertCoreViewKeyToViewKey = (
- coreViewKey: CoreViewKey | null | undefined,
-): ViewKey | null => {
- return coreViewKey === CoreViewKey.INDEX ? ViewKey.Index : null;
-};
diff --git a/packages/twenty-front/src/modules/views/utils/convertCoreViewOpenRecordInToViewOpenRecordIn.ts b/packages/twenty-front/src/modules/views/utils/convertCoreViewOpenRecordInToViewOpenRecordIn.ts
deleted file mode 100644
index 38ec6b89fe4..00000000000
--- a/packages/twenty-front/src/modules/views/utils/convertCoreViewOpenRecordInToViewOpenRecordIn.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-import { ViewOpenRecordInType } from '@/views/types/ViewOpenRecordInType';
-import { ViewOpenRecordIn as CoreViewOpenRecordIn } from '~/generated-metadata/graphql';
-
-export const convertCoreViewOpenRecordInToViewOpenRecordIn = (
- openIn: CoreViewOpenRecordIn,
-): ViewOpenRecordInType => {
- return openIn === CoreViewOpenRecordIn.SIDE_PANEL
- ? ViewOpenRecordInType.SIDE_PANEL
- : ViewOpenRecordInType.RECORD_PAGE;
-};
diff --git a/packages/twenty-front/src/modules/views/utils/convertCoreViewSortToViewSort.ts b/packages/twenty-front/src/modules/views/utils/convertCoreViewSortToViewSort.ts
deleted file mode 100644
index 3f5cf010164..00000000000
--- a/packages/twenty-front/src/modules/views/utils/convertCoreViewSortToViewSort.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-import type { CoreViewSort } from '~/generated-metadata/graphql';
-import type { ViewSort } from '@/views/types/ViewSort';
-
-export const convertCoreViewSortToViewSort = (
- coreViewSort: Pick<
- CoreViewSort,
- 'id' | 'direction' | 'fieldMetadataId' | 'viewId'
- >,
-): ViewSort => {
- return {
- __typename: 'ViewSort',
- id: coreViewSort.id,
- direction: coreViewSort.direction,
- fieldMetadataId: coreViewSort.fieldMetadataId,
- viewId: coreViewSort.viewId,
- };
-};
diff --git a/packages/twenty-front/src/modules/views/utils/convertCoreViewToView.ts b/packages/twenty-front/src/modules/views/utils/convertCoreViewToView.ts
deleted file mode 100644
index d73c37087da..00000000000
--- a/packages/twenty-front/src/modules/views/utils/convertCoreViewToView.ts
+++ /dev/null
@@ -1,61 +0,0 @@
-import { type CoreViewWithRelations } from '@/views/types/CoreViewWithRelations';
-import { type View } from '@/views/types/View';
-import { convertCoreViewFieldGroupToViewFieldGroup } from '@/views/utils/convertCoreViewFieldGroupToViewFieldGroup';
-import { convertCoreViewFieldToViewField } from '@/views/utils/convertCoreViewFieldToViewField';
-import { convertCoreViewFilterGroupToViewFilterGroup } from '@/views/utils/convertCoreViewFilterGroupToViewFilterGroup';
-import { convertCoreViewFilterToViewFilter } from '@/views/utils/convertCoreViewFilterToViewFilter';
-import { convertCoreViewGroupToViewGroup } from '@/views/utils/convertCoreViewGroupToViewGroup';
-import { convertCoreViewKeyToViewKey } from '@/views/utils/convertCoreViewKeyToViewKey';
-import { convertCoreViewOpenRecordInToViewOpenRecordIn } from '@/views/utils/convertCoreViewOpenRecordInToViewOpenRecordIn';
-import { convertCoreViewTypeToViewType } from '@/views/utils/convertCoreViewTypeToViewType';
-import { ViewVisibility } from '~/generated-metadata/graphql';
-import { convertCoreViewSortToViewSort } from '@/views/utils/convertCoreViewSortToViewSort';
-
-export const convertCoreViewToView = (
- coreView: CoreViewWithRelations,
-): View => {
- const convertedKey = convertCoreViewKeyToViewKey(coreView.key);
- const convertedOpenRecordIn = convertCoreViewOpenRecordInToViewOpenRecordIn(
- coreView.openRecordIn,
- );
- const convertedType = convertCoreViewTypeToViewType(coreView.type);
-
- return {
- id: coreView.id,
- name: coreView.name,
- type: convertedType,
- key: convertedKey,
- objectMetadataId: coreView.objectMetadataId,
- isCompact: coreView.isCompact,
- viewFields: coreView.viewFields?.map((viewField) =>
- convertCoreViewFieldToViewField(viewField),
- ),
- viewFieldGroups: coreView.viewFieldGroups?.map((viewFieldGroup) =>
- convertCoreViewFieldGroupToViewFieldGroup(viewFieldGroup),
- ),
- viewGroups: coreView.viewGroups?.map((viewGroup) =>
- convertCoreViewGroupToViewGroup(viewGroup),
- ),
- viewFilters: coreView.viewFilters?.map((viewFilter) =>
- convertCoreViewFilterToViewFilter(viewFilter),
- ),
- viewFilterGroups: coreView.viewFilterGroups?.map(
- convertCoreViewFilterGroupToViewFilterGroup,
- ),
- viewSorts: coreView.viewSorts?.map(convertCoreViewSortToViewSort),
- mainGroupByFieldMetadataId: coreView.mainGroupByFieldMetadataId ?? null,
- shouldHideEmptyGroups: coreView.shouldHideEmptyGroups,
- kanbanAggregateOperation: coreView.kanbanAggregateOperation ?? null,
- kanbanAggregateOperationFieldMetadataId:
- coreView.kanbanAggregateOperationFieldMetadataId ?? null,
- calendarFieldMetadataId: coreView.calendarFieldMetadataId ?? null,
- calendarLayout: coreView.calendarLayout ?? null,
- position: coreView.position,
- icon: coreView.icon,
- openRecordIn: convertedOpenRecordIn,
- anyFieldFilterValue: coreView.anyFieldFilterValue ?? null,
- visibility: coreView.visibility ?? ViewVisibility.UNLISTED,
- createdByUserWorkspaceId: coreView.createdByUserWorkspaceId,
- __typename: 'View',
- };
-};
diff --git a/packages/twenty-front/src/modules/views/utils/convertCoreViewTypeToViewType.ts b/packages/twenty-front/src/modules/views/utils/convertCoreViewTypeToViewType.ts
deleted file mode 100644
index 055b3211536..00000000000
--- a/packages/twenty-front/src/modules/views/utils/convertCoreViewTypeToViewType.ts
+++ /dev/null
@@ -1,19 +0,0 @@
-import { ViewType } from '@/views/types/ViewType';
-import { ViewType as CoreViewType } from '~/generated-metadata/graphql';
-
-export const convertCoreViewTypeToViewType = (
- coreViewType: CoreViewType,
-): ViewType => {
- const coreViewTypeToViewTypeMapping = {
- [CoreViewType.KANBAN]: ViewType.Kanban,
- [CoreViewType.TABLE]: ViewType.Table,
- [CoreViewType.CALENDAR]: ViewType.Calendar,
- [CoreViewType.FIELDS_WIDGET]: ViewType.FieldsWidget,
- };
-
- return (
- coreViewTypeToViewTypeMapping[
- coreViewType as keyof typeof coreViewTypeToViewTypeMapping
- ] ?? ViewType.Table
- );
-};
diff --git a/packages/twenty-front/src/modules/views/utils/convertUpdateViewInputToCore.ts b/packages/twenty-front/src/modules/views/utils/convertUpdateViewInputToGql.ts
similarity index 63%
rename from packages/twenty-front/src/modules/views/utils/convertUpdateViewInputToCore.ts
rename to packages/twenty-front/src/modules/views/utils/convertUpdateViewInputToGql.ts
index be55e0b9ac6..a5c2cc60c18 100644
--- a/packages/twenty-front/src/modules/views/utils/convertUpdateViewInputToCore.ts
+++ b/packages/twenty-front/src/modules/views/utils/convertUpdateViewInputToGql.ts
@@ -1,23 +1,10 @@
import { type GraphQLView } from '@/views/types/GraphQLView';
-import { convertViewKeyToCore } from '@/views/utils/convertViewKeyToCore';
-import { convertViewOpenRecordInToCore } from '@/views/utils/convertViewOpenRecordInToCore';
-import { convertViewTypeToCore } from '@/views/utils/convertViewTypeToCore';
import { isDefined } from 'twenty-shared/utils';
import { type UpdateViewInput } from '~/generated-metadata/graphql';
-export const convertUpdateViewInputToCore = (
+export const convertUpdateViewInputToGql = (
view: Partial<GraphQLView & { __typename?: string }>,
): UpdateViewInput => {
- const convertedKey = isDefined(view.key)
- ? convertViewKeyToCore(view.key)
- : undefined;
- const convertedOpenRecordIn = isDefined(view.openRecordIn)
- ? convertViewOpenRecordInToCore(view.openRecordIn)
- : undefined;
- const convertedType = isDefined(view.type)
- ? convertViewTypeToCore(view.type)
- : undefined;
-
return {
id: view.id,
...(view.name && { name: view.name }),
@@ -34,11 +21,11 @@ export const convertUpdateViewInputToCore = (
...(isDefined(view.anyFieldFilterValue) && {
anyFieldFilterValue: view.anyFieldFilterValue,
}),
- ...(isDefined(convertedKey) && { key: convertedKey }),
- ...(isDefined(convertedOpenRecordIn) && {
- openRecordIn: convertedOpenRecordIn,
+ ...(isDefined(view.key) && { key: view.key }),
+ ...(isDefined(view.openRecordIn) && {
+ openRecordIn: view.openRecordIn,
}),
- ...(isDefined(convertedType) && { type: convertedType }),
+ ...(isDefined(view.type) && { type: view.type }),
...(isDefined(view.calendarLayout) && {
calendarLayout: view.calendarLayout,
}),
diff --git a/packages/twenty-front/src/modules/views/utils/convertViewKeyToCore.ts b/packages/twenty-front/src/modules/views/utils/convertViewKeyToCore.ts
deleted file mode 100644
index 2c4de700a81..00000000000
--- a/packages/twenty-front/src/modules/views/utils/convertViewKeyToCore.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-import { ViewKey } from '~/generated-metadata/graphql';
-
-export const convertViewKeyToCore = (
- viewKey: string | null | undefined,
-): ViewKey | null => {
- return viewKey === 'INDEX' ? ViewKey.INDEX : null;
-};
diff --git a/packages/twenty-front/src/modules/views/utils/convertViewOpenRecordInToCore.ts b/packages/twenty-front/src/modules/views/utils/convertViewOpenRecordInToCore.ts
deleted file mode 100644
index 5dd87bcab51..00000000000
--- a/packages/twenty-front/src/modules/views/utils/convertViewOpenRecordInToCore.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-import { ViewOpenRecordIn } from '~/generated-metadata/graphql';
-
-export const convertViewOpenRecordInToCore = (
- viewOpenRecordIn: string,
-): ViewOpenRecordIn => {
- return viewOpenRecordIn === ViewOpenRecordIn.SIDE_PANEL
- ? ViewOpenRecordIn.SIDE_PANEL
- : ViewOpenRecordIn.RECORD_PAGE;
-};
diff --git a/packages/twenty-front/src/modules/views/utils/convertViewTypeToCore.ts b/packages/twenty-front/src/modules/views/utils/convertViewTypeToCore.ts
deleted file mode 100644
index c2e85e249cf..00000000000
--- a/packages/twenty-front/src/modules/views/utils/convertViewTypeToCore.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-import { ViewType } from '~/generated-metadata/graphql';
-
-export const convertViewTypeToCore = (viewType: string): ViewType => {
- const viewTypeToCoreMapping = {
- kanban: ViewType.KANBAN,
- table: ViewType.TABLE,
- calendar: ViewType.CALENDAR,
- };
-
- return (
- viewTypeToCoreMapping[viewType as keyof typeof viewTypeToCoreMapping] ??
- ViewType.TABLE
- );
-};
diff --git a/packages/twenty-front/src/modules/views/utils/mapBoardFieldDefinitionsToViewFields.ts b/packages/twenty-front/src/modules/views/utils/mapBoardFieldDefinitionsToViewFields.ts
index 36d52226a4a..c205b0be674 100644
--- a/packages/twenty-front/src/modules/views/utils/mapBoardFieldDefinitionsToViewFields.ts
+++ b/packages/twenty-front/src/modules/views/utils/mapBoardFieldDefinitionsToViewFields.ts
@@ -7,7 +7,6 @@ export const mapBoardFieldDefinitionsToViewFields = (
): ViewField[] => {
return fieldsDefinitions.map(
(fieldDefinition): ViewField => ({
- __typename: 'ViewField',
id: fieldDefinition.viewFieldId || '',
fieldMetadataId: fieldDefinition.fieldMetadataId,
size: 0,
diff --git a/packages/twenty-front/src/modules/views/utils/mapColumnDefinitionToViewField.ts b/packages/twenty-front/src/modules/views/utils/mapColumnDefinitionToViewField.ts
index 861e4c98608..8dcf30ff099 100644
--- a/packages/twenty-front/src/modules/views/utils/mapColumnDefinitionToViewField.ts
+++ b/packages/twenty-front/src/modules/views/utils/mapColumnDefinitionToViewField.ts
@@ -7,7 +7,6 @@ export const mapColumnDefinitionsToViewFields = (
columnDefinitions: ColumnDefinition<FieldMetadata>[],
): ViewField[] => {
return columnDefinitions.map((columnDefinition) => ({
- __typename: 'ViewField',
id: columnDefinition.viewFieldId || '',
fieldMetadataId: columnDefinition.fieldMetadataId,
position: columnDefinition.position,
diff --git a/packages/twenty-front/src/modules/views/utils/mapRecordFieldToViewField.ts b/packages/twenty-front/src/modules/views/utils/mapRecordFieldToViewField.ts
index 4f90e789543..82c485c197c 100644
--- a/packages/twenty-front/src/modules/views/utils/mapRecordFieldToViewField.ts
+++ b/packages/twenty-front/src/modules/views/utils/mapRecordFieldToViewField.ts
@@ -10,7 +10,6 @@ export const mapRecordFieldToViewField = (recordField: RecordField) => {
size: recordField.size,
aggregateOperation: recordField.aggregateOperation,
isOverridden: false,
- __typename: 'ViewField',
};
return viewField;
diff --git a/packages/twenty-front/src/modules/views/utils/mapRecordFilterGroupToViewFilterGroup.ts b/packages/twenty-front/src/modules/views/utils/mapRecordFilterGroupToViewFilterGroup.ts
index 79fe7eba660..6d6c4425d89 100644
--- a/packages/twenty-front/src/modules/views/utils/mapRecordFilterGroupToViewFilterGroup.ts
+++ b/packages/twenty-front/src/modules/views/utils/mapRecordFilterGroupToViewFilterGroup.ts
@@ -11,7 +11,6 @@ export const mapRecordFilterGroupToViewFilterGroup = ({
view: Pick<View, 'id'>;
}): ViewFilterGroup => {
return {
- __typename: 'ViewFilterGroup',
id: recordFilterGroup.id,
logicalOperator:
mapRecordFilterGroupLogicalOperatorToViewFilterGroupLogicalOperator({
diff --git a/packages/twenty-front/src/modules/views/utils/mapRecordFilterToViewFilter.ts b/packages/twenty-front/src/modules/views/utils/mapRecordFilterToViewFilter.ts
index f71a4e446e1..ff2a6099173 100644
--- a/packages/twenty-front/src/modules/views/utils/mapRecordFilterToViewFilter.ts
+++ b/packages/twenty-front/src/modules/views/utils/mapRecordFilterToViewFilter.ts
@@ -5,7 +5,6 @@ export const mapRecordFilterToViewFilter = (
recordFilter: RecordFilter,
): ViewFilter => {
return {
- __typename: 'ViewFilter',
displayValue: recordFilter.displayValue,
fieldMetadataId: recordFilter.fieldMetadataId,
id: recordFilter.id,
diff --git a/packages/twenty-front/src/modules/views/utils/mapRecordSortToViewSort.ts b/packages/twenty-front/src/modules/views/utils/mapRecordSortToViewSort.ts
index c24c381fe5c..2b060278f57 100644
--- a/packages/twenty-front/src/modules/views/utils/mapRecordSortToViewSort.ts
+++ b/packages/twenty-front/src/modules/views/utils/mapRecordSortToViewSort.ts
@@ -3,7 +3,6 @@ import { type ViewSort } from '@/views/types/ViewSort';
export const mapRecordSortToViewSort = (recordSort: RecordSort): ViewSort => {
return {
- __typename: 'ViewSort',
id: recordSort.id,
fieldMetadataId: recordSort.fieldMetadataId,
direction: recordSort.direction,
diff --git a/packages/twenty-front/src/modules/views/utils/mapViewFiltersToFilters.ts b/packages/twenty-front/src/modules/views/utils/mapViewFiltersToFilters.ts
index 38a34d28437..24c18775f68 100644
--- a/packages/twenty-front/src/modules/views/utils/mapViewFiltersToFilters.ts
+++ b/packages/twenty-front/src/modules/views/utils/mapViewFiltersToFilters.ts
@@ -5,11 +5,11 @@ 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-metadata/graphql';
+import { type ViewFilter as GqlViewFilter } from '~/generated-metadata/graphql';
import { type ViewFilter } from '@/views/types/ViewFilter';
export const mapViewFiltersToFilters = (
- viewFilters: ViewFilter[] | CoreViewFilter[],
+ viewFilters: ViewFilter[] | GqlViewFilter[],
availableFieldMetadataItems: FieldMetadataItem[],
): RecordFilter[] => {
return viewFilters
diff --git a/packages/twenty-front/src/modules/views/utils/recordGroupDefinitionToViewGroup.ts b/packages/twenty-front/src/modules/views/utils/recordGroupDefinitionToViewGroup.ts
index de711674ab1..e31afe53220 100644
--- a/packages/twenty-front/src/modules/views/utils/recordGroupDefinitionToViewGroup.ts
+++ b/packages/twenty-front/src/modules/views/utils/recordGroupDefinitionToViewGroup.ts
@@ -5,7 +5,6 @@ export const recordGroupDefinitionToViewGroup = (
recordGroup: RecordGroupDefinition,
): ViewGroup => {
return {
- __typename: 'ViewGroup',
id: recordGroup.id,
position: recordGroup.position,
isVisible: recordGroup.isVisible ?? true,
diff --git a/packages/twenty-front/src/modules/views/view-picker/components/ViewPickerContentCreateMode.tsx b/packages/twenty-front/src/modules/views/view-picker/components/ViewPickerContentCreateMode.tsx
index 10d9243df95..22683f3fd9c 100644
--- a/packages/twenty-front/src/modules/views/view-picker/components/ViewPickerContentCreateMode.tsx
+++ b/packages/twenty-front/src/modules/views/view-picker/components/ViewPickerContentCreateMode.tsx
@@ -104,7 +104,7 @@ export const ViewPickerContentCreateMode = () => {
}
if (
- viewPickerType === ViewType.Kanban &&
+ viewPickerType === ViewType.KANBAN &&
availableFieldsForGrouping.length === 0
) {
return;
@@ -188,7 +188,7 @@ export const ViewPickerContentCreateMode = () => {
dropdownId={VIEW_PICKER_VIEW_TYPE_DROPDOWN_ID}
/>
</ViewPickerSelectContainer>
- {viewPickerType === ViewType.Kanban && (
+ {viewPickerType === ViewType.KANBAN && (
<>
<ViewPickerSelectContainer>
<Select
@@ -219,7 +219,7 @@ export const ViewPickerContentCreateMode = () => {
)}
</>
)}
- {viewPickerType === ViewType.Calendar && (
+ {viewPickerType === ViewType.CALENDAR && (
<>
<ViewPickerSelectContainer>
<Select
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 1033f736dde..d0727b29bf1 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
@@ -6,7 +6,7 @@ import { useAtomComponentState } from '@/ui/utilities/state/jotai/hooks/useAtomC
import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';
import { useSetAtomComponentState } from '@/ui/utilities/state/jotai/hooks/useSetAtomComponentState';
import { useAtomFamilySelectorValue } from '@/ui/utilities/state/jotai/hooks/useAtomFamilySelectorValue';
-import { coreViewsFromObjectMetadataItemFamilySelector } from '@/views/states/selectors/coreViewsFromObjectMetadataItemFamilySelector';
+import { viewsFromObjectMetadataItemFamilySelector } from '@/views/states/selectors/viewsFromObjectMetadataItemFamilySelector';
import { viewTypeIconMapping } from '@/views/types/ViewType';
import { useGetAvailableFieldsForCalendar } from '@/views/view-picker/hooks/useGetAvailableFieldsForCalendar';
import { useGetAvailableFieldsToGroupRecordsBy } from '@/views/view-picker/hooks/useGetAvailableFieldsToGroupRecordsBy';
@@ -66,7 +66,7 @@ export const ViewPickerContentEffect = () => {
const { objectMetadataItem } = useContextStoreObjectMetadataItemOrThrow();
const viewsOnCurrentObject = useAtomFamilySelectorValue(
- coreViewsFromObjectMetadataItemFamilySelector,
+ viewsFromObjectMetadataItemFamilySelector,
{ objectMetadataItemId: objectMetadataItem.id },
);
diff --git a/packages/twenty-front/src/modules/views/view-picker/components/ViewPickerCreateButton.tsx b/packages/twenty-front/src/modules/views/view-picker/components/ViewPickerCreateButton.tsx
index 1448acb5e4e..dd5fd37c8ed 100644
--- a/packages/twenty-front/src/modules/views/view-picker/components/ViewPickerCreateButton.tsx
+++ b/packages/twenty-front/src/modules/views/view-picker/components/ViewPickerCreateButton.tsx
@@ -57,7 +57,7 @@ export const ViewPickerCreateButton = () => {
}
if (
- viewPickerType === ViewType.Kanban &&
+ viewPickerType === ViewType.KANBAN &&
availableFieldsForGrouping.length === 0
) {
return (
@@ -73,7 +73,7 @@ export const ViewPickerCreateButton = () => {
}
if (
- viewPickerType === ViewType.Calendar &&
+ viewPickerType === ViewType.CALENDAR &&
availableFieldsForCalendar.length === 0
) {
return (
@@ -89,7 +89,7 @@ export const ViewPickerCreateButton = () => {
}
if (
- viewPickerType !== ViewType.Kanban ||
+ viewPickerType !== ViewType.KANBAN ||
viewPickerMainGroupByFieldMetadataId !== ''
) {
return (
@@ -103,9 +103,9 @@ export const ViewPickerCreateButton = () => {
justify="center"
disabled={
viewPickerIsPersisting ||
- (viewPickerType === ViewType.Kanban &&
+ (viewPickerType === ViewType.KANBAN &&
viewPickerMainGroupByFieldMetadataId === '') ||
- (viewPickerType === ViewType.Calendar &&
+ (viewPickerType === ViewType.CALENDAR &&
viewPickerCalendarFieldMetadataId === '')
}
/>
diff --git a/packages/twenty-front/src/modules/views/view-picker/components/ViewPickerEditButton.tsx b/packages/twenty-front/src/modules/views/view-picker/components/ViewPickerEditButton.tsx
index fb9faf5c243..e50f00ebd2e 100644
--- a/packages/twenty-front/src/modules/views/view-picker/components/ViewPickerEditButton.tsx
+++ b/packages/twenty-front/src/modules/views/view-picker/components/ViewPickerEditButton.tsx
@@ -1,7 +1,7 @@
import { useContextStoreObjectMetadataItemOrThrow } from '@/context-store/hooks/useContextStoreObjectMetadataItemOrThrow';
import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';
import { useAtomFamilySelectorValue } from '@/ui/utilities/state/jotai/hooks/useAtomFamilySelectorValue';
-import { coreViewsFromObjectMetadataItemFamilySelector } from '@/views/states/selectors/coreViewsFromObjectMetadataItemFamilySelector';
+import { viewsFromObjectMetadataItemFamilySelector } from '@/views/states/selectors/viewsFromObjectMetadataItemFamilySelector';
import { ViewType } from '@/views/types/ViewType';
import { useCreateViewFromCurrentState } from '@/views/view-picker/hooks/useCreateViewFromCurrentState';
import { useDestroyViewFromCurrentState } from '@/views/view-picker/hooks/useDestroyViewFromCurrentState';
@@ -20,7 +20,7 @@ export const ViewPickerEditButton = () => {
const { objectMetadataItem } = useContextStoreObjectMetadataItemOrThrow();
const viewsOnCurrentObject = useAtomFamilySelectorValue(
- coreViewsFromObjectMetadataItemFamilySelector,
+ viewsFromObjectMetadataItemFamilySelector,
{ objectMetadataItemId: objectMetadataItem.id },
);
@@ -57,7 +57,7 @@ export const ViewPickerEditButton = () => {
}
if (
- viewPickerType === ViewType.Kanban &&
+ viewPickerType === ViewType.KANBAN &&
availableFieldsForGrouping.length === 0
) {
return (
@@ -73,7 +73,7 @@ export const ViewPickerEditButton = () => {
}
if (
- viewPickerType === ViewType.Table ||
+ viewPickerType === ViewType.TABLE ||
viewPickerMainGroupByFieldMetadataId !== ''
) {
return (
@@ -86,7 +86,7 @@ export const ViewPickerEditButton = () => {
justify="center"
disabled={
viewPickerIsPersisting ||
- (viewPickerType === ViewType.Kanban &&
+ (viewPickerType === ViewType.KANBAN &&
viewPickerMainGroupByFieldMetadataId === '')
}
/>
diff --git a/packages/twenty-front/src/modules/views/view-picker/components/ViewPickerListContent.tsx b/packages/twenty-front/src/modules/views/view-picker/components/ViewPickerListContent.tsx
index 0423225947e..41ee2a4fc4e 100644
--- a/packages/twenty-front/src/modules/views/view-picker/components/ViewPickerListContent.tsx
+++ b/packages/twenty-front/src/modules/views/view-picker/components/ViewPickerListContent.tsx
@@ -16,7 +16,7 @@ import { usePerformViewAPIUpdate } from '@/views/hooks/internal/usePerformViewAP
import { useChangeView } from '@/views/hooks/useChangeView';
import { useGetCurrentViewOnly } from '@/views/hooks/useGetCurrentViewOnly';
import { useOpenCreateViewDropdown } from '@/views/hooks/useOpenCreateViewDropown';
-import { coreViewsFromObjectMetadataItemFamilySelector } from '@/views/states/selectors/coreViewsFromObjectMetadataItemFamilySelector';
+import { viewsFromObjectMetadataItemFamilySelector } from '@/views/states/selectors/viewsFromObjectMetadataItemFamilySelector';
import { ViewPickerOptionDropdown } from '@/views/view-picker/components/ViewPickerOptionDropdown';
import { VIEW_PICKER_DROPDOWN_ID } from '@/views/view-picker/constants/ViewPickerDropdownId';
import { useViewPickerMode } from '@/views/view-picker/hooks/useViewPickerMode';
@@ -38,7 +38,7 @@ export const ViewPickerListContent = () => {
const { objectMetadataItem } = useContextStoreObjectMetadataItemOrThrow();
const viewsOnCurrentObject = useAtomFamilySelectorValue(
- coreViewsFromObjectMetadataItemFamilySelector,
+ viewsFromObjectMetadataItemFamilySelector,
{ objectMetadataItemId: objectMetadataItem.id },
);
@@ -154,7 +154,7 @@ export const ViewPickerListContent = () => {
isDragDisabled={workspaceViews.length === 1}
itemComponent={
<ViewPickerOptionDropdown
- view={{ ...view, __typename: 'View' }}
+ view={view}
handleViewSelect={handleViewSelect}
isIndexView={isIndexView}
isLastView={isLastView}
@@ -187,7 +187,7 @@ export const ViewPickerListContent = () => {
isDragDisabled={unlistedViews.length === 1}
itemComponent={
<ViewPickerOptionDropdown
- view={{ ...view, __typename: 'View' }}
+ view={view}
handleViewSelect={handleViewSelect}
isIndexView={isIndexView}
isLastView={isLastView}
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 c7f566958e6..ad8715fde63 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
@@ -29,12 +29,7 @@ type ViewPickerOptionDropdownProps = {
isLastView: boolean;
view: Pick<
View,
- | 'id'
- | 'name'
- | 'icon'
- | '__typename'
- | 'visibility'
- | 'createdByUserWorkspaceId'
+ 'id' | 'name' | 'icon' | 'visibility' | 'createdByUserWorkspaceId'
>;
onEdit: (event: React.MouseEvent<HTMLElement>, viewId: string) => void;
handleViewSelect: (viewId: string) => void;
diff --git a/packages/twenty-front/src/modules/views/view-picker/constants/ViewPickerTypeSelectOptions.ts b/packages/twenty-front/src/modules/views/view-picker/constants/ViewPickerTypeSelectOptions.ts
index 3caf6269b56..39f86b7534c 100644
--- a/packages/twenty-front/src/modules/views/view-picker/constants/ViewPickerTypeSelectOptions.ts
+++ b/packages/twenty-front/src/modules/views/view-picker/constants/ViewPickerTypeSelectOptions.ts
@@ -3,18 +3,18 @@ import { msg } from '@lingui/core/macro';
export const VIEW_PICKER_TYPE_SELECT_OPTIONS = [
{
- value: ViewType.Table,
+ value: ViewType.TABLE,
label: msg`Table`,
- Icon: viewTypeIconMapping(ViewType.Table),
+ Icon: viewTypeIconMapping(ViewType.TABLE),
},
{
- value: ViewType.Kanban,
+ value: ViewType.KANBAN,
label: msg`Kanban`,
- Icon: viewTypeIconMapping(ViewType.Kanban),
+ Icon: viewTypeIconMapping(ViewType.KANBAN),
},
{
- value: ViewType.Calendar,
+ value: ViewType.CALENDAR,
label: msg`Calendar`,
- Icon: viewTypeIconMapping(ViewType.Calendar),
+ Icon: viewTypeIconMapping(ViewType.CALENDAR),
},
];
diff --git a/packages/twenty-front/src/modules/views/view-picker/hooks/useCreateViewFromCurrentState.ts b/packages/twenty-front/src/modules/views/view-picker/hooks/useCreateViewFromCurrentState.ts
index ea6a3abaaca..deeab35845e 100644
--- a/packages/twenty-front/src/modules/views/view-picker/hooks/useCreateViewFromCurrentState.ts
+++ b/packages/twenty-front/src/modules/views/view-picker/hooks/useCreateViewFromCurrentState.ts
@@ -86,7 +86,7 @@ export const useCreateViewFromCurrentState = () => {
icon: iconKey,
type,
mainGroupByFieldMetadataId:
- type === ViewType.Kanban ? mainGroupByFieldMetadataId : null,
+ type === ViewType.KANBAN ? mainGroupByFieldMetadataId : null,
calendarFieldMetadataId,
visibility,
},
diff --git a/packages/twenty-front/src/modules/views/view-picker/hooks/useDestroyViewFromCurrentState.ts b/packages/twenty-front/src/modules/views/view-picker/hooks/useDestroyViewFromCurrentState.ts
index 60bd22530bf..997bc474a7f 100644
--- a/packages/twenty-front/src/modules/views/view-picker/hooks/useDestroyViewFromCurrentState.ts
+++ b/packages/twenty-front/src/modules/views/view-picker/hooks/useDestroyViewFromCurrentState.ts
@@ -7,7 +7,7 @@ import { useAtomFamilySelectorValue } from '@/ui/utilities/state/jotai/hooks/use
import { usePerformViewAPIPersist } from '@/views/hooks/internal/usePerformViewAPIPersist';
import { useChangeView } from '@/views/hooks/useChangeView';
import { useGetCurrentViewOnly } from '@/views/hooks/useGetCurrentViewOnly';
-import { coreViewsFromObjectMetadataItemFamilySelector } from '@/views/states/selectors/coreViewsFromObjectMetadataItemFamilySelector';
+import { viewsFromObjectMetadataItemFamilySelector } from '@/views/states/selectors/viewsFromObjectMetadataItemFamilySelector';
import { useCloseAndResetViewPicker } from '@/views/view-picker/hooks/useCloseAndResetViewPicker';
import { viewPickerIsDirtyComponentState } from '@/views/view-picker/states/viewPickerIsDirtyComponentState';
import { viewPickerIsPersistingComponentState } from '@/views/view-picker/states/viewPickerIsPersistingComponentState';
@@ -36,7 +36,7 @@ export const useDestroyViewFromCurrentState = (viewBarInstanceId?: string) => {
const { objectMetadataItem } = useContextStoreObjectMetadataItemOrThrow();
const viewsOnCurrentObject = useAtomFamilySelectorValue(
- coreViewsFromObjectMetadataItemFamilySelector,
+ viewsFromObjectMetadataItemFamilySelector,
{ objectMetadataItemId: objectMetadataItem.id },
);
diff --git a/packages/twenty-front/src/modules/views/view-picker/states/viewPickerTypeComponentState.ts b/packages/twenty-front/src/modules/views/view-picker/states/viewPickerTypeComponentState.ts
index 0e1161335fc..87a8267cad1 100644
--- a/packages/twenty-front/src/modules/views/view-picker/states/viewPickerTypeComponentState.ts
+++ b/packages/twenty-front/src/modules/views/view-picker/states/viewPickerTypeComponentState.ts
@@ -4,6 +4,6 @@ import { ViewType } from '@/views/types/ViewType';
export const viewPickerTypeComponentState = createAtomComponentState<ViewType>({
key: 'viewPickerTypeComponentState',
- defaultValue: ViewType.Table,
+ defaultValue: ViewType.TABLE,
componentInstanceContext: ViewComponentInstanceContext,
});
diff --git a/packages/twenty-front/src/testing/decorators/RecordTableDecorator.tsx b/packages/twenty-front/src/testing/decorators/RecordTableDecorator.tsx
index 766bf3bd403..7e5682c9d2c 100644
--- a/packages/twenty-front/src/testing/decorators/RecordTableDecorator.tsx
+++ b/packages/twenty-front/src/testing/decorators/RecordTableDecorator.tsx
@@ -30,16 +30,16 @@ import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomState
import { useSetAtomComponentState } from '@/ui/utilities/state/jotai/hooks/useSetAtomComponentState';
import { jotaiStore } from '@/ui/utilities/state/jotai/jotaiStore';
import { ViewComponentInstanceContext } from '@/views/states/contexts/ViewComponentInstanceContext';
-import { type CoreViewWithRelations } from '@/views/types/CoreViewWithRelations';
+import { type ViewWithRelations } from '@/views/types/ViewWithRelations';
import { type View } from '@/views/types/View';
import { mapViewFieldToRecordField } from '@/views/utils/mapViewFieldToRecordField';
import { useEffect, useMemo } from 'react';
import { isDefined } from 'twenty-shared/utils';
import { mockedCompanyRecords } from '~/testing/mock-data/generated/data/companies/mock-companies-data';
-import { mockedCoreViews } from '~/testing/mock-data/generated/metadata/views/mock-views-data';
-import { setTestCoreViewsInMetadataStore } from '~/testing/utils/setTestCoreViewsInMetadataStore';
+import { mockedViews } from '~/testing/mock-data/generated/metadata/views/mock-views-data';
+import { setTestViewsInMetadataStore } from '~/testing/utils/setTestViewsInMetadataStore';
-const companyView = mockedCoreViews.find((v) => v.name === 'All Companies')!;
+const companyView = mockedViews.find((v) => v.name === 'All Companies')!;
const InternalTableStateLoaderEffect = ({
objectMetadataItem,
@@ -79,8 +79,8 @@ const InternalTableStateLoaderEffect = ({
setCurrentRecordFields(recordFields);
- setTestCoreViewsInMetadataStore(jotaiStore, [
- view as unknown as CoreViewWithRelations,
+ setTestViewsInMetadataStore(jotaiStore, [
+ view as unknown as ViewWithRelations,
]);
setContextStoreCurrentViewId(view.id);
diff --git a/packages/twenty-front/src/testing/graphqlMocks.ts b/packages/twenty-front/src/testing/graphqlMocks.ts
index 56de67ab44b..859ab2c677d 100644
--- a/packages/twenty-front/src/testing/graphqlMocks.ts
+++ b/packages/twenty-front/src/testing/graphqlMocks.ts
@@ -10,7 +10,7 @@ import { mockedClientConfig } from '~/testing/mock-data/config';
import { mockedNoteRecords } from '~/testing/mock-data/generated/data/notes/mock-notes-data';
import { mockedPersonRecords } from '~/testing/mock-data/generated/data/people/mock-people-data';
import { mockedWorkspaceMemberRecords } from '~/testing/mock-data/generated/data/workspaceMembers/mock-workspaceMembers-data';
-import { mockedCoreViews } from '~/testing/mock-data/generated/metadata/views/mock-views-data';
+import { mockedViews } from '~/testing/mock-data/generated/metadata/views/mock-views-data';
import { mockedPublicWorkspaceDataBySubdomain } from '~/testing/mock-data/publicWorkspaceDataBySubdomain';
import { mockedUserData } from '~/testing/mock-data/users';
@@ -180,17 +180,15 @@ export const graphqlMocks = {
data: { minimalMetadata: mockedMinimalMetadata },
});
}),
- metadataGraphql.query('FindAllCoreViews', () => {
+ metadataGraphql.query('FindAllViews', () => {
return HttpResponse.json({
- data: { getCoreViews: mockedCoreViews },
+ data: { getViews: mockedViews },
});
}),
- metadataGraphql.query('FindFieldsWidgetCoreViews', () => {
+ metadataGraphql.query('FindFieldsWidgetViews', () => {
return HttpResponse.json({
data: {
- getCoreViews: mockedCoreViews.filter(
- (view) => view.type === 'FIELDS_WIDGET',
- ),
+ getViews: mockedViews.filter((view) => view.type === 'FIELDS_WIDGET'),
},
});
}),
@@ -323,7 +321,7 @@ export const graphqlMocks = {
const objectMetadataId = variables.filter?.objectMetadataId?.eq;
const viewType = variables.filter?.type?.eq;
- const filtered = mockedCoreViews.filter(
+ const filtered = mockedViews.filter(
(view) =>
(isDefined(objectMetadataId)
? view?.objectMetadataId === objectMetadataId
@@ -369,7 +367,7 @@ export const graphqlMocks = {
graphql.query('FindManyViewFields', ({ variables }) => {
const viewId = variables.filter.view.eq;
- const matchingView = mockedCoreViews.find((view) => view.id === viewId);
+ const matchingView = mockedViews.find((view) => view.id === viewId);
const viewFields = matchingView?.viewFields ?? [];
return HttpResponse.json({
diff --git a/packages/twenty-front/src/testing/mock-data/generated/metadata/views/mock-views-data.ts b/packages/twenty-front/src/testing/mock-data/generated/metadata/views/mock-views-data.ts
index 16345a6afa4..1a8f43e900e 100644
--- a/packages/twenty-front/src/testing/mock-data/generated/metadata/views/mock-views-data.ts
+++ b/packages/twenty-front/src/testing/mock-data/generated/metadata/views/mock-views-data.ts
@@ -1,11 +1,11 @@
/* oxlint-disable */
// @ts-nocheck
-import { type CoreViewWithRelations } from '@/views/types/CoreViewWithRelations';
+import { type ViewWithRelations } from '@/views/types/ViewWithRelations';
// This file was automatically generated — do not edit manually.
// prettier-ignore
-export const mockedCoreViews: CoreViewWithRelations[] =
+export const mockedViews: ViewWithRelations[] =
[
{
"id": "9a77f9a8-f1ea-438d-a4da-91ac585054b7",
diff --git a/packages/twenty-front/src/testing/utils/setTestCoreViewsInMetadataStore.ts b/packages/twenty-front/src/testing/utils/setTestViewsInMetadataStore.ts
similarity index 89%
rename from packages/twenty-front/src/testing/utils/setTestCoreViewsInMetadataStore.ts
rename to packages/twenty-front/src/testing/utils/setTestViewsInMetadataStore.ts
index aa5d88b1e6f..c3f446b1ae8 100644
--- a/packages/twenty-front/src/testing/utils/setTestCoreViewsInMetadataStore.ts
+++ b/packages/twenty-front/src/testing/utils/setTestViewsInMetadataStore.ts
@@ -1,13 +1,13 @@
import { metadataStoreState } from '@/metadata-store/states/metadataStoreState';
import { splitViewWithRelated } from '@/metadata-store/utils/splitViewWithRelated';
-import { type CoreViewWithRelations } from '@/views/types/CoreViewWithRelations';
+import { type ViewWithRelations } from '@/views/types/ViewWithRelations';
import { type createStore } from 'jotai';
type JotaiStore = ReturnType<typeof createStore>;
-export const setTestCoreViewsInMetadataStore = (
+export const setTestViewsInMetadataStore = (
store: JotaiStore,
- views: CoreViewWithRelations[],
+ views: ViewWithRelations[],
) => {
const {
flatViews,
diff --git a/packages/twenty-sdk/src/clients/generated/metadata/schema.graphql b/packages/twenty-sdk/src/clients/generated/metadata/schema.graphql
index 69e44e1e0fc..7b70aa6eb39 100644
--- a/packages/twenty-sdk/src/clients/generated/metadata/schema.graphql
+++ b/packages/twenty-sdk/src/clients/generated/metadata/schema.graphql
@@ -570,7 +570,7 @@ type Application {
applicationRegistration: ApplicationRegistrationSummary
}
-type CoreViewField {
+type ViewField {
id: UUID!
fieldMetadataId: UUID!
isVisible: Boolean!
@@ -601,7 +601,7 @@ enum AggregateOperations {
PERCENTAGE_NOT_EMPTY
}
-type CoreViewFilterGroup {
+type ViewFilterGroup {
id: UUID!
parentViewFilterGroupId: UUID
logicalOperator: ViewFilterGroupLogicalOperator!
@@ -619,7 +619,7 @@ enum ViewFilterGroupLogicalOperator {
NOT
}
-type CoreViewFilter {
+type ViewFilter {
id: UUID!
fieldMetadataId: UUID!
operand: ViewFilterOperand!
@@ -653,7 +653,7 @@ enum ViewFilterOperand {
VECTOR_SEARCH
}
-type CoreViewGroup {
+type ViewGroup {
id: UUID!
isVisible: Boolean!
fieldValue: String!
@@ -665,7 +665,7 @@ type CoreViewGroup {
deletedAt: DateTime
}
-type CoreViewSort {
+type ViewSort {
id: UUID!
fieldMetadataId: UUID!
direction: ViewSortDirection!
@@ -681,7 +681,7 @@ enum ViewSortDirection {
DESC
}
-type CoreViewFieldGroup {
+type ViewFieldGroup {
id: UUID!
name: String!
position: Float!
@@ -691,11 +691,11 @@ type CoreViewFieldGroup {
createdAt: DateTime!
updatedAt: DateTime!
deletedAt: DateTime
- viewFields: [CoreViewField!]!
+ viewFields: [ViewField!]!
isOverridden: Boolean!
}
-type CoreView {
+type View {
id: UUID!
name: String!
objectMetadataId: UUID!
@@ -717,12 +717,12 @@ type CoreView {
createdAt: DateTime!
updatedAt: DateTime!
deletedAt: DateTime
- viewFields: [CoreViewField!]!
- viewFilters: [CoreViewFilter!]!
- viewFilterGroups: [CoreViewFilterGroup!]!
- viewSorts: [CoreViewSort!]!
- viewGroups: [CoreViewGroup!]!
- viewFieldGroups: [CoreViewFieldGroup!]!
+ viewFields: [ViewField!]!
+ viewFilters: [ViewFilter!]!
+ viewFilterGroups: [ViewFilterGroup!]!
+ viewSorts: [ViewSort!]!
+ viewGroups: [ViewGroup!]!
+ viewFieldGroups: [ViewFieldGroup!]!
visibility: ViewVisibility!
createdByUserWorkspaceId: UUID
}
@@ -769,12 +769,12 @@ type Workspace {
eventLogRetentionDays: Float!
workspaceMembersCount: Float
activationStatus: WorkspaceActivationStatus!
- views: [CoreView!]
- viewFields: [CoreViewField!]
- viewFilters: [CoreViewFilter!]
- viewFilterGroups: [CoreViewFilterGroup!]
- viewGroups: [CoreViewGroup!]
- viewSorts: [CoreViewSort!]
+ views: [View!]
+ viewFields: [ViewField!]
+ viewFilters: [ViewFilter!]
+ viewFilterGroups: [ViewFilterGroup!]
+ viewGroups: [ViewGroup!]
+ viewSorts: [ViewSort!]
metadataVersion: Float!
databaseUrl: String!
databaseSchema: String!
@@ -2941,14 +2941,14 @@ type Query {
"""Specify to filter the records returned."""
filter: ObjectFilter! = {}
): ObjectConnection!
- getCoreViewFields(viewId: String!): [CoreViewField!]!
- getCoreViewField(id: String!): CoreViewField
- getCoreViews(objectMetadataId: String, viewTypes: [ViewType!]): [CoreView!]!
- getCoreView(id: String!): CoreView
- getCoreViewSorts(viewId: String): [CoreViewSort!]!
- getCoreViewSort(id: String!): CoreViewSort
- getCoreViewFieldGroups(viewId: String!): [CoreViewFieldGroup!]!
- getCoreViewFieldGroup(id: String!): CoreViewFieldGroup
+ getViewFields(viewId: String!): [ViewField!]!
+ getViewField(id: String!): ViewField
+ getViews(objectMetadataId: String, viewTypes: [ViewType!]): [View!]!
+ getView(id: String!): View
+ getViewSorts(viewId: String): [ViewSort!]!
+ getViewSort(id: String!): ViewSort
+ getViewFieldGroups(viewId: String!): [ViewFieldGroup!]!
+ getViewFieldGroup(id: String!): ViewFieldGroup
index(
"""The id of the record to find."""
id: UUID!
@@ -2992,12 +2992,12 @@ type Query {
"""Specify to filter the records returned."""
filter: FieldFilter! = {}
): FieldConnection!
- getCoreViewGroups(viewId: String): [CoreViewGroup!]!
- getCoreViewGroup(id: String!): CoreViewGroup
- getCoreViewFilters(viewId: String): [CoreViewFilter!]!
- getCoreViewFilter(id: String!): CoreViewFilter
- getCoreViewFilterGroups(viewId: String): [CoreViewFilterGroup!]!
- getCoreViewFilterGroup(id: String!): CoreViewFilterGroup
+ getViewGroups(viewId: String): [ViewGroup!]!
+ getViewGroup(id: String!): ViewGroup
+ getViewFilters(viewId: String): [ViewFilter!]!
+ getViewFilter(id: String!): ViewFilter
+ getViewFilterGroups(viewId: String): [ViewFilterGroup!]!
+ getViewFilterGroup(id: String!): ViewFilterGroup
currentUser: User!
currentWorkspace: Workspace!
getPublicWorkspaceDataByDomain(origin: String): PublicWorkspaceData!
@@ -3184,25 +3184,25 @@ type Mutation {
createOneObject(input: CreateOneObjectInput!): Object!
deleteOneObject(input: DeleteOneObjectInput!): Object!
updateOneObject(input: UpdateOneObjectInput!): Object!
- updateCoreViewField(input: UpdateViewFieldInput!): CoreViewField!
- createCoreViewField(input: CreateViewFieldInput!): CoreViewField!
- createManyCoreViewFields(inputs: [CreateViewFieldInput!]!): [CoreViewField!]!
- deleteCoreViewField(input: DeleteViewFieldInput!): CoreViewField!
- destroyCoreViewField(input: DestroyViewFieldInput!): CoreViewField!
- createCoreView(input: CreateViewInput!): CoreView!
- updateCoreView(id: String!, input: UpdateViewInput!): CoreView!
- deleteCoreView(id: String!): Boolean!
- destroyCoreView(id: String!): Boolean!
- createCoreViewSort(input: CreateViewSortInput!): CoreViewSort!
- updateCoreViewSort(input: UpdateViewSortInput!): CoreViewSort!
- deleteCoreViewSort(input: DeleteViewSortInput!): Boolean!
- destroyCoreViewSort(input: DestroyViewSortInput!): Boolean!
- updateCoreViewFieldGroup(input: UpdateViewFieldGroupInput!): CoreViewFieldGroup!
- createCoreViewFieldGroup(input: CreateViewFieldGroupInput!): CoreViewFieldGroup!
- createManyCoreViewFieldGroups(inputs: [CreateViewFieldGroupInput!]!): [CoreViewFieldGroup!]!
- deleteCoreViewFieldGroup(input: DeleteViewFieldGroupInput!): CoreViewFieldGroup!
- destroyCoreViewFieldGroup(input: DestroyViewFieldGroupInput!): CoreViewFieldGroup!
- upsertFieldsWidget(input: UpsertFieldsWidgetInput!): CoreView!
+ updateViewField(input: UpdateViewFieldInput!): ViewField!
+ createViewField(input: CreateViewFieldInput!): ViewField!
+ createManyViewFields(inputs: [CreateViewFieldInput!]!): [ViewField!]!
+ deleteViewField(input: DeleteViewFieldInput!): ViewField!
+ destroyViewField(input: DestroyViewFieldInput!): ViewField!
+ createView(input: CreateViewInput!): View!
+ updateView(id: String!, input: UpdateViewInput!): View!
+ deleteView(id: String!): Boolean!
+ destroyView(id: String!): Boolean!
+ createViewSort(input: CreateViewSortInput!): ViewSort!
+ updateViewSort(input: UpdateViewSortInput!): ViewSort!
+ deleteViewSort(input: DeleteViewSortInput!): Boolean!
+ destroyViewSort(input: DestroyViewSortInput!): Boolean!
+ updateViewFieldGroup(input: UpdateViewFieldGroupInput!): ViewFieldGroup!
+ createViewFieldGroup(input: CreateViewFieldGroupInput!): ViewFieldGroup!
+ createManyViewFieldGroups(inputs: [CreateViewFieldGroupInput!]!): [ViewFieldGroup!]!
+ deleteViewFieldGroup(input: DeleteViewFieldGroupInput!): ViewFieldGroup!
+ destroyViewFieldGroup(input: DestroyViewFieldGroupInput!): ViewFieldGroup!
+ upsertFieldsWidget(input: UpsertFieldsWidgetInput!): View!
createCommandMenuItem(input: CreateCommandMenuItemInput!): CommandMenuItem!
updateCommandMenuItem(input: UpdateCommandMenuItemInput!): CommandMenuItem!
deleteCommandMenuItem(id: UUID!): CommandMenuItem!
@@ -3256,19 +3256,19 @@ type Mutation {
createOneField(input: CreateOneFieldMetadataInput!): Field!
updateOneField(input: UpdateOneFieldMetadataInput!): Field!
deleteOneField(input: DeleteOneFieldInput!): Field!
- createCoreViewGroup(input: CreateViewGroupInput!): CoreViewGroup!
- createManyCoreViewGroups(inputs: [CreateViewGroupInput!]!): [CoreViewGroup!]!
- updateCoreViewGroup(input: UpdateViewGroupInput!): CoreViewGroup!
- deleteCoreViewGroup(input: DeleteViewGroupInput!): CoreViewGroup!
- destroyCoreViewGroup(input: DestroyViewGroupInput!): CoreViewGroup!
- createCoreViewFilter(input: CreateViewFilterInput!): CoreViewFilter!
- updateCoreViewFilter(input: UpdateViewFilterInput!): CoreViewFilter!
- deleteCoreViewFilter(input: DeleteViewFilterInput!): CoreViewFilter!
- destroyCoreViewFilter(input: DestroyViewFilterInput!): CoreViewFilter!
- createCoreViewFilterGroup(input: CreateViewFilterGroupInput!): CoreViewFilterGroup!
- updateCoreViewFilterGroup(id: String!, input: UpdateViewFilterGroupInput!): CoreViewFilterGroup!
- deleteCoreViewFilterGroup(id: String!): Boolean!
- destroyCoreViewFilterGroup(id: String!): Boolean!
+ createViewGroup(input: CreateViewGroupInput!): ViewGroup!
+ createManyViewGroups(inputs: [CreateViewGroupInput!]!): [ViewGroup!]!
+ updateViewGroup(input: UpdateViewGroupInput!): ViewGroup!
+ deleteViewGroup(input: DeleteViewGroupInput!): ViewGroup!
+ destroyViewGroup(input: DestroyViewGroupInput!): ViewGroup!
+ createViewFilter(input: CreateViewFilterInput!): ViewFilter!
+ updateViewFilter(input: UpdateViewFilterInput!): ViewFilter!
+ deleteViewFilter(input: DeleteViewFilterInput!): ViewFilter!
+ destroyViewFilter(input: DestroyViewFilterInput!): ViewFilter!
+ createViewFilterGroup(input: CreateViewFilterGroupInput!): ViewFilterGroup!
+ updateViewFilterGroup(id: String!, input: UpdateViewFilterGroupInput!): ViewFilterGroup!
+ deleteViewFilterGroup(id: String!): Boolean!
+ destroyViewFilterGroup(id: String!): Boolean!
deleteUser: User!
deleteUserFromWorkspace(workspaceMemberIdToDelete: String!): UserWorkspace!
updateUserEmail(newEmail: String!, verifyEmailRedirectPath: String): Boolean!
diff --git a/packages/twenty-sdk/src/clients/generated/metadata/schema.ts b/packages/twenty-sdk/src/clients/generated/metadata/schema.ts
index c6dc1576bad..e682ccf6474 100644
--- a/packages/twenty-sdk/src/clients/generated/metadata/schema.ts
+++ b/packages/twenty-sdk/src/clients/generated/metadata/schema.ts
@@ -403,7 +403,7 @@ export interface Application {
__typename: 'Application'
}
-export interface CoreViewField {
+export interface ViewField {
id: Scalars['UUID']
fieldMetadataId: Scalars['UUID']
isVisible: Scalars['Boolean']
@@ -417,12 +417,12 @@ export interface CoreViewField {
updatedAt: Scalars['DateTime']
deletedAt?: Scalars['DateTime']
isOverridden: Scalars['Boolean']
- __typename: 'CoreViewField'
+ __typename: 'ViewField'
}
export type AggregateOperations = 'MIN' | 'MAX' | 'AVG' | 'SUM' | 'COUNT' | 'COUNT_UNIQUE_VALUES' | 'COUNT_EMPTY' | 'COUNT_NOT_EMPTY' | 'COUNT_TRUE' | 'COUNT_FALSE' | 'PERCENTAGE_EMPTY' | 'PERCENTAGE_NOT_EMPTY'
-export interface CoreViewFilterGroup {
+export interface ViewFilterGroup {
id: Scalars['UUID']
parentViewFilterGroupId?: Scalars['UUID']
logicalOperator: ViewFilterGroupLogicalOperator
@@ -432,12 +432,12 @@ export interface CoreViewFilterGroup {
createdAt: Scalars['DateTime']
updatedAt: Scalars['DateTime']
deletedAt?: Scalars['DateTime']
- __typename: 'CoreViewFilterGroup'
+ __typename: 'ViewFilterGroup'
}
export type ViewFilterGroupLogicalOperator = 'AND' | 'OR' | 'NOT'
-export interface CoreViewFilter {
+export interface ViewFilter {
id: Scalars['UUID']
fieldMetadataId: Scalars['UUID']
operand: ViewFilterOperand
@@ -450,12 +450,12 @@ export interface CoreViewFilter {
createdAt: Scalars['DateTime']
updatedAt: Scalars['DateTime']
deletedAt?: Scalars['DateTime']
- __typename: 'CoreViewFilter'
+ __typename: 'ViewFilter'
}
export type ViewFilterOperand = 'IS' | 'IS_NOT_NULL' | 'IS_NOT' | 'LESS_THAN_OR_EQUAL' | 'GREATER_THAN_OR_EQUAL' | 'IS_BEFORE' | 'IS_AFTER' | 'CONTAINS' | 'DOES_NOT_CONTAIN' | 'IS_EMPTY' | 'IS_NOT_EMPTY' | 'IS_RELATIVE' | 'IS_IN_PAST' | 'IS_IN_FUTURE' | 'IS_TODAY' | 'VECTOR_SEARCH'
-export interface CoreViewGroup {
+export interface ViewGroup {
id: Scalars['UUID']
isVisible: Scalars['Boolean']
fieldValue: Scalars['String']
@@ -465,10 +465,10 @@ export interface CoreViewGroup {
createdAt: Scalars['DateTime']
updatedAt: Scalars['DateTime']
deletedAt?: Scalars['DateTime']
- __typename: 'CoreViewGroup'
+ __typename: 'ViewGroup'
}
-export interface CoreViewSort {
+export interface ViewSort {
id: Scalars['UUID']
fieldMetadataId: Scalars['UUID']
direction: ViewSortDirection
@@ -477,12 +477,12 @@ export interface CoreViewSort {
createdAt: Scalars['DateTime']
updatedAt: Scalars['DateTime']
deletedAt?: Scalars['DateTime']
- __typename: 'CoreViewSort'
+ __typename: 'ViewSort'
}
export type ViewSortDirection = 'ASC' | 'DESC'
-export interface CoreViewFieldGroup {
+export interface ViewFieldGroup {
id: Scalars['UUID']
name: Scalars['String']
position: Scalars['Float']
@@ -492,12 +492,12 @@ export interface CoreViewFieldGroup {
createdAt: Scalars['DateTime']
updatedAt: Scalars['DateTime']
deletedAt?: Scalars['DateTime']
- viewFields: CoreViewField[]
+ viewFields: ViewField[]
isOverridden: Scalars['Boolean']
- __typename: 'CoreViewFieldGroup'
+ __typename: 'ViewFieldGroup'
}
-export interface CoreView {
+export interface View {
id: Scalars['UUID']
name: Scalars['String']
objectMetadataId: Scalars['UUID']
@@ -519,15 +519,15 @@ export interface CoreView {
createdAt: Scalars['DateTime']
updatedAt: Scalars['DateTime']
deletedAt?: Scalars['DateTime']
- viewFields: CoreViewField[]
- viewFilters: CoreViewFilter[]
- viewFilterGroups: CoreViewFilterGroup[]
- viewSorts: CoreViewSort[]
- viewGroups: CoreViewGroup[]
- viewFieldGroups: CoreViewFieldGroup[]
+ viewFields: ViewField[]
+ viewFilters: ViewFilter[]
+ viewFilterGroups: ViewFilterGroup[]
+ viewSorts: ViewSort[]
+ viewGroups: ViewGroup[]
+ viewFieldGroups: ViewFieldGroup[]
visibility: ViewVisibility
createdByUserWorkspaceId?: Scalars['UUID']
- __typename: 'CoreView'
+ __typename: 'View'
}
export type ViewType = 'TABLE' | 'KANBAN' | 'CALENDAR' | 'FIELDS_WIDGET'
@@ -555,12 +555,12 @@ export interface Workspace {
eventLogRetentionDays: Scalars['Float']
workspaceMembersCount?: Scalars['Float']
activationStatus: WorkspaceActivationStatus
- views?: CoreView[]
- viewFields?: CoreViewField[]
- viewFilters?: CoreViewFilter[]
- viewFilterGroups?: CoreViewFilterGroup[]
- viewGroups?: CoreViewGroup[]
- viewSorts?: CoreViewSort[]
+ views?: View[]
+ viewFields?: ViewField[]
+ viewFilters?: ViewFilter[]
+ viewFilterGroups?: ViewFilterGroup[]
+ viewGroups?: ViewGroup[]
+ viewSorts?: ViewSort[]
metadataVersion: Scalars['Float']
databaseUrl: Scalars['String']
databaseSchema: Scalars['String']
@@ -2577,14 +2577,14 @@ export interface Query {
objectRecordCounts: ObjectRecordCount[]
object: Object
objects: ObjectConnection
- getCoreViewFields: CoreViewField[]
- getCoreViewField?: CoreViewField
- getCoreViews: CoreView[]
- getCoreView?: CoreView
- getCoreViewSorts: CoreViewSort[]
- getCoreViewSort?: CoreViewSort
- getCoreViewFieldGroups: CoreViewFieldGroup[]
- getCoreViewFieldGroup?: CoreViewFieldGroup
+ getViewFields: ViewField[]
+ getViewField?: ViewField
+ getViews: View[]
+ getView?: View
+ getViewSorts: ViewSort[]
+ getViewSort?: ViewSort
+ getViewFieldGroups: ViewFieldGroup[]
+ getViewFieldGroup?: ViewFieldGroup
index: Index
indexMetadatas: IndexConnection
commandMenuItems: CommandMenuItem[]
@@ -2610,12 +2610,12 @@ export interface Query {
getToolInputSchema?: Scalars['JSON']
field: Field
fields: FieldConnection
- getCoreViewGroups: CoreViewGroup[]
- getCoreViewGroup?: CoreViewGroup
- getCoreViewFilters: CoreViewFilter[]
- getCoreViewFilter?: CoreViewFilter
- getCoreViewFilterGroups: CoreViewFilterGroup[]
- getCoreViewFilterGroup?: CoreViewFilterGroup
+ getViewGroups: ViewGroup[]
+ getViewGroup?: ViewGroup
+ getViewFilters: ViewFilter[]
+ getViewFilter?: ViewFilter
+ getViewFilterGroups: ViewFilterGroup[]
+ getViewFilterGroup?: ViewFilterGroup
currentUser: User
currentWorkspace: Workspace
getPublicWorkspaceDataByDomain: PublicWorkspaceData
@@ -2701,25 +2701,25 @@ export interface Mutation {
createOneObject: Object
deleteOneObject: Object
updateOneObject: Object
- updateCoreViewField: CoreViewField
- createCoreViewField: CoreViewField
- createManyCoreViewFields: CoreViewField[]
- deleteCoreViewField: CoreViewField
- destroyCoreViewField: CoreViewField
- createCoreView: CoreView
- updateCoreView: CoreView
- deleteCoreView: Scalars['Boolean']
- destroyCoreView: Scalars['Boolean']
- createCoreViewSort: CoreViewSort
- updateCoreViewSort: CoreViewSort
- deleteCoreViewSort: Scalars['Boolean']
- destroyCoreViewSort: Scalars['Boolean']
- updateCoreViewFieldGroup: CoreViewFieldGroup
- createCoreViewFieldGroup: CoreViewFieldGroup
- createManyCoreViewFieldGroups: CoreViewFieldGroup[]
- deleteCoreViewFieldGroup: CoreViewFieldGroup
- destroyCoreViewFieldGroup: CoreViewFieldGroup
- upsertFieldsWidget: CoreView
+ updateViewField: ViewField
+ createViewField: ViewField
+ createManyViewFields: ViewField[]
+ deleteViewField: ViewField
+ destroyViewField: ViewField
+ createView: View
+ updateView: View
+ deleteView: Scalars['Boolean']
+ destroyView: Scalars['Boolean']
+ createViewSort: ViewSort
+ updateViewSort: ViewSort
+ deleteViewSort: Scalars['Boolean']
+ destroyViewSort: Scalars['Boolean']
+ updateViewFieldGroup: ViewFieldGroup
+ createViewFieldGroup: ViewFieldGroup
+ createManyViewFieldGroups: ViewFieldGroup[]
+ deleteViewFieldGroup: ViewFieldGroup
+ destroyViewFieldGroup: ViewFieldGroup
+ upsertFieldsWidget: View
createCommandMenuItem: CommandMenuItem
updateCommandMenuItem: CommandMenuItem
deleteCommandMenuItem: CommandMenuItem
@@ -2773,19 +2773,19 @@ export interface Mutation {
createOneField: Field
updateOneField: Field
deleteOneField: Field
- createCoreViewGroup: CoreViewGroup
- createManyCoreViewGroups: CoreViewGroup[]
- updateCoreViewGroup: CoreViewGroup
- deleteCoreViewGroup: CoreViewGroup
- destroyCoreViewGroup: CoreViewGroup
- createCoreViewFilter: CoreViewFilter
- updateCoreViewFilter: CoreViewFilter
- deleteCoreViewFilter: CoreViewFilter
- destroyCoreViewFilter: CoreViewFilter
- createCoreViewFilterGroup: CoreViewFilterGroup
- updateCoreViewFilterGroup: CoreViewFilterGroup
- deleteCoreViewFilterGroup: Scalars['Boolean']
- destroyCoreViewFilterGroup: Scalars['Boolean']
+ createViewGroup: ViewGroup
+ createManyViewGroups: ViewGroup[]
+ updateViewGroup: ViewGroup
+ deleteViewGroup: ViewGroup
+ destroyViewGroup: ViewGroup
+ createViewFilter: ViewFilter
+ updateViewFilter: ViewFilter
+ deleteViewFilter: ViewFilter
+ destroyViewFilter: ViewFilter
+ createViewFilterGroup: ViewFilterGroup
+ updateViewFilterGroup: ViewFilterGroup
+ deleteViewFilterGroup: Scalars['Boolean']
+ destroyViewFilterGroup: Scalars['Boolean']
deleteUser: User
deleteUserFromWorkspace: UserWorkspace
updateUserEmail: Scalars['Boolean']
@@ -3321,7 +3321,7 @@ export interface ApplicationGenqlSelection{
__scalar?: boolean | number
}
-export interface CoreViewFieldGenqlSelection{
+export interface ViewFieldGenqlSelection{
id?: boolean | number
fieldMetadataId?: boolean | number
isVisible?: boolean | number
@@ -3339,7 +3339,7 @@ export interface CoreViewFieldGenqlSelection{
__scalar?: boolean | number
}
-export interface CoreViewFilterGroupGenqlSelection{
+export interface ViewFilterGroupGenqlSelection{
id?: boolean | number
parentViewFilterGroupId?: boolean | number
logicalOperator?: boolean | number
@@ -3353,7 +3353,7 @@ export interface CoreViewFilterGroupGenqlSelection{
__scalar?: boolean | number
}
-export interface CoreViewFilterGenqlSelection{
+export interface ViewFilterGenqlSelection{
id?: boolean | number
fieldMetadataId?: boolean | number
operand?: boolean | number
@@ -3370,7 +3370,7 @@ export interface CoreViewFilterGenqlSelection{
__scalar?: boolean | number
}
-export interface CoreViewGroupGenqlSelection{
+export interface ViewGroupGenqlSelection{
id?: boolean | number
isVisible?: boolean | number
fieldValue?: boolean | number
@@ -3384,7 +3384,7 @@ export interface CoreViewGroupGenqlSelection{
__scalar?: boolean | number
}
-export interface CoreViewSortGenqlSelection{
+export interface ViewSortGenqlSelection{
id?: boolean | number
fieldMetadataId?: boolean | number
direction?: boolean | number
@@ -3397,7 +3397,7 @@ export interface CoreViewSortGenqlSelection{
__scalar?: boolean | number
}
-export interface CoreViewFieldGroupGenqlSelection{
+export interface ViewFieldGroupGenqlSelection{
id?: boolean | number
name?: boolean | number
position?: boolean | number
@@ -3407,13 +3407,13 @@ export interface CoreViewFieldGroupGenqlSelection{
createdAt?: boolean | number
updatedAt?: boolean | number
deletedAt?: boolean | number
- viewFields?: CoreViewFieldGenqlSelection
+ viewFields?: ViewFieldGenqlSelection
isOverridden?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
-export interface CoreViewGenqlSelection{
+export interface ViewGenqlSelection{
id?: boolean | number
name?: boolean | number
objectMetadataId?: boolean | number
@@ -3435,12 +3435,12 @@ export interface CoreViewGenqlSelection{
createdAt?: boolean | number
updatedAt?: boolean | number
deletedAt?: boolean | number
- viewFields?: CoreViewFieldGenqlSelection
- viewFilters?: CoreViewFilterGenqlSelection
- viewFilterGroups?: CoreViewFilterGroupGenqlSelection
- viewSorts?: CoreViewSortGenqlSelection
- viewGroups?: CoreViewGroupGenqlSelection
- viewFieldGroups?: CoreViewFieldGroupGenqlSelection
+ viewFields?: ViewFieldGenqlSelection
+ viewFilters?: ViewFilterGenqlSelection
+ viewFilterGroups?: ViewFilterGroupGenqlSelection
+ viewSorts?: ViewSortGenqlSelection
+ viewGroups?: ViewGroupGenqlSelection
+ viewFieldGroups?: ViewFieldGroupGenqlSelection
visibility?: boolean | number
createdByUserWorkspaceId?: boolean | number
__typename?: boolean | number
@@ -3462,12 +3462,12 @@ export interface WorkspaceGenqlSelection{
eventLogRetentionDays?: boolean | number
workspaceMembersCount?: boolean | number
activationStatus?: boolean | number
- views?: CoreViewGenqlSelection
- viewFields?: CoreViewFieldGenqlSelection
- viewFilters?: CoreViewFilterGenqlSelection
- viewFilterGroups?: CoreViewFilterGroupGenqlSelection
- viewGroups?: CoreViewGroupGenqlSelection
- viewSorts?: CoreViewSortGenqlSelection
+ views?: ViewGenqlSelection
+ viewFields?: ViewFieldGenqlSelection
+ viewFilters?: ViewFilterGenqlSelection
+ viewFilterGroups?: ViewFilterGroupGenqlSelection
+ viewGroups?: ViewGroupGenqlSelection
+ viewSorts?: ViewSortGenqlSelection
metadataVersion?: boolean | number
databaseUrl?: boolean | number
databaseSchema?: boolean | number
@@ -5627,14 +5627,14 @@ export interface QueryGenqlSelection{
paging: CursorPaging,
/** Specify to filter the records returned. */
filter: ObjectFilter} })
- getCoreViewFields?: (CoreViewFieldGenqlSelection & { __args: {viewId: Scalars['String']} })
- getCoreViewField?: (CoreViewFieldGenqlSelection & { __args: {id: Scalars['String']} })
- getCoreViews?: (CoreViewGenqlSelection & { __args?: {objectMetadataId?: (Scalars['String'] | null), viewTypes?: (ViewType[] | null)} })
- getCoreView?: (CoreViewGenqlSelection & { __args: {id: Scalars['String']} })
- getCoreViewSorts?: (CoreViewSortGenqlSelection & { __args?: {viewId?: (Scalars['String'] | null)} })
- getCoreViewSort?: (CoreViewSortGenqlSelection & { __args: {id: Scalars['String']} })
- getCoreViewFieldGroups?: (CoreViewFieldGroupGenqlSelection & { __args: {viewId: Scalars['String']} })
- getCoreViewFieldGroup?: (CoreViewFieldGroupGenqlSelection & { __args: {id: Scalars['String']} })
+ getViewFields?: (ViewFieldGenqlSelection & { __args: {viewId: Scalars['String']} })
+ getViewField?: (ViewFieldGenqlSelection & { __args: {id: Scalars['String']} })
+ getViews?: (ViewGenqlSelection & { __args?: {objectMetadataId?: (Scalars['String'] | null), viewTypes?: (ViewType[] | null)} })
+ getView?: (ViewGenqlSelection & { __args: {id: Scalars['String']} })
+ getViewSorts?: (ViewSortGenqlSelection & { __args?: {viewId?: (Scalars['String'] | null)} })
+ getViewSort?: (ViewSortGenqlSelection & { __args: {id: Scalars['String']} })
+ getViewFieldGroups?: (ViewFieldGroupGenqlSelection & { __args: {viewId: Scalars['String']} })
+ getViewFieldGroup?: (ViewFieldGroupGenqlSelection & { __args: {id: Scalars['String']} })
index?: (IndexGenqlSelection & { __args: {
/** The id of the record to find. */
id: Scalars['UUID']} })
@@ -5672,12 +5672,12 @@ export interface QueryGenqlSelection{
paging: CursorPaging,
/** Specify to filter the records returned. */
filter: FieldFilter} })
- getCoreViewGroups?: (CoreViewGroupGenqlSelection & { __args?: {viewId?: (Scalars['String'] | null)} })
- getCoreViewGroup?: (CoreViewGroupGenqlSelection & { __args: {id: Scalars['String']} })
- getCoreViewFilters?: (CoreViewFilterGenqlSelection & { __args?: {viewId?: (Scalars['String'] | null)} })
- getCoreViewFilter?: (CoreViewFilterGenqlSelection & { __args: {id: Scalars['String']} })
- getCoreViewFilterGroups?: (CoreViewFilterGroupGenqlSelection & { __args?: {viewId?: (Scalars['String'] | null)} })
- getCoreViewFilterGroup?: (CoreViewFilterGroupGenqlSelection & { __args: {id: Scalars['String']} })
+ getViewGroups?: (ViewGroupGenqlSelection & { __args?: {viewId?: (Scalars['String'] | null)} })
+ getViewGroup?: (ViewGroupGenqlSelection & { __args: {id: Scalars['String']} })
+ getViewFilters?: (ViewFilterGenqlSelection & { __args?: {viewId?: (Scalars['String'] | null)} })
+ getViewFilter?: (ViewFilterGenqlSelection & { __args: {id: Scalars['String']} })
+ getViewFilterGroups?: (ViewFilterGroupGenqlSelection & { __args?: {viewId?: (Scalars['String'] | null)} })
+ getViewFilterGroup?: (ViewFilterGroupGenqlSelection & { __args: {id: Scalars['String']} })
currentUser?: UserGenqlSelection
currentWorkspace?: WorkspaceGenqlSelection
getPublicWorkspaceDataByDomain?: (PublicWorkspaceDataGenqlSelection & { __args?: {origin?: (Scalars['String'] | null)} })
@@ -5788,25 +5788,25 @@ export interface MutationGenqlSelection{
createOneObject?: (ObjectGenqlSelection & { __args: {input: CreateOneObjectInput} })
deleteOneObject?: (ObjectGenqlSelection & { __args: {input: DeleteOneObjectInput} })
updateOneObject?: (ObjectGenqlSelection & { __args: {input: UpdateOneObjectInput} })
- updateCoreViewField?: (CoreViewFieldGenqlSelection & { __args: {input: UpdateViewFieldInput} })
- createCoreViewField?: (CoreViewFieldGenqlSelection & { __args: {input: CreateViewFieldInput} })
- createManyCoreViewFields?: (CoreViewFieldGenqlSelection & { __args: {inputs: CreateViewFieldInput[]} })
- deleteCoreViewField?: (CoreViewFieldGenqlSelection & { __args: {input: DeleteViewFieldInput} })
- destroyCoreViewField?: (CoreViewFieldGenqlSelection & { __args: {input: DestroyViewFieldInput} })
- createCoreView?: (CoreViewGenqlSelection & { __args: {input: CreateViewInput} })
- updateCoreView?: (CoreViewGenqlSelection & { __args: {id: Scalars['String'], input: UpdateViewInput} })
- deleteCoreView?: { __args: {id: Scalars['String']} }
- destroyCoreView?: { __args: {id: Scalars['String']} }
- createCoreViewSort?: (CoreViewSortGenqlSelection & { __args: {input: CreateViewSortInput} })
- updateCoreViewSort?: (CoreViewSortGenqlSelection & { __args: {input: UpdateViewSortInput} })
- deleteCoreViewSort?: { __args: {input: DeleteViewSortInput} }
- destroyCoreViewSort?: { __args: {input: DestroyViewSortInput} }
- updateCoreViewFieldGroup?: (CoreViewFieldGroupGenqlSelection & { __args: {input: UpdateViewFieldGroupInput} })
- createCoreViewFieldGroup?: (CoreViewFieldGroupGenqlSelection & { __args: {input: CreateViewFieldGroupInput} })
- createManyCoreViewFieldGroups?: (CoreViewFieldGroupGenqlSelection & { __args: {inputs: CreateViewFieldGroupInput[]} })
- deleteCoreViewFieldGroup?: (CoreViewFieldGroupGenqlSelection & { __args: {input: DeleteViewFieldGroupInput} })
- destroyCoreViewFieldGroup?: (CoreViewFieldGroupGenqlSelection & { __args: {input: DestroyViewFieldGroupInput} })
- upsertFieldsWidget?: (CoreViewGenqlSelection & { __args: {input: UpsertFieldsWidgetInput} })
+ updateViewField?: (ViewFieldGenqlSelection & { __args: {input: UpdateViewFieldInput} })
+ createViewField?: (ViewFieldGenqlSelection & { __args: {input: CreateViewFieldInput} })
+ createManyViewFields?: (ViewFieldGenqlSelection & { __args: {inputs: CreateViewFieldInput[]} })
+ deleteViewField?: (ViewFieldGenqlSelection & { __args: {input: DeleteViewFieldInput} })
+ destroyViewField?: (ViewFieldGenqlSelection & { __args: {input: DestroyViewFieldInput} })
+ createView?: (ViewGenqlSelection & { __args: {input: CreateViewInput} })
+ updateView?: (ViewGenqlSelection & { __args: {id: Scalars['String'], input: UpdateViewInput} })
+ deleteView?: { __args: {id: Scalars['String']} }
+ destroyView?: { __args: {id: Scalars['String']} }
+ createViewSort?: (ViewSortGenqlSelection & { __args: {input: CreateViewSortInput} })
+ updateViewSort?: (ViewSortGenqlSelection & { __args: {input: UpdateViewSortInput} })
+ deleteViewSort?: { __args: {input: DeleteViewSortInput} }
+ destroyViewSort?: { __args: {input: DestroyViewSortInput} }
+ updateViewFieldGroup?: (ViewFieldGroupGenqlSelection & { __args: {input: UpdateViewFieldGroupInput} })
+ createViewFieldGroup?: (ViewFieldGroupGenqlSelection & { __args: {input: CreateViewFieldGroupInput} })
+ createManyViewFieldGroups?: (ViewFieldGroupGenqlSelection & { __args: {inputs: CreateViewFieldGroupInput[]} })
+ deleteViewFieldGroup?: (ViewFieldGroupGenqlSelection & { __args: {input: DeleteViewFieldGroupInput} })
+ destroyViewFieldGroup?: (ViewFieldGroupGenqlSelection & { __args: {input: DestroyViewFieldGroupInput} })
+ upsertFieldsWidget?: (ViewGenqlSelection & { __args: {input: UpsertFieldsWidgetInput} })
createCommandMenuItem?: (CommandMenuItemGenqlSelection & { __args: {input: CreateCommandMenuItemInput} })
updateCommandMenuItem?: (CommandMenuItemGenqlSelection & { __args: {input: UpdateCommandMenuItemInput} })
deleteCommandMenuItem?: (CommandMenuItemGenqlSelection & { __args: {id: Scalars['UUID']} })
@@ -5860,19 +5860,19 @@ export interface MutationGenqlSelection{
createOneField?: (FieldGenqlSelection & { __args: {input: CreateOneFieldMetadataInput} })
updateOneField?: (FieldGenqlSelection & { __args: {input: UpdateOneFieldMetadataInput} })
deleteOneField?: (FieldGenqlSelection & { __args: {input: DeleteOneFieldInput} })
- createCoreViewGroup?: (CoreViewGroupGenqlSelection & { __args: {input: CreateViewGroupInput} })
- createManyCoreViewGroups?: (CoreViewGroupGenqlSelection & { __args: {inputs: CreateViewGroupInput[]} })
- updateCoreViewGroup?: (CoreViewGroupGenqlSelection & { __args: {input: UpdateViewGroupInput} })
- deleteCoreViewGroup?: (CoreViewGroupGenqlSelection & { __args: {input: DeleteViewGroupInput} })
- destroyCoreViewGroup?: (CoreViewGroupGenqlSelection & { __args: {input: DestroyViewGroupInput} })
- createCoreViewFilter?: (CoreViewFilterGenqlSelection & { __args: {input: CreateViewFilterInput} })
- updateCoreViewFilter?: (CoreViewFilterGenqlSelection & { __args: {input: UpdateViewFilterInput} })
- deleteCoreViewFilter?: (CoreViewFilterGenqlSelection & { __args: {input: DeleteViewFilterInput} })
- destroyCoreViewFilter?: (CoreViewFilterGenqlSelection & { __args: {input: DestroyViewFilterInput} })
- createCoreViewFilterGroup?: (CoreViewFilterGroupGenqlSelection & { __args: {input: CreateViewFilterGroupInput} })
- updateCoreViewFilterGroup?: (CoreViewFilterGroupGenqlSelection & { __args: {id: Scalars['String'], input: UpdateViewFilterGroupInput} })
- deleteCoreViewFilterGroup?: { __args: {id: Scalars['String']} }
- destroyCoreViewFilterGroup?: { __args: {id: Scalars['String']} }
+ createViewGroup?: (ViewGroupGenqlSelection & { __args: {input: CreateViewGroupInput} })
+ createManyViewGroups?: (ViewGroupGenqlSelection & { __args: {inputs: CreateViewGroupInput[]} })
+ updateViewGroup?: (ViewGroupGenqlSelection & { __args: {input: UpdateViewGroupInput} })
+ deleteViewGroup?: (ViewGroupGenqlSelection & { __args: {input: DeleteViewGroupInput} })
+ destroyViewGroup?: (ViewGroupGenqlSelection & { __args: {input: DestroyViewGroupInput} })
+ createViewFilter?: (ViewFilterGenqlSelection & { __args: {input: CreateViewFilterInput} })
+ updateViewFilter?: (ViewFilterGenqlSelection & { __args: {input: UpdateViewFilterInput} })
+ deleteViewFilter?: (ViewFilterGenqlSelection & { __args: {input: DeleteViewFilterInput} })
+ destroyViewFilter?: (ViewFilterGenqlSelection & { __args: {input: DestroyViewFilterInput} })
+ createViewFilterGroup?: (ViewFilterGroupGenqlSelection & { __args: {input: CreateViewFilterGroupInput} })
+ updateViewFilterGroup?: (ViewFilterGroupGenqlSelection & { __args: {id: Scalars['String'], input: UpdateViewFilterGroupInput} })
+ deleteViewFilterGroup?: { __args: {id: Scalars['String']} }
+ destroyViewFilterGroup?: { __args: {id: Scalars['String']} }
deleteUser?: UserGenqlSelection
deleteUserFromWorkspace?: (UserWorkspaceGenqlSelection & { __args: {workspaceMemberIdToDelete: Scalars['String']} })
updateUserEmail?: { __args: {newEmail: Scalars['String'], verifyEmailRedirectPath?: (Scalars['String'] | null)} }
@@ -6489,58 +6489,58 @@ export interface LogicFunctionLogsInput {applicationId?: (Scalars['UUID'] | null
- const CoreViewField_possibleTypes: string[] = ['CoreViewField']
- export const isCoreViewField = (obj?: { __typename?: any } | null): obj is CoreViewField => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isCoreViewField"')
- return CoreViewField_possibleTypes.includes(obj.__typename)
+ const ViewField_possibleTypes: string[] = ['ViewField']
+ export const isViewField = (obj?: { __typename?: any } | null): obj is ViewField => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isViewField"')
+ return ViewField_possibleTypes.includes(obj.__typename)
}
- const CoreViewFilterGroup_possibleTypes: string[] = ['CoreViewFilterGroup']
- export const isCoreViewFilterGroup = (obj?: { __typename?: any } | null): obj is CoreViewFilterGroup => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isCoreViewFilterGroup"')
- return CoreViewFilterGroup_possibleTypes.includes(obj.__typename)
+ const ViewFilterGroup_possibleTypes: string[] = ['ViewFilterGroup']
+ export const isViewFilterGroup = (obj?: { __typename?: any } | null): obj is ViewFilterGroup => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isViewFilterGroup"')
+ return ViewFilterGroup_possibleTypes.includes(obj.__typename)
}
- const CoreViewFilter_possibleTypes: string[] = ['CoreViewFilter']
- export const isCoreViewFilter = (obj?: { __typename?: any } | null): obj is CoreViewFilter => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isCoreViewFilter"')
- return CoreViewFilter_possibleTypes.includes(obj.__typename)
+ const ViewFilter_possibleTypes: string[] = ['ViewFilter']
+ export const isViewFilter = (obj?: { __typename?: any } | null): obj is ViewFilter => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isViewFilter"')
+ return ViewFilter_possibleTypes.includes(obj.__typename)
}
- const CoreViewGroup_possibleTypes: string[] = ['CoreViewGroup']
- export const isCoreViewGroup = (obj?: { __typename?: any } | null): obj is CoreViewGroup => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isCoreViewGroup"')
- return CoreViewGroup_possibleTypes.includes(obj.__typename)
+ const ViewGroup_possibleTypes: string[] = ['ViewGroup']
+ export const isViewGroup = (obj?: { __typename?: any } | null): obj is ViewGroup => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isViewGroup"')
+ return ViewGroup_possibleTypes.includes(obj.__typename)
}
- const CoreViewSort_possibleTypes: string[] = ['CoreViewSort']
- export const isCoreViewSort = (obj?: { __typename?: any } | null): obj is CoreViewSort => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isCoreViewSort"')
- return CoreViewSort_possibleTypes.includes(obj.__typename)
+ const ViewSort_possibleTypes: string[] = ['ViewSort']
+ export const isViewSort = (obj?: { __typename?: any } | null): obj is ViewSort => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isViewSort"')
+ return ViewSort_possibleTypes.includes(obj.__typename)
}
- const CoreViewFieldGroup_possibleTypes: string[] = ['CoreViewFieldGroup']
- export const isCoreViewFieldGroup = (obj?: { __typename?: any } | null): obj is CoreViewFieldGroup => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isCoreViewFieldGroup"')
- return CoreViewFieldGroup_possibleTypes.includes(obj.__typename)
+ const ViewFieldGroup_possibleTypes: string[] = ['ViewFieldGroup']
+ export const isViewFieldGroup = (obj?: { __typename?: any } | null): obj is ViewFieldGroup => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isViewFieldGroup"')
+ return ViewFieldGroup_possibleTypes.includes(obj.__typename)
}
- const CoreView_possibleTypes: string[] = ['CoreView']
- export const isCoreView = (obj?: { __typename?: any } | null): obj is CoreView => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isCoreView"')
- return CoreView_possibleTypes.includes(obj.__typename)
+ const View_possibleTypes: string[] = ['View']
+ export const isView = (obj?: { __typename?: any } | null): obj is View => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isView"')
+ return View_possibleTypes.includes(obj.__typename)
}
diff --git a/packages/twenty-sdk/src/clients/generated/metadata/types.ts b/packages/twenty-sdk/src/clients/generated/metadata/types.ts
index baa716fa38c..4da9357f141 100644
--- a/packages/twenty-sdk/src/clients/generated/metadata/types.ts
+++ b/packages/twenty-sdk/src/clients/generated/metadata/types.ts
@@ -1230,7 +1230,7 @@ export default {
1
]
},
- "CoreViewField": {
+ "ViewField": {
"id": [
3
],
@@ -1275,7 +1275,7 @@ export default {
]
},
"AggregateOperations": {},
- "CoreViewFilterGroup": {
+ "ViewFilterGroup": {
"id": [
3
],
@@ -1308,7 +1308,7 @@ export default {
]
},
"ViewFilterGroupLogicalOperator": {},
- "CoreViewFilter": {
+ "ViewFilter": {
"id": [
3
],
@@ -1350,7 +1350,7 @@ export default {
]
},
"ViewFilterOperand": {},
- "CoreViewGroup": {
+ "ViewGroup": {
"id": [
3
],
@@ -1382,7 +1382,7 @@ export default {
1
]
},
- "CoreViewSort": {
+ "ViewSort": {
"id": [
3
],
@@ -1412,7 +1412,7 @@ export default {
]
},
"ViewSortDirection": {},
- "CoreViewFieldGroup": {
+ "ViewFieldGroup": {
"id": [
3
],
@@ -1450,7 +1450,7 @@ export default {
1
]
},
- "CoreView": {
+ "View": {
"id": [
3
],
@@ -5875,7 +5875,7 @@ export default {
]
}
],
- "getCoreViewFields": [
+ "getViewFields": [
50,
{
"viewId": [
@@ -5884,7 +5884,7 @@ export default {
]
}
],
- "getCoreViewField": [
+ "getViewField": [
50,
{
"id": [
@@ -5893,7 +5893,7 @@ export default {
]
}
],
- "getCoreViews": [
+ "getViews": [
60,
{
"objectMetadataId": [
@@ -5905,7 +5905,7 @@ export default {
]
}
],
- "getCoreView": [
+ "getView": [
60,
{
"id": [
@@ -5914,7 +5914,7 @@ export default {
]
}
],
- "getCoreViewSorts": [
+ "getViewSorts": [
57,
{
"viewId": [
@@ -5922,7 +5922,7 @@ export default {
]
}
],
- "getCoreViewSort": [
+ "getViewSort": [
57,
{
"id": [
@@ -5931,7 +5931,7 @@ export default {
]
}
],
- "getCoreViewFieldGroups": [
+ "getViewFieldGroups": [
59,
{
"viewId": [
@@ -5940,7 +5940,7 @@ export default {
]
}
],
- "getCoreViewFieldGroup": [
+ "getViewFieldGroup": [
59,
{
"id": [
@@ -6107,7 +6107,7 @@ export default {
]
}
],
- "getCoreViewGroups": [
+ "getViewGroups": [
56,
{
"viewId": [
@@ -6115,7 +6115,7 @@ export default {
]
}
],
- "getCoreViewGroup": [
+ "getViewGroup": [
56,
{
"id": [
@@ -6124,7 +6124,7 @@ export default {
]
}
],
- "getCoreViewFilters": [
+ "getViewFilters": [
54,
{
"viewId": [
@@ -6132,7 +6132,7 @@ export default {
]
}
],
- "getCoreViewFilter": [
+ "getViewFilter": [
54,
{
"id": [
@@ -6141,7 +6141,7 @@ export default {
]
}
],
- "getCoreViewFilterGroups": [
+ "getViewFilterGroups": [
52,
{
"viewId": [
@@ -6149,7 +6149,7 @@ export default {
]
}
],
- "getCoreViewFilterGroup": [
+ "getViewFilterGroup": [
52,
{
"id": [
@@ -6944,7 +6944,7 @@ export default {
]
}
],
- "updateCoreViewField": [
+ "updateViewField": [
50,
{
"input": [
@@ -6953,7 +6953,7 @@ export default {
]
}
],
- "createCoreViewField": [
+ "createViewField": [
50,
{
"input": [
@@ -6962,7 +6962,7 @@ export default {
]
}
],
- "createManyCoreViewFields": [
+ "createManyViewFields": [
50,
{
"inputs": [
@@ -6971,7 +6971,7 @@ export default {
]
}
],
- "deleteCoreViewField": [
+ "deleteViewField": [
50,
{
"input": [
@@ -6980,7 +6980,7 @@ export default {
]
}
],
- "destroyCoreViewField": [
+ "destroyViewField": [
50,
{
"input": [
@@ -6989,7 +6989,7 @@ export default {
]
}
],
- "createCoreView": [
+ "createView": [
60,
{
"input": [
@@ -6998,7 +6998,7 @@ export default {
]
}
],
- "updateCoreView": [
+ "updateView": [
60,
{
"id": [
@@ -7011,7 +7011,7 @@ export default {
]
}
],
- "deleteCoreView": [
+ "deleteView": [
6,
{
"id": [
@@ -7020,7 +7020,7 @@ export default {
]
}
],
- "destroyCoreView": [
+ "destroyView": [
6,
{
"id": [
@@ -7029,7 +7029,7 @@ export default {
]
}
],
- "createCoreViewSort": [
+ "createViewSort": [
57,
{
"input": [
@@ -7038,7 +7038,7 @@ export default {
]
}
],
- "updateCoreViewSort": [
+ "updateViewSort": [
57,
{
"input": [
@@ -7047,7 +7047,7 @@ export default {
]
}
],
- "deleteCoreViewSort": [
+ "deleteViewSort": [
6,
{
"input": [
@@ -7056,7 +7056,7 @@ export default {
]
}
],
- "destroyCoreViewSort": [
+ "destroyViewSort": [
6,
{
"input": [
@@ -7065,7 +7065,7 @@ export default {
]
}
],
- "updateCoreViewFieldGroup": [
+ "updateViewFieldGroup": [
59,
{
"input": [
@@ -7074,7 +7074,7 @@ export default {
]
}
],
- "createCoreViewFieldGroup": [
+ "createViewFieldGroup": [
59,
{
"input": [
@@ -7083,7 +7083,7 @@ export default {
]
}
],
- "createManyCoreViewFieldGroups": [
+ "createManyViewFieldGroups": [
59,
{
"inputs": [
@@ -7092,7 +7092,7 @@ export default {
]
}
],
- "deleteCoreViewFieldGroup": [
+ "deleteViewFieldGroup": [
59,
{
"input": [
@@ -7101,7 +7101,7 @@ export default {
]
}
],
- "destroyCoreViewFieldGroup": [
+ "destroyViewFieldGroup": [
59,
{
"input": [
@@ -7576,7 +7576,7 @@ export default {
]
}
],
- "createCoreViewGroup": [
+ "createViewGroup": [
56,
{
"input": [
@@ -7585,7 +7585,7 @@ export default {
]
}
],
- "createManyCoreViewGroups": [
+ "createManyViewGroups": [
56,
{
"inputs": [
@@ -7594,7 +7594,7 @@ export default {
]
}
],
- "updateCoreViewGroup": [
+ "updateViewGroup": [
56,
{
"input": [
@@ -7603,7 +7603,7 @@ export default {
]
}
],
- "deleteCoreViewGroup": [
+ "deleteViewGroup": [
56,
{
"input": [
@@ -7612,7 +7612,7 @@ export default {
]
}
],
- "destroyCoreViewGroup": [
+ "destroyViewGroup": [
56,
{
"input": [
@@ -7621,7 +7621,7 @@ export default {
]
}
],
- "createCoreViewFilter": [
+ "createViewFilter": [
54,
{
"input": [
@@ -7630,7 +7630,7 @@ export default {
]
}
],
- "updateCoreViewFilter": [
+ "updateViewFilter": [
54,
{
"input": [
@@ -7639,7 +7639,7 @@ export default {
]
}
],
- "deleteCoreViewFilter": [
+ "deleteViewFilter": [
54,
{
"input": [
@@ -7648,7 +7648,7 @@ export default {
]
}
],
- "destroyCoreViewFilter": [
+ "destroyViewFilter": [
54,
{
"input": [
@@ -7657,7 +7657,7 @@ export default {
]
}
],
- "createCoreViewFilterGroup": [
+ "createViewFilterGroup": [
52,
{
"input": [
@@ -7666,7 +7666,7 @@ export default {
]
}
],
- "updateCoreViewFilterGroup": [
+ "updateViewFilterGroup": [
52,
{
"id": [
@@ -7679,7 +7679,7 @@ export default {
]
}
],
- "deleteCoreViewFilterGroup": [
+ "deleteViewFilterGroup": [
6,
{
"id": [
@@ -7688,7 +7688,7 @@ export default {
]
}
],
- "destroyCoreViewFilterGroup": [
+ "destroyViewFilterGroup": [
6,
{
"id": [
diff --git a/packages/twenty-server/src/engine/api/graphql/graphql-config/hooks/use-cached-metadata.ts b/packages/twenty-server/src/engine/api/graphql/graphql-config/hooks/use-cached-metadata.ts
index 0ad7f48bb67..9d8bf0d2873 100644
--- a/packages/twenty-server/src/engine/api/graphql/graphql-config/hooks/use-cached-metadata.ts
+++ b/packages/twenty-server/src/engine/api/graphql/graphql-config/hooks/use-cached-metadata.ts
@@ -34,8 +34,7 @@ export function useCachedMetadata(config: CacheMetadataPluginConfig): Plugin {
.update(request.body.query)
.digest('hex');
- // For FindAllCoreViews, use user-specific cache key since visibility filtering is user-dependent
- if (operationName === 'FindAllCoreViews') {
+ if (operationName === 'FindAllViews') {
return `graphql:operations:${operationName}:${workspace.id}:${workspaceMetadataVersion}:${request.userWorkspaceId}:${queryHash}`;
}
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 cab0e94c6f8..d9dfc1f526c 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
@@ -46,7 +46,7 @@ export const metadataModuleFactory = async (
useCachedMetadata({
cacheGetter: cacheStorageService.get.bind(cacheStorageService),
cacheSetter: cacheStorageService.set.bind(cacheStorageService),
- operationsToCache: ['ObjectMetadataItems', 'FindAllCoreViews'],
+ operationsToCache: ['ObjectMetadataItems', 'FindAllViews'],
}),
useDisableIntrospectionAndSuggestionsForUnauthenticatedUsers(
twentyConfigService.get('NODE_ENV') === NodeEnvironment.PRODUCTION,
diff --git a/packages/twenty-server/src/engine/metadata-modules/view-field-group/dtos/view-field-group.dto.ts b/packages/twenty-server/src/engine/metadata-modules/view-field-group/dtos/view-field-group.dto.ts
index d37d1f20273..15547dec3bb 100644
--- a/packages/twenty-server/src/engine/metadata-modules/view-field-group/dtos/view-field-group.dto.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/view-field-group/dtos/view-field-group.dto.ts
@@ -6,7 +6,7 @@ import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/
import { type ViewFieldGroupOverrides } from 'src/engine/metadata-modules/view-field-group/entities/view-field-group.entity';
import { ViewFieldDTO } from 'src/engine/metadata-modules/view-field/dtos/view-field.dto';
-@ObjectType('CoreViewFieldGroup')
+@ObjectType('ViewFieldGroup')
export class ViewFieldGroupDTO {
@IDField(() => UUIDScalarType)
id: string;
diff --git a/packages/twenty-server/src/engine/metadata-modules/view-field-group/resolvers/view-field-group.resolver.ts b/packages/twenty-server/src/engine/metadata-modules/view-field-group/resolvers/view-field-group.resolver.ts
index a39798a8d44..428c72e133c 100644
--- a/packages/twenty-server/src/engine/metadata-modules/view-field-group/resolvers/view-field-group.resolver.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/view-field-group/resolvers/view-field-group.resolver.ts
@@ -67,7 +67,7 @@ export class ViewFieldGroupResolver {
@Query(() => [ViewFieldGroupDTO])
@UseGuards(NoPermissionGuard)
- async getCoreViewFieldGroups(
+ async getViewFieldGroups(
@Args('viewId', { type: () => String }) viewId: string,
@AuthWorkspace() workspace: WorkspaceEntity,
): Promise<ViewFieldGroupEntity[]> {
@@ -76,7 +76,7 @@ export class ViewFieldGroupResolver {
@Query(() => ViewFieldGroupDTO, { nullable: true })
@UseGuards(NoPermissionGuard)
- async getCoreViewFieldGroup(
+ async getViewFieldGroup(
@Args('id', { type: () => String }) id: string,
@AuthWorkspace() workspace: WorkspaceEntity,
): Promise<ViewFieldGroupEntity | null> {
@@ -85,7 +85,7 @@ export class ViewFieldGroupResolver {
@Mutation(() => ViewFieldGroupDTO)
@UseGuards(NoPermissionGuard)
- async updateCoreViewFieldGroup(
+ async updateViewFieldGroup(
@Args('input') updateViewFieldGroupInput: UpdateViewFieldGroupInput,
@AuthWorkspace() { id: workspaceId }: WorkspaceEntity,
): Promise<ViewFieldGroupDTO> {
@@ -97,7 +97,7 @@ export class ViewFieldGroupResolver {
@Mutation(() => ViewFieldGroupDTO)
@UseGuards(NoPermissionGuard)
- async createCoreViewFieldGroup(
+ async createViewFieldGroup(
@Args('input')
createViewFieldGroupInput: CreateViewFieldGroupInput,
@AuthWorkspace() { id: workspaceId }: WorkspaceEntity,
@@ -110,7 +110,7 @@ export class ViewFieldGroupResolver {
@Mutation(() => [ViewFieldGroupDTO])
@UseGuards(NoPermissionGuard)
- async createManyCoreViewFieldGroups(
+ async createManyViewFieldGroups(
@Args('inputs', { type: () => [CreateViewFieldGroupInput] })
createViewFieldGroupInputs: CreateViewFieldGroupInput[],
@AuthWorkspace() { id: workspaceId }: WorkspaceEntity,
@@ -123,7 +123,7 @@ export class ViewFieldGroupResolver {
@Mutation(() => ViewFieldGroupDTO)
@UseGuards(NoPermissionGuard)
- async deleteCoreViewFieldGroup(
+ async deleteViewFieldGroup(
@Args('input') deleteViewFieldGroupInput: DeleteViewFieldGroupInput,
@AuthWorkspace() { id: workspaceId }: WorkspaceEntity,
): Promise<ViewFieldGroupDTO> {
@@ -135,7 +135,7 @@ export class ViewFieldGroupResolver {
@Mutation(() => ViewFieldGroupDTO)
@UseGuards(NoPermissionGuard)
- async destroyCoreViewFieldGroup(
+ async destroyViewFieldGroup(
@Args('input')
destroyViewFieldGroupInput: DestroyViewFieldGroupInput,
@AuthWorkspace() { id: workspaceId }: WorkspaceEntity,
diff --git a/packages/twenty-server/src/engine/metadata-modules/view-field/dtos/view-field.dto.ts b/packages/twenty-server/src/engine/metadata-modules/view-field/dtos/view-field.dto.ts
index fbc36e1e488..8f4a2fa8979 100644
--- a/packages/twenty-server/src/engine/metadata-modules/view-field/dtos/view-field.dto.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/view-field/dtos/view-field.dto.ts
@@ -13,7 +13,7 @@ import { type ViewFieldOverrides } from 'src/engine/metadata-modules/view-field/
registerEnumType(AggregateOperations, { name: 'AggregateOperations' });
-@ObjectType('CoreViewField')
+@ObjectType('ViewField')
export class ViewFieldDTO {
@IDField(() => UUIDScalarType)
id: string;
diff --git a/packages/twenty-server/src/engine/metadata-modules/view-field/resolvers/view-field.resolver.ts b/packages/twenty-server/src/engine/metadata-modules/view-field/resolvers/view-field.resolver.ts
index 191bc95b053..344feb67c58 100644
--- a/packages/twenty-server/src/engine/metadata-modules/view-field/resolvers/view-field.resolver.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/view-field/resolvers/view-field.resolver.ts
@@ -77,7 +77,7 @@ export class ViewFieldResolver {
@Query(() => [ViewFieldDTO])
@UseGuards(NoPermissionGuard)
- async getCoreViewFields(
+ async getViewFields(
@Args('viewId', { type: () => String }) viewId: string,
@AuthWorkspace() workspace: WorkspaceEntity,
): Promise<ViewFieldEntity[]> {
@@ -86,7 +86,7 @@ export class ViewFieldResolver {
@Query(() => ViewFieldDTO, { nullable: true })
@UseGuards(NoPermissionGuard)
- async getCoreViewField(
+ async getViewField(
@Args('id', { type: () => String }) id: string,
@AuthWorkspace() workspace: WorkspaceEntity,
): Promise<ViewFieldEntity | null> {
@@ -95,7 +95,7 @@ export class ViewFieldResolver {
@Mutation(() => ViewFieldDTO)
@UseGuards(UpdateViewFieldPermissionGuard)
- async updateCoreViewField(
+ async updateViewField(
@Args('input') updateViewFieldInput: UpdateViewFieldInput,
@AuthWorkspace() { id: workspaceId }: WorkspaceEntity,
): Promise<ViewFieldDTO> {
@@ -107,7 +107,7 @@ export class ViewFieldResolver {
@Mutation(() => ViewFieldDTO)
@UseGuards(CreateViewFieldPermissionGuard)
- async createCoreViewField(
+ async createViewField(
@Args('input') createViewFieldInput: CreateViewFieldInput,
@AuthWorkspace() { id: workspaceId }: WorkspaceEntity,
): Promise<ViewFieldDTO> {
@@ -119,7 +119,7 @@ export class ViewFieldResolver {
@Mutation(() => [ViewFieldDTO])
@UseGuards(CreateViewFieldPermissionGuard)
- async createManyCoreViewFields(
+ async createManyViewFields(
@Args('inputs', { type: () => [CreateViewFieldInput] })
createViewFieldInputs: CreateViewFieldInput[],
@AuthWorkspace() { id: workspaceId }: WorkspaceEntity,
@@ -132,7 +132,7 @@ export class ViewFieldResolver {
@Mutation(() => ViewFieldDTO)
@UseGuards(DeleteViewFieldPermissionGuard)
- async deleteCoreViewField(
+ async deleteViewField(
@Args('input') deleteViewFieldInput: DeleteViewFieldInput,
@AuthWorkspace() { id: workspaceId }: WorkspaceEntity,
): Promise<ViewFieldDTO> {
@@ -144,7 +144,7 @@ export class ViewFieldResolver {
@Mutation(() => ViewFieldDTO)
@UseGuards(DestroyViewFieldPermissionGuard)
- async destroyCoreViewField(
+ async destroyViewField(
@Args('input') destroyViewFieldInput: DestroyViewFieldInput,
@AuthWorkspace() { id: workspaceId }: WorkspaceEntity,
): Promise<ViewFieldDTO> {
diff --git a/packages/twenty-server/src/engine/metadata-modules/view-filter-group/dtos/view-filter-group.dto.ts b/packages/twenty-server/src/engine/metadata-modules/view-filter-group/dtos/view-filter-group.dto.ts
index 4f620b8e983..ae0b1348fd3 100644
--- a/packages/twenty-server/src/engine/metadata-modules/view-filter-group/dtos/view-filter-group.dto.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/view-filter-group/dtos/view-filter-group.dto.ts
@@ -9,7 +9,7 @@ registerEnumType(ViewFilterGroupLogicalOperator, {
name: 'ViewFilterGroupLogicalOperator',
});
-@ObjectType('CoreViewFilterGroup')
+@ObjectType('ViewFilterGroup')
export class ViewFilterGroupDTO {
@IDField(() => UUIDScalarType)
id: string;
diff --git a/packages/twenty-server/src/engine/metadata-modules/view-filter-group/resolvers/view-filter-group.resolver.ts b/packages/twenty-server/src/engine/metadata-modules/view-filter-group/resolvers/view-filter-group.resolver.ts
index 7e08cf6ba5d..ef09afab911 100644
--- a/packages/twenty-server/src/engine/metadata-modules/view-filter-group/resolvers/view-filter-group.resolver.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/view-filter-group/resolvers/view-filter-group.resolver.ts
@@ -28,7 +28,7 @@ export class ViewFilterGroupResolver {
@Query(() => [ViewFilterGroupDTO])
@UseGuards(NoPermissionGuard)
- async getCoreViewFilterGroups(
+ async getViewFilterGroups(
@AuthWorkspace() workspace: WorkspaceEntity,
@Args('viewId', { type: () => String, nullable: true })
viewId?: string,
@@ -42,7 +42,7 @@ export class ViewFilterGroupResolver {
@Query(() => ViewFilterGroupDTO, { nullable: true })
@UseGuards(NoPermissionGuard)
- async getCoreViewFilterGroup(
+ async getViewFilterGroup(
@Args('id', { type: () => String }) id: string,
@AuthWorkspace() workspace: WorkspaceEntity,
): Promise<ViewFilterGroupDTO | null> {
@@ -51,7 +51,7 @@ export class ViewFilterGroupResolver {
@Mutation(() => ViewFilterGroupDTO)
@UseGuards(CreateViewFilterGroupPermissionGuard)
- async createCoreViewFilterGroup(
+ async createViewFilterGroup(
@Args('input') input: CreateViewFilterGroupInput,
@AuthWorkspace() workspace: WorkspaceEntity,
): Promise<ViewFilterGroupDTO> {
@@ -63,7 +63,7 @@ export class ViewFilterGroupResolver {
@Mutation(() => ViewFilterGroupDTO)
@UseGuards(UpdateViewFilterGroupPermissionGuard)
- async updateCoreViewFilterGroup(
+ async updateViewFilterGroup(
@Args('id', { type: () => String }) id: string,
@Args('input') input: UpdateViewFilterGroupInput,
@AuthWorkspace() workspace: WorkspaceEntity,
@@ -77,7 +77,7 @@ export class ViewFilterGroupResolver {
@Mutation(() => Boolean)
@UseGuards(DeleteViewFilterGroupPermissionGuard)
- async deleteCoreViewFilterGroup(
+ async deleteViewFilterGroup(
@Args('id', { type: () => String }) id: string,
@AuthWorkspace() workspace: WorkspaceEntity,
): Promise<boolean> {
@@ -91,7 +91,7 @@ export class ViewFilterGroupResolver {
@Mutation(() => Boolean)
@UseGuards(DestroyViewFilterGroupPermissionGuard)
- async destroyCoreViewFilterGroup(
+ async destroyViewFilterGroup(
@Args('id', { type: () => String }) id: string,
@AuthWorkspace() workspace: WorkspaceEntity,
): Promise<boolean> {
diff --git a/packages/twenty-server/src/engine/metadata-modules/view-filter/dtos/view-filter.dto.ts b/packages/twenty-server/src/engine/metadata-modules/view-filter/dtos/view-filter.dto.ts
index 36f741ece10..408b6681079 100644
--- a/packages/twenty-server/src/engine/metadata-modules/view-filter/dtos/view-filter.dto.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/view-filter/dtos/view-filter.dto.ts
@@ -11,7 +11,7 @@ registerEnumType(ViewFilterOperand, {
name: 'ViewFilterOperand',
});
-@ObjectType('CoreViewFilter')
+@ObjectType('ViewFilter')
export class ViewFilterDTO {
@IDField(() => UUIDScalarType)
id: string;
diff --git a/packages/twenty-server/src/engine/metadata-modules/view-filter/resolvers/view-filter.resolver.ts b/packages/twenty-server/src/engine/metadata-modules/view-filter/resolvers/view-filter.resolver.ts
index 66516ce488d..71c9319a838 100644
--- a/packages/twenty-server/src/engine/metadata-modules/view-filter/resolvers/view-filter.resolver.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/view-filter/resolvers/view-filter.resolver.ts
@@ -26,7 +26,7 @@ export class ViewFilterResolver {
@Query(() => [ViewFilterDTO])
@UseGuards(NoPermissionGuard)
- async getCoreViewFilters(
+ async getViewFilters(
@AuthWorkspace() workspace: WorkspaceEntity,
@Args('viewId', { type: () => String, nullable: true })
viewId?: string,
@@ -40,7 +40,7 @@ export class ViewFilterResolver {
@Query(() => ViewFilterDTO, { nullable: true })
@UseGuards(NoPermissionGuard)
- async getCoreViewFilter(
+ async getViewFilter(
@Args('id', { type: () => String }) id: string,
@AuthWorkspace() workspace: WorkspaceEntity,
): Promise<ViewFilterDTO | null> {
@@ -49,7 +49,7 @@ export class ViewFilterResolver {
@Mutation(() => ViewFilterDTO)
@UseGuards(CreateViewFilterPermissionGuard)
- async createCoreViewFilter(
+ async createViewFilter(
@Args('input') createViewFilterInput: CreateViewFilterInput,
@AuthWorkspace() { id: workspaceId }: WorkspaceEntity,
): Promise<ViewFilterDTO> {
@@ -61,7 +61,7 @@ export class ViewFilterResolver {
@Mutation(() => ViewFilterDTO)
@UseGuards(UpdateViewFilterPermissionGuard)
- async updateCoreViewFilter(
+ async updateViewFilter(
@Args('input') updateViewFilterInput: UpdateViewFilterInput,
@AuthWorkspace() { id: workspaceId }: WorkspaceEntity,
): Promise<ViewFilterDTO> {
@@ -73,7 +73,7 @@ export class ViewFilterResolver {
@Mutation(() => ViewFilterDTO)
@UseGuards(DeleteViewFilterPermissionGuard)
- async deleteCoreViewFilter(
+ async deleteViewFilter(
@Args('input') deleteViewFilterInput: DeleteViewFilterInput,
@AuthWorkspace() { id: workspaceId }: WorkspaceEntity,
): Promise<ViewFilterDTO> {
@@ -85,7 +85,7 @@ export class ViewFilterResolver {
@Mutation(() => ViewFilterDTO)
@UseGuards(DestroyViewFilterPermissionGuard)
- async destroyCoreViewFilter(
+ async destroyViewFilter(
@Args('input') destroyViewFilterInput: DestroyViewFilterInput,
@AuthWorkspace() { id: workspaceId }: WorkspaceEntity,
): Promise<ViewFilterDTO> {
diff --git a/packages/twenty-server/src/engine/metadata-modules/view-group/dtos/view-group.dto.ts b/packages/twenty-server/src/engine/metadata-modules/view-group/dtos/view-group.dto.ts
index c5e6ccc4cce..ca0264e7f1e 100644
--- a/packages/twenty-server/src/engine/metadata-modules/view-group/dtos/view-group.dto.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/view-group/dtos/view-group.dto.ts
@@ -4,7 +4,7 @@ import { IDField } from '@ptc-org/nestjs-query-graphql';
import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars';
-@ObjectType('CoreViewGroup')
+@ObjectType('ViewGroup')
export class ViewGroupDTO {
@IDField(() => UUIDScalarType)
id: string;
diff --git a/packages/twenty-server/src/engine/metadata-modules/view-group/resolvers/view-group.resolver.ts b/packages/twenty-server/src/engine/metadata-modules/view-group/resolvers/view-group.resolver.ts
index 4f612bfab14..f9b5e051671 100644
--- a/packages/twenty-server/src/engine/metadata-modules/view-group/resolvers/view-group.resolver.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/view-group/resolvers/view-group.resolver.ts
@@ -26,7 +26,7 @@ export class ViewGroupResolver {
@Query(() => [ViewGroupDTO])
@UseGuards(NoPermissionGuard)
- async getCoreViewGroups(
+ async getViewGroups(
@AuthWorkspace() workspace: WorkspaceEntity,
@Args('viewId', { type: () => String, nullable: true })
viewId?: string,
@@ -40,7 +40,7 @@ export class ViewGroupResolver {
@Query(() => ViewGroupDTO, { nullable: true })
@UseGuards(NoPermissionGuard)
- async getCoreViewGroup(
+ async getViewGroup(
@Args('id', { type: () => String }) id: string,
@AuthWorkspace() workspace: WorkspaceEntity,
): Promise<ViewGroupDTO | null> {
@@ -49,7 +49,7 @@ export class ViewGroupResolver {
@Mutation(() => ViewGroupDTO)
@UseGuards(CreateViewGroupPermissionGuard)
- async createCoreViewGroup(
+ async createViewGroup(
@Args('input') createViewGroupInput: CreateViewGroupInput,
@AuthWorkspace() { id: workspaceId }: WorkspaceEntity,
): Promise<ViewGroupDTO> {
@@ -61,7 +61,7 @@ export class ViewGroupResolver {
@Mutation(() => [ViewGroupDTO])
@UseGuards(CreateViewGroupPermissionGuard)
- async createManyCoreViewGroups(
+ async createManyViewGroups(
@Args('inputs', { type: () => [CreateViewGroupInput] })
createViewGroupInputs: CreateViewGroupInput[],
@AuthWorkspace() { id: workspaceId }: WorkspaceEntity,
@@ -74,7 +74,7 @@ export class ViewGroupResolver {
@Mutation(() => ViewGroupDTO)
@UseGuards(UpdateViewGroupPermissionGuard)
- async updateCoreViewGroup(
+ async updateViewGroup(
@Args('input') updateViewGroupInput: UpdateViewGroupInput,
@AuthWorkspace() { id: workspaceId }: WorkspaceEntity,
): Promise<ViewGroupDTO> {
@@ -86,7 +86,7 @@ export class ViewGroupResolver {
@Mutation(() => ViewGroupDTO)
@UseGuards(DeleteViewGroupPermissionGuard)
- async deleteCoreViewGroup(
+ async deleteViewGroup(
@Args('input') deleteViewGroupInput: DeleteViewGroupInput,
@AuthWorkspace() { id: workspaceId }: WorkspaceEntity,
): Promise<ViewGroupDTO> {
@@ -98,7 +98,7 @@ export class ViewGroupResolver {
@Mutation(() => ViewGroupDTO)
@UseGuards(DestroyViewGroupPermissionGuard)
- async destroyCoreViewGroup(
+ async destroyViewGroup(
@Args('input') destroyViewGroupInput: DestroyViewGroupInput,
@AuthWorkspace() { id: workspaceId }: WorkspaceEntity,
): Promise<ViewGroupDTO> {
diff --git a/packages/twenty-server/src/engine/metadata-modules/view-sort/dtos/view-sort.dto.ts b/packages/twenty-server/src/engine/metadata-modules/view-sort/dtos/view-sort.dto.ts
index 385e5e22b90..bb24f4d04b2 100644
--- a/packages/twenty-server/src/engine/metadata-modules/view-sort/dtos/view-sort.dto.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/view-sort/dtos/view-sort.dto.ts
@@ -7,7 +7,7 @@ import { ViewSortDirection } from 'src/engine/metadata-modules/view-sort/enums/v
registerEnumType(ViewSortDirection, { name: 'ViewSortDirection' });
-@ObjectType('CoreViewSort')
+@ObjectType('ViewSort')
export class ViewSortDTO {
@IDField(() => UUIDScalarType)
id: string;
diff --git a/packages/twenty-server/src/engine/metadata-modules/view-sort/resolvers/view-sort.resolver.ts b/packages/twenty-server/src/engine/metadata-modules/view-sort/resolvers/view-sort.resolver.ts
index 1c3c3fddaad..4ff978b13cc 100644
--- a/packages/twenty-server/src/engine/metadata-modules/view-sort/resolvers/view-sort.resolver.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/view-sort/resolvers/view-sort.resolver.ts
@@ -28,7 +28,7 @@ export class ViewSortResolver {
@Query(() => [ViewSortDTO])
@UseGuards(NoPermissionGuard)
- async getCoreViewSorts(
+ async getViewSorts(
@AuthWorkspace() workspace: WorkspaceEntity,
@Args('viewId', { type: () => String, nullable: true })
viewId?: string,
@@ -42,7 +42,7 @@ export class ViewSortResolver {
@Query(() => ViewSortDTO, { nullable: true })
@UseGuards(NoPermissionGuard)
- async getCoreViewSort(
+ async getViewSort(
@Args('id', { type: () => String }) id: string,
@AuthWorkspace() { id: workspaceId }: WorkspaceEntity,
): Promise<ViewSortDTO | null> {
@@ -51,7 +51,7 @@ export class ViewSortResolver {
@Mutation(() => ViewSortDTO)
@UseGuards(CreateViewSortPermissionGuard)
- async createCoreViewSort(
+ async createViewSort(
@Args('input') createViewSortInput: CreateViewSortInput,
@AuthWorkspace() { id: workspaceId }: WorkspaceEntity,
): Promise<ViewSortDTO> {
@@ -63,7 +63,7 @@ export class ViewSortResolver {
@Mutation(() => ViewSortDTO)
@UseGuards(UpdateViewSortPermissionGuard)
- async updateCoreViewSort(
+ async updateViewSort(
@Args('input') updateViewSortInput: UpdateViewSortInput,
@AuthWorkspace() { id: workspaceId }: WorkspaceEntity,
): Promise<ViewSortDTO> {
@@ -75,7 +75,7 @@ export class ViewSortResolver {
@Mutation(() => Boolean)
@UseGuards(DeleteViewSortPermissionGuard)
- async deleteCoreViewSort(
+ async deleteViewSort(
@Args('input') deleteViewSortInput: DeleteViewSortInput,
@AuthWorkspace() { id: workspaceId }: WorkspaceEntity,
): Promise<boolean> {
@@ -89,7 +89,7 @@ export class ViewSortResolver {
@Mutation(() => Boolean)
@UseGuards(DestroyViewSortPermissionGuard)
- async destroyCoreViewSort(
+ async destroyViewSort(
@Args('input') destroyViewSortInput: DestroyViewSortInput,
@AuthWorkspace() { id: workspaceId }: WorkspaceEntity,
): Promise<boolean> {
diff --git a/packages/twenty-server/src/engine/metadata-modules/view/constants/find-all-core-views-graphql-operation.constant.ts b/packages/twenty-server/src/engine/metadata-modules/view/constants/find-all-core-views-graphql-operation.constant.ts
deleted file mode 100644
index e973815c180..00000000000
--- a/packages/twenty-server/src/engine/metadata-modules/view/constants/find-all-core-views-graphql-operation.constant.ts
+++ /dev/null
@@ -1 +0,0 @@
-export const FIND_ALL_CORE_VIEWS_GRAPHQL_OPERATION = 'FindAllCoreViews';
diff --git a/packages/twenty-server/src/engine/metadata-modules/view/constants/find-all-views-graphql-operation.constant.ts b/packages/twenty-server/src/engine/metadata-modules/view/constants/find-all-views-graphql-operation.constant.ts
new file mode 100644
index 00000000000..fb4ee1a4444
--- /dev/null
+++ b/packages/twenty-server/src/engine/metadata-modules/view/constants/find-all-views-graphql-operation.constant.ts
@@ -0,0 +1 @@
+export const FIND_ALL_VIEWS_GRAPHQL_OPERATION = 'FindAllViews';
diff --git a/packages/twenty-server/src/engine/metadata-modules/view/dtos/view.dto.ts b/packages/twenty-server/src/engine/metadata-modules/view/dtos/view.dto.ts
index 45184cf03e0..9d98718d046 100644
--- a/packages/twenty-server/src/engine/metadata-modules/view/dtos/view.dto.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/view/dtos/view.dto.ts
@@ -24,7 +24,7 @@ registerEnumType(ViewKey, { name: 'ViewKey' });
registerEnumType(ViewCalendarLayout, { name: 'ViewCalendarLayout' });
registerEnumType(ViewVisibility, { name: 'ViewVisibility' });
-@ObjectType('CoreView')
+@ObjectType('View')
export class ViewDTO {
@IDField(() => UUIDScalarType)
id: string;
diff --git a/packages/twenty-server/src/engine/metadata-modules/view/resolvers/view.resolver.ts b/packages/twenty-server/src/engine/metadata-modules/view/resolvers/view.resolver.ts
index 0a0fdcdc748..6ec54201d71 100644
--- a/packages/twenty-server/src/engine/metadata-modules/view/resolvers/view.resolver.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/view/resolvers/view.resolver.ts
@@ -94,7 +94,7 @@ export class ViewResolver {
@Query(() => [ViewDTO])
@UseGuards(CustomPermissionGuard)
- async getCoreViews(
+ async getViews(
@AuthWorkspace() workspace: WorkspaceEntity,
@AuthUserWorkspaceId() userWorkspaceId: string | undefined,
@Args('objectMetadataId', { type: () => String, nullable: true })
@@ -120,7 +120,7 @@ export class ViewResolver {
@Query(() => ViewDTO, { nullable: true })
@UseGuards(NoPermissionGuard)
- async getCoreView(
+ async getView(
@Args('id', { type: () => String }) id: string,
@AuthWorkspace() workspace: WorkspaceEntity,
): Promise<ViewDTO | null> {
@@ -135,7 +135,7 @@ export class ViewResolver {
@Mutation(() => ViewDTO)
@UseGuards(CreateViewPermissionGuard)
- async createCoreView(
+ async createView(
@Args('input') input: CreateViewInput,
@AuthWorkspace() workspace: WorkspaceEntity,
@AuthUserWorkspaceId() userWorkspaceId: string | undefined,
@@ -153,7 +153,7 @@ export class ViewResolver {
@Mutation(() => ViewDTO)
@UseGuards(UpdateViewPermissionGuard)
- async updateCoreView(
+ async updateView(
@Args('id', { type: () => String }) id: string,
@Args('input') input: UpdateViewInput,
@AuthWorkspace() workspace: WorkspaceEntity,
@@ -168,7 +168,7 @@ export class ViewResolver {
@Mutation(() => Boolean)
@UseGuards(DeleteViewPermissionGuard)
- async deleteCoreView(
+ async deleteView(
@Args('id', { type: () => String }) id: string,
@AuthWorkspace() workspace: WorkspaceEntity,
): Promise<boolean> {
@@ -182,7 +182,7 @@ export class ViewResolver {
@Mutation(() => Boolean)
@UseGuards(DestroyViewPermissionGuard)
- async destroyCoreView(
+ async destroyView(
@Args('id', { type: () => String }) id: string,
@AuthWorkspace() workspace: WorkspaceEntity,
): Promise<boolean> {
diff --git a/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-runner/services/workspace-migration-runner.service.ts b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-runner/services/workspace-migration-runner.service.ts
index 45d12f5f202..aed64f1843d 100644
--- a/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-runner/services/workspace-migration-runner.service.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-runner/services/workspace-migration-runner.service.ts
@@ -12,7 +12,7 @@ import { getMetadataFlatEntityMapsKey } from 'src/engine/metadata-modules/flat-e
import { getMetadataRelatedMetadataNamesForValidation } from 'src/engine/metadata-modules/flat-entity/utils/get-metadata-related-metadata-names-for-validation.util';
import { getMetadataRelatedMetadataNames } from 'src/engine/metadata-modules/flat-entity/utils/get-metadata-related-metadata-names.util';
import { getMetadataSerializedRelationNames } from 'src/engine/metadata-modules/flat-entity/utils/get-metadata-serialized-relation-names.util';
-import { FIND_ALL_CORE_VIEWS_GRAPHQL_OPERATION } from 'src/engine/metadata-modules/view/constants/find-all-core-views-graphql-operation.constant';
+import { FIND_ALL_VIEWS_GRAPHQL_OPERATION } from 'src/engine/metadata-modules/view/constants/find-all-views-graphql-operation.constant';
import { WorkspaceMetadataVersionService } from 'src/engine/metadata-modules/workspace-metadata-version/services/workspace-metadata-version.service';
import { WorkspaceCacheStorageService } from 'src/engine/workspace-cache-storage/workspace-cache-storage.service';
import { WorkspaceCacheService } from 'src/engine/workspace-cache/services/workspace-cache.service';
@@ -66,16 +66,16 @@ export class WorkspaceMigrationRunnerService {
'flatViewFieldMaps',
'flatViewFilterGroupMaps',
];
- const shouldInvalidFindCoreViewsGraphqlCacheOperation =
+ const shouldInvalidateFindViewsGraphqlCacheOperation =
viewRelatedFlatMapsKeys.some((key) => flatMapsKeysSet.has(key));
if (
- shouldInvalidFindCoreViewsGraphqlCacheOperation ||
+ shouldInvalidateFindViewsGraphqlCacheOperation ||
shouldIncrementMetadataGraphqlSchemaVersion
) {
asyncOperations.push(
this.workspaceCacheStorageService.flushGraphQLOperation({
- operationName: FIND_ALL_CORE_VIEWS_GRAPHQL_OPERATION,
+ operationName: FIND_ALL_VIEWS_GRAPHQL_OPERATION,
workspaceId,
}),
);
diff --git a/packages/twenty-server/test/integration/graphql/suites/group-by-resolver.integration-spec.ts b/packages/twenty-server/test/integration/graphql/suites/group-by-resolver.integration-spec.ts
index 9599a84c473..6fbc802d4df 100644
--- a/packages/twenty-server/test/integration/graphql/suites/group-by-resolver.integration-spec.ts
+++ b/packages/twenty-server/test/integration/graphql/suites/group-by-resolver.integration-spec.ts
@@ -20,8 +20,8 @@ import { createRelationBetweenObjects } from 'test/integration/metadata/suites/o
import { deleteOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/delete-one-object-metadata.util';
import { findManyObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/find-many-object-metadata.util';
import { updateOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/update-one-object-metadata.util';
-import { createOneCoreViewFilter } from 'test/integration/metadata/suites/view-filter/utils/create-one-core-view-filter.util';
-import { createOneCoreView } from 'test/integration/metadata/suites/view/utils/create-one-core-view.util';
+import { createOneViewFilter } from 'test/integration/metadata/suites/view-filter/utils/create-one-view-filter.util';
+import { createOneView } from 'test/integration/metadata/suites/view/utils/create-one-view.util';
import { jestExpectToBeDefined } from 'test/utils/jest-expect-to-be-defined.util.test';
import {
FieldMetadataType,
@@ -863,7 +863,7 @@ describe('group-by resolver (integration)', () => {
);
// create a view with a filter: city eq cityToKeep
- const { data: createViewData } = await createOneCoreView({
+ const { data: createViewData } = await createOneView({
input: {
name: 'People View City Keep',
objectMetadataId: personObjectMetadataId,
@@ -872,7 +872,7 @@ describe('group-by resolver (integration)', () => {
expectToFail: false,
});
- viewId = createViewData.createCoreView.id;
+ viewId = createViewData.createView.id;
// create a filter group and a filter for the view
const viewFilterGroupResponse = await makeMetadataAPIRequest(
@@ -886,10 +886,10 @@ describe('group-by resolver (integration)', () => {
);
const viewFilterGroupId = viewFilterGroupResponse.body.data
- .createCoreViewFilterGroup.id as string;
+ .createViewFilterGroup.id as string;
jestExpectToBeDefined(cityFieldMetadataId);
- await createOneCoreViewFilter({
+ await createOneViewFilter({
input: {
viewId,
viewFilterGroupId,
@@ -953,7 +953,7 @@ describe('group-by resolver (integration)', () => {
);
// create a view with any field filter
- const { data: createViewData } = await createOneCoreView({
+ const { data: createViewData } = await createOneView({
input: {
name: 'People View City Keep',
objectMetadataId: personObjectMetadataId,
@@ -963,7 +963,7 @@ describe('group-by resolver (integration)', () => {
expectToFail: false,
});
- viewId = createViewData.createCoreView.id;
+ viewId = createViewData.createView.id;
const response = await makeGraphqlAPIRequest(
groupByOperationFactory({
diff --git a/packages/twenty-server/test/integration/graphql/suites/view/__snapshots__/view-filter-resolver.integration-spec.ts.snap b/packages/twenty-server/test/integration/graphql/suites/view/__snapshots__/view-filter-resolver.integration-spec.ts.snap
index 9811fff54ef..7d1e1135134 100644
--- a/packages/twenty-server/test/integration/graphql/suites/view/__snapshots__/view-filter-resolver.integration-spec.ts.snap
+++ b/packages/twenty-server/test/integration/graphql/suites/view/__snapshots__/view-filter-resolver.integration-spec.ts.snap
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
-exports[`View Filter Resolver deleteCoreViewFilter should throw an error when deleting non-existent view filter 1`] = `
+exports[`View Filter Resolver deleteViewFilter should throw an error when deleting non-existent view filter 1`] = `
{
"extensions": {
"code": "NOT_FOUND",
@@ -11,7 +11,7 @@ exports[`View Filter Resolver deleteCoreViewFilter should throw an error when de
}
`;
-exports[`View Filter Resolver destroyCoreViewFilter should throw an error when destroying non-existent view filter 1`] = `
+exports[`View Filter Resolver destroyViewFilter should throw an error when destroying non-existent view filter 1`] = `
{
"extensions": {
"code": "NOT_FOUND",
@@ -22,7 +22,7 @@ exports[`View Filter Resolver destroyCoreViewFilter should throw an error when d
}
`;
-exports[`View Filter Resolver updateCoreViewFilter should throw an error when updating non-existent view filter 1`] = `
+exports[`View Filter Resolver updateViewFilter should throw an error when updating non-existent view filter 1`] = `
{
"extensions": {
"code": "NOT_FOUND",
diff --git a/packages/twenty-server/test/integration/graphql/suites/view/__snapshots__/view-group-resolver.integration-spec.ts.snap b/packages/twenty-server/test/integration/graphql/suites/view/__snapshots__/view-group-resolver.integration-spec.ts.snap
index 22162c365f2..816b64303fd 100644
--- a/packages/twenty-server/test/integration/graphql/suites/view/__snapshots__/view-group-resolver.integration-spec.ts.snap
+++ b/packages/twenty-server/test/integration/graphql/suites/view/__snapshots__/view-group-resolver.integration-spec.ts.snap
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
-exports[`View Group Resolver deleteCoreViewGroup should throw an error when deleting non-existent view group 1`] = `
+exports[`View Group Resolver deleteViewGroup should throw an error when deleting non-existent view group 1`] = `
{
"extensions": {
"code": "NOT_FOUND",
@@ -11,7 +11,7 @@ exports[`View Group Resolver deleteCoreViewGroup should throw an error when dele
}
`;
-exports[`View Group Resolver destroyCoreViewGroup should throw an error when destroying non-existent view group 1`] = `
+exports[`View Group Resolver destroyViewGroup should throw an error when destroying non-existent view group 1`] = `
{
"extensions": {
"code": "NOT_FOUND",
@@ -22,7 +22,7 @@ exports[`View Group Resolver destroyCoreViewGroup should throw an error when des
}
`;
-exports[`View Group Resolver updateCoreViewGroup should throw an error when updating non-existent view group 1`] = `
+exports[`View Group Resolver updateViewGroup should throw an error when updating non-existent view group 1`] = `
{
"extensions": {
"code": "NOT_FOUND",
diff --git a/packages/twenty-server/test/integration/graphql/suites/view/create-view.integration-spec.ts b/packages/twenty-server/test/integration/graphql/suites/view/create-view.integration-spec.ts
index 1bf39cd2412..2644762175a 100644
--- a/packages/twenty-server/test/integration/graphql/suites/view/create-view.integration-spec.ts
+++ b/packages/twenty-server/test/integration/graphql/suites/view/create-view.integration-spec.ts
@@ -2,7 +2,7 @@ import { createOneSelectFieldMetadataForIntegrationTests } from 'test/integratio
import { createOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/create-one-object-metadata.util';
import { deleteOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/delete-one-object-metadata.util';
import { updateOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/update-one-object-metadata.util';
-import { createOneCoreView } from 'test/integration/metadata/suites/view/utils/create-one-core-view.util';
+import { createOneView } from 'test/integration/metadata/suites/view/utils/create-one-view.util';
import { assertViewStructure } from 'test/integration/utils/view-test.util';
import { ViewOpenRecordIn, ViewType } from 'twenty-shared/types';
@@ -55,7 +55,7 @@ describe('Create core view', () => {
});
it('should create a new view with all properties', async () => {
- const { data, errors } = await createOneCoreView({
+ const { data, errors } = await createOneView({
input: {
name: 'Kanban View',
objectMetadataId: testObjectMetadataId,
@@ -70,7 +70,7 @@ describe('Create core view', () => {
});
expect(errors).toBeUndefined();
- assertViewStructure(data.createCoreView, {
+ assertViewStructure(data.createView, {
name: 'Kanban View',
objectMetadataId: testObjectMetadataId,
mainGroupByFieldMetadataId: testSelectFieldMetadataId,
@@ -90,13 +90,13 @@ describe('Create core view', () => {
icon: 'IconList',
};
- const { data, errors } = await createOneCoreView({
+ const { data, errors } = await createOneView({
input,
expectToFail: false,
});
expect(errors).toBeUndefined();
- assertViewStructure(data.createCoreView, {
+ assertViewStructure(data.createView, {
name: input.name,
objectMetadataId: input.objectMetadataId,
icon: input.icon,
diff --git a/packages/twenty-server/test/integration/graphql/suites/view/delete-view.integration-spec.ts b/packages/twenty-server/test/integration/graphql/suites/view/delete-view.integration-spec.ts
index 590a79de945..e69dd4929d6 100644
--- a/packages/twenty-server/test/integration/graphql/suites/view/delete-view.integration-spec.ts
+++ b/packages/twenty-server/test/integration/graphql/suites/view/delete-view.integration-spec.ts
@@ -2,9 +2,9 @@ import { expectOneNotInternalServerErrorSnapshot } from 'test/integration/graphq
import { createOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/create-one-object-metadata.util';
import { deleteOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/delete-one-object-metadata.util';
import { updateOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/update-one-object-metadata.util';
-import { createOneCoreView } from 'test/integration/metadata/suites/view/utils/create-one-core-view.util';
-import { deleteOneCoreView } from 'test/integration/metadata/suites/view/utils/delete-one-core-view.util';
-import { findOneCoreView } from 'test/integration/metadata/suites/view/utils/find-one-core-view.util';
+import { createOneView } from 'test/integration/metadata/suites/view/utils/create-one-view.util';
+import { deleteOneView } from 'test/integration/metadata/suites/view/utils/delete-one-view.util';
+import { findOneView } from 'test/integration/metadata/suites/view/utils/find-one-view.util';
const TEST_NOT_EXISTING_VIEW_ID = '20202020-0000-4000-8000-000000000000';
@@ -48,8 +48,8 @@ describe('Delete core view', () => {
it('should delete an existing view', async () => {
const {
- data: { createCoreView: view },
- } = await createOneCoreView({
+ data: { createView: view },
+ } = await createOneView({
input: {
name: 'View to Delete',
objectMetadataId: testObjectMetadataId,
@@ -58,24 +58,24 @@ describe('Delete core view', () => {
expectToFail: false,
});
- const { data: deleteData, errors: deleteErrors } = await deleteOneCoreView({
+ const { data: deleteData, errors: deleteErrors } = await deleteOneView({
viewId: view.id,
expectToFail: false,
});
expect(deleteErrors).toBeUndefined();
- expect(deleteData.deleteCoreView).toBe(true);
+ expect(deleteData.deleteView).toBe(true);
- const { data: getData } = await findOneCoreView({
+ const { data: getData } = await findOneView({
viewId: view.id,
expectToFail: false,
});
- expect(getData.getCoreView).toBeNull();
+ expect(getData.getView).toBeNull();
});
it('should throw an error when deleting non-existent view', async () => {
- const { errors } = await deleteOneCoreView({
+ const { errors } = await deleteOneView({
viewId: TEST_NOT_EXISTING_VIEW_ID,
expectToFail: true,
});
diff --git a/packages/twenty-server/test/integration/graphql/suites/view/destroy-view.integration-spec.ts b/packages/twenty-server/test/integration/graphql/suites/view/destroy-view.integration-spec.ts
index 45c8af49e54..d1d786d70fd 100644
--- a/packages/twenty-server/test/integration/graphql/suites/view/destroy-view.integration-spec.ts
+++ b/packages/twenty-server/test/integration/graphql/suites/view/destroy-view.integration-spec.ts
@@ -2,10 +2,10 @@ import { expectOneNotInternalServerErrorSnapshot } from 'test/integration/graphq
import { createOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/create-one-object-metadata.util';
import { deleteOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/delete-one-object-metadata.util';
import { updateOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/update-one-object-metadata.util';
-import { createOneCoreView } from 'test/integration/metadata/suites/view/utils/create-one-core-view.util';
-import { deleteOneCoreView } from 'test/integration/metadata/suites/view/utils/delete-one-core-view.util';
-import { destroyOneCoreView } from 'test/integration/metadata/suites/view/utils/destroy-one-core-view.util';
-import { findOneCoreView } from 'test/integration/metadata/suites/view/utils/find-one-core-view.util';
+import { createOneView } from 'test/integration/metadata/suites/view/utils/create-one-view.util';
+import { deleteOneView } from 'test/integration/metadata/suites/view/utils/delete-one-view.util';
+import { destroyOneView } from 'test/integration/metadata/suites/view/utils/destroy-one-view.util';
+import { findOneView } from 'test/integration/metadata/suites/view/utils/find-one-view.util';
const TEST_NOT_EXISTING_VIEW_ID = '20202020-0000-4000-8000-000000000000';
@@ -49,8 +49,8 @@ describe('Destroy core view', () => {
it('should destroy an existing view', async () => {
const {
- data: { createCoreView: view },
- } = await createOneCoreView({
+ data: { createView: view },
+ } = await createOneView({
input: {
icon: '123Icon',
name: 'View to Destroy',
@@ -59,33 +59,33 @@ describe('Destroy core view', () => {
expectToFail: false,
});
- const { data: deleteData, errors: deleteErrors } = await deleteOneCoreView({
+ const { data: deleteData, errors: deleteErrors } = await deleteOneView({
viewId: view.id,
expectToFail: false,
});
expect(deleteErrors).toBeUndefined();
- expect(deleteData.deleteCoreView).toBe(true);
+ expect(deleteData.deleteView).toBe(true);
const { data: destroyData, errors: destroyErrors } =
- await destroyOneCoreView({
+ await destroyOneView({
viewId: view.id,
expectToFail: false,
});
expect(destroyErrors).toBeUndefined();
- expect(destroyData.destroyCoreView).toBe(true);
+ expect(destroyData.destroyView).toBe(true);
- const { data: getData } = await findOneCoreView({
+ const { data: getData } = await findOneView({
viewId: view.id,
expectToFail: false,
});
- expect(getData.getCoreView).toBeNull();
+ expect(getData.getView).toBeNull();
});
it('should throw an error when destroying non-existent view', async () => {
- const { errors } = await destroyOneCoreView({
+ const { errors } = await destroyOneView({
viewId: TEST_NOT_EXISTING_VIEW_ID,
expectToFail: true,
});
diff --git a/packages/twenty-server/test/integration/graphql/suites/view/successful-find-view.integration-spec.ts b/packages/twenty-server/test/integration/graphql/suites/view/successful-find-view.integration-spec.ts
index d08adbe43a8..991ffb6bb56 100644
--- a/packages/twenty-server/test/integration/graphql/suites/view/successful-find-view.integration-spec.ts
+++ b/packages/twenty-server/test/integration/graphql/suites/view/successful-find-view.integration-spec.ts
@@ -7,7 +7,7 @@ import {
VIEW_SORT_GQL_FIELDS,
} from 'test/integration/constants/view-gql-fields.constants';
import { findManyObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/find-many-object-metadata.util';
-import { findCoreViews } from 'test/integration/metadata/suites/view/utils/find-core-views.util';
+import { findViews } from 'test/integration/metadata/suites/view/utils/find-views.util';
import { extractRecordIdsAndDatesAsExpectAny } from 'test/utils/extract-record-ids-and-dates-as-expect-any';
import { jestExpectToBeDefined } from 'test/utils/jest-expect-to-be-defined.util.test';
@@ -58,12 +58,12 @@ describe('successful find view with all sub-relations (e2e)', () => {
describe('Company View Structure Validation', () => {
it('should successfully fetch complete view structure with all sub-relations in single GraphQL query', async () => {
- const { data: viewsData } = await findCoreViews({
+ const { data: viewsData } = await findViews({
objectMetadataId: companyObjectMetadataId,
gqlFields: COMPREHENSIVE_VIEW_GQL_FIELDS,
expectToFail: false,
});
- const testView = viewsData.getCoreViews.find(
+ const testView = viewsData.getViews.find(
(view) => view.key === ViewKey.INDEX,
);
diff --git a/packages/twenty-server/test/integration/graphql/suites/view/update-view.integration-spec.ts b/packages/twenty-server/test/integration/graphql/suites/view/update-view.integration-spec.ts
index be592def472..104f6e09b95 100644
--- a/packages/twenty-server/test/integration/graphql/suites/view/update-view.integration-spec.ts
+++ b/packages/twenty-server/test/integration/graphql/suites/view/update-view.integration-spec.ts
@@ -3,8 +3,8 @@ import { createOneSelectFieldMetadataForIntegrationTests } from 'test/integratio
import { createOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/create-one-object-metadata.util';
import { deleteOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/delete-one-object-metadata.util';
import { updateOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/update-one-object-metadata.util';
-import { createOneCoreView } from 'test/integration/metadata/suites/view/utils/create-one-core-view.util';
-import { updateOneCoreView } from 'test/integration/metadata/suites/view/utils/update-one-core-view.util';
+import { createOneView } from 'test/integration/metadata/suites/view/utils/create-one-view.util';
+import { updateOneView } from 'test/integration/metadata/suites/view/utils/update-one-view.util';
import { ViewType } from 'twenty-shared/types';
const TEST_NOT_EXISTING_VIEW_ID = '20202020-0000-4000-8000-000000000000';
@@ -74,8 +74,8 @@ describe('Update core view', () => {
it('should update an existing view', async () => {
const {
- data: { createCoreView: view },
- } = await createOneCoreView({
+ data: { createView: view },
+ } = await createOneView({
input: {
icon: '123Icon',
name: 'Original View',
@@ -94,14 +94,14 @@ describe('Update core view', () => {
isCompact: true,
};
- const { data, errors } = await updateOneCoreView({
+ const { data, errors } = await updateOneView({
viewId: view.id,
input: updateInput,
expectToFail: false,
});
expect(errors).toBeUndefined();
- expect(data.updateCoreView).toMatchObject({
+ expect(data.updateView).toMatchObject({
id: view.id,
name: 'Updated View',
type: ViewType.KANBAN,
@@ -110,7 +110,7 @@ describe('Update core view', () => {
});
it('should throw error when updating non-existent view', async () => {
- const { errors } = await updateOneCoreView({
+ const { errors } = await updateOneView({
viewId: TEST_NOT_EXISTING_VIEW_ID,
input: { id: TEST_NOT_EXISTING_VIEW_ID, name: 'Non-existent View' },
expectToFail: true,
diff --git a/packages/twenty-server/test/integration/graphql/suites/view/utils/setup-view-field-group-test.util.ts b/packages/twenty-server/test/integration/graphql/suites/view/utils/setup-view-field-group-test.util.ts
index c7cd33f342c..d3cef788283 100644
--- a/packages/twenty-server/test/integration/graphql/suites/view/utils/setup-view-field-group-test.util.ts
+++ b/packages/twenty-server/test/integration/graphql/suites/view/utils/setup-view-field-group-test.util.ts
@@ -1,7 +1,7 @@
import { createOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/create-one-object-metadata.util';
import { deleteOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/delete-one-object-metadata.util';
import { updateOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/update-one-object-metadata.util';
-import { createOneCoreView } from 'test/integration/metadata/suites/view/utils/create-one-core-view.util';
+import { createOneView } from 'test/integration/metadata/suites/view/utils/create-one-view.util';
export type ViewFieldGroupTestSetup = {
testViewId: string;
@@ -27,9 +27,9 @@ export const setupViewFieldGroupTest =
const {
data: {
- createCoreView: { id: testViewId },
+ createView: { id: testViewId },
},
- } = await createOneCoreView({
+ } = await createOneView({
input: {
icon: 'icon123',
objectMetadataId,
diff --git a/packages/twenty-server/test/integration/graphql/suites/view/utils/setup-view-field-test.util.ts b/packages/twenty-server/test/integration/graphql/suites/view/utils/setup-view-field-test.util.ts
index 48ada563c01..6ee243e1c25 100644
--- a/packages/twenty-server/test/integration/graphql/suites/view/utils/setup-view-field-test.util.ts
+++ b/packages/twenty-server/test/integration/graphql/suites/view/utils/setup-view-field-test.util.ts
@@ -2,7 +2,7 @@ import { createOneFieldMetadata } from 'test/integration/metadata/suites/field-m
import { createOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/create-one-object-metadata.util';
import { deleteOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/delete-one-object-metadata.util';
import { updateOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/update-one-object-metadata.util';
-import { createOneCoreView } from 'test/integration/metadata/suites/view/utils/create-one-core-view.util';
+import { createOneView } from 'test/integration/metadata/suites/view/utils/create-one-view.util';
import { FieldMetadataType } from 'twenty-shared/types';
export type ViewFieldTestSetup = {
@@ -50,9 +50,9 @@ export const setupViewFieldTest = async (): Promise<ViewFieldTestSetup> => {
const {
data: {
- createCoreView: { id: testViewId },
+ createView: { id: testViewId },
},
- } = await createOneCoreView({
+ } = await createOneView({
input: {
icon: 'icon123',
objectMetadataId,
diff --git a/packages/twenty-server/test/integration/graphql/suites/view/view-field-group/failing-create-many-view-field-groups.integration-spec.ts b/packages/twenty-server/test/integration/graphql/suites/view/view-field-group/failing-create-many-view-field-groups.integration-spec.ts
index 56365aa1d61..f2f8c0836c1 100644
--- a/packages/twenty-server/test/integration/graphql/suites/view/view-field-group/failing-create-many-view-field-groups.integration-spec.ts
+++ b/packages/twenty-server/test/integration/graphql/suites/view/view-field-group/failing-create-many-view-field-groups.integration-spec.ts
@@ -2,8 +2,8 @@ import { expectOneNotInternalServerErrorSnapshot } from 'test/integration/graphq
import { createOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/create-one-object-metadata.util';
import { deleteOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/delete-one-object-metadata.util';
import { updateOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/update-one-object-metadata.util';
-import { createManyCoreViewFieldGroups } from 'test/integration/metadata/suites/view-field-group/utils/create-many-core-view-field-groups.util';
-import { createOneCoreView } from 'test/integration/metadata/suites/view/utils/create-one-core-view.util';
+import { createManyViewFieldGroups } from 'test/integration/metadata/suites/view-field-group/utils/create-many-view-field-groups.util';
+import { createOneView } from 'test/integration/metadata/suites/view/utils/create-one-view.util';
import { v4 as uuidv4 } from 'uuid';
import { type CreateViewFieldGroupInput } from 'src/engine/metadata-modules/view-field-group/dtos/inputs/create-view-field-group.input';
@@ -32,9 +32,9 @@ describe('View Field Group Resolver - Failing Create Many Operations', () => {
const {
data: {
- createCoreView: { id: testViewId },
+ createView: { id: testViewId },
},
- } = await createOneCoreView({
+ } = await createOneView({
input: {
icon: 'icon123',
objectMetadataId,
@@ -82,7 +82,7 @@ describe('View Field Group Resolver - Failing Create Many Operations', () => {
},
];
- const { errors } = await createManyCoreViewFieldGroups({
+ const { errors } = await createManyViewFieldGroups({
inputs,
expectToFail: true,
});
diff --git a/packages/twenty-server/test/integration/graphql/suites/view/view-field-group/failing-create-view-field-group.integration-spec.ts b/packages/twenty-server/test/integration/graphql/suites/view/view-field-group/failing-create-view-field-group.integration-spec.ts
index 4190c5df2f3..c89dcc8334f 100644
--- a/packages/twenty-server/test/integration/graphql/suites/view/view-field-group/failing-create-view-field-group.integration-spec.ts
+++ b/packages/twenty-server/test/integration/graphql/suites/view/view-field-group/failing-create-view-field-group.integration-spec.ts
@@ -4,9 +4,9 @@ import {
setupViewFieldGroupTest,
type ViewFieldGroupTestSetup,
} from 'test/integration/graphql/suites/view/utils/setup-view-field-group-test.util';
-import { createOneCoreViewFieldGroup } from 'test/integration/metadata/suites/view-field-group/utils/create-one-core-view-field-group.util';
-import { deleteOneCoreViewFieldGroup } from 'test/integration/metadata/suites/view-field-group/utils/delete-one-core-view-field-group.util';
-import { destroyOneCoreViewFieldGroup } from 'test/integration/metadata/suites/view-field-group/utils/destroy-one-core-view-field-group.util';
+import { createOneViewFieldGroup } from 'test/integration/metadata/suites/view-field-group/utils/create-one-view-field-group.util';
+import { deleteOneViewFieldGroup } from 'test/integration/metadata/suites/view-field-group/utils/delete-one-view-field-group.util';
+import { destroyOneViewFieldGroup } from 'test/integration/metadata/suites/view-field-group/utils/destroy-one-view-field-group.util';
import { extractRecordIdsAndDatesAsExpectAny } from 'test/utils/extract-record-ids-and-dates-as-expect-any';
import {
eachTestingContextFilter,
@@ -35,14 +35,14 @@ describe('View Field Group Resolver - Failing Create Operation', () => {
afterEach(async () => {
for (const viewFieldGroupId of createdViewFieldGroupIds) {
- await deleteOneCoreViewFieldGroup({
+ await deleteOneViewFieldGroup({
input: {
id: viewFieldGroupId,
},
expectToFail: false,
});
- await destroyOneCoreViewFieldGroup({
+ await destroyOneViewFieldGroup({
input: {
id: viewFieldGroupId,
},
@@ -76,7 +76,7 @@ describe('View Field Group Resolver - Failing Create Operation', () => {
'should fail to create view field group when $title',
async ({ context }) => {
const { input } = context(testSetup);
- const response = await createOneCoreViewFieldGroup({
+ const response = await createOneViewFieldGroup({
input,
expectToFail: true,
});
diff --git a/packages/twenty-server/test/integration/graphql/suites/view/view-field-group/failing-delete-view-field-group.integration-spec.ts b/packages/twenty-server/test/integration/graphql/suites/view/view-field-group/failing-delete-view-field-group.integration-spec.ts
index 48e02c27b00..d5d3de1e3ff 100644
--- a/packages/twenty-server/test/integration/graphql/suites/view/view-field-group/failing-delete-view-field-group.integration-spec.ts
+++ b/packages/twenty-server/test/integration/graphql/suites/view/view-field-group/failing-delete-view-field-group.integration-spec.ts
@@ -3,7 +3,7 @@ import {
setupViewFieldGroupTest,
type ViewFieldGroupTestSetup,
} from 'test/integration/graphql/suites/view/utils/setup-view-field-group-test.util';
-import { deleteOneCoreViewFieldGroup } from 'test/integration/metadata/suites/view-field-group/utils/delete-one-core-view-field-group.util';
+import { deleteOneViewFieldGroup } from 'test/integration/metadata/suites/view-field-group/utils/delete-one-view-field-group.util';
import { extractRecordIdsAndDatesAsExpectAny } from 'test/utils/extract-record-ids-and-dates-as-expect-any';
import {
eachTestingContextFilter,
@@ -45,7 +45,7 @@ describe('View Field Group Resolver - Failing Delete Operation', () => {
it.each(eachTestingContextFilter(deleteViewFieldGroupTestCases))(
'should fail to delete view field group when $title',
async ({ context }) => {
- const response = await deleteOneCoreViewFieldGroup({
+ const response = await deleteOneViewFieldGroup({
input: context.input,
expectToFail: true,
});
diff --git a/packages/twenty-server/test/integration/graphql/suites/view/view-field-group/failing-destroy-view-field-group.integration-spec.ts b/packages/twenty-server/test/integration/graphql/suites/view/view-field-group/failing-destroy-view-field-group.integration-spec.ts
index bca86bd70a0..55bcc4a2242 100644
--- a/packages/twenty-server/test/integration/graphql/suites/view/view-field-group/failing-destroy-view-field-group.integration-spec.ts
+++ b/packages/twenty-server/test/integration/graphql/suites/view/view-field-group/failing-destroy-view-field-group.integration-spec.ts
@@ -3,7 +3,7 @@ import {
setupViewFieldGroupTest,
type ViewFieldGroupTestSetup,
} from 'test/integration/graphql/suites/view/utils/setup-view-field-group-test.util';
-import { destroyOneCoreViewFieldGroup } from 'test/integration/metadata/suites/view-field-group/utils/destroy-one-core-view-field-group.util';
+import { destroyOneViewFieldGroup } from 'test/integration/metadata/suites/view-field-group/utils/destroy-one-view-field-group.util';
import { extractRecordIdsAndDatesAsExpectAny } from 'test/utils/extract-record-ids-and-dates-as-expect-any';
import {
eachTestingContextFilter,
@@ -45,7 +45,7 @@ describe('View Field Group Resolver - Failing Destroy Operation', () => {
it.each(eachTestingContextFilter(destroyViewFieldGroupTestCases))(
'should fail to destroy view field group when $title',
async ({ context }) => {
- const response = await destroyOneCoreViewFieldGroup({
+ const response = await destroyOneViewFieldGroup({
input: context.input,
expectToFail: true,
});
diff --git a/packages/twenty-server/test/integration/graphql/suites/view/view-field-group/failing-update-view-field-group.integration-spec.ts b/packages/twenty-server/test/integration/graphql/suites/view/view-field-group/failing-update-view-field-group.integration-spec.ts
index ad23481dac9..341a5f04b62 100644
--- a/packages/twenty-server/test/integration/graphql/suites/view/view-field-group/failing-update-view-field-group.integration-spec.ts
+++ b/packages/twenty-server/test/integration/graphql/suites/view/view-field-group/failing-update-view-field-group.integration-spec.ts
@@ -3,7 +3,7 @@ import {
setupViewFieldGroupTest,
type ViewFieldGroupTestSetup,
} from 'test/integration/graphql/suites/view/utils/setup-view-field-group-test.util';
-import { updateOneCoreViewFieldGroup } from 'test/integration/metadata/suites/view-field-group/utils/update-one-core-view-field-group.util';
+import { updateOneViewFieldGroup } from 'test/integration/metadata/suites/view-field-group/utils/update-one-view-field-group.util';
import { extractRecordIdsAndDatesAsExpectAny } from 'test/utils/extract-record-ids-and-dates-as-expect-any';
import {
eachTestingContextFilter,
@@ -48,7 +48,7 @@ describe('View Field Group Resolver - Failing Update Operation', () => {
it.each(eachTestingContextFilter(updateViewFieldGroupTestCases))(
'should fail to update view field group when $title',
async ({ context }) => {
- const response = await updateOneCoreViewFieldGroup({
+ const response = await updateOneViewFieldGroup({
input: context.input,
expectToFail: true,
});
diff --git a/packages/twenty-server/test/integration/graphql/suites/view/view-field-group/successful-create-many-view-field-groups.integration-spec.ts b/packages/twenty-server/test/integration/graphql/suites/view/view-field-group/successful-create-many-view-field-groups.integration-spec.ts
index 8b38820103e..0ebb8c142ec 100644
--- a/packages/twenty-server/test/integration/graphql/suites/view/view-field-group/successful-create-many-view-field-groups.integration-spec.ts
+++ b/packages/twenty-server/test/integration/graphql/suites/view/view-field-group/successful-create-many-view-field-groups.integration-spec.ts
@@ -1,10 +1,10 @@
import { createOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/create-one-object-metadata.util';
import { deleteOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/delete-one-object-metadata.util';
import { updateOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/update-one-object-metadata.util';
-import { createManyCoreViewFieldGroups } from 'test/integration/metadata/suites/view-field-group/utils/create-many-core-view-field-groups.util';
-import { deleteOneCoreViewFieldGroup } from 'test/integration/metadata/suites/view-field-group/utils/delete-one-core-view-field-group.util';
-import { destroyOneCoreViewFieldGroup } from 'test/integration/metadata/suites/view-field-group/utils/destroy-one-core-view-field-group.util';
-import { createOneCoreView } from 'test/integration/metadata/suites/view/utils/create-one-core-view.util';
+import { createManyViewFieldGroups } from 'test/integration/metadata/suites/view-field-group/utils/create-many-view-field-groups.util';
+import { deleteOneViewFieldGroup } from 'test/integration/metadata/suites/view-field-group/utils/delete-one-view-field-group.util';
+import { destroyOneViewFieldGroup } from 'test/integration/metadata/suites/view-field-group/utils/destroy-one-view-field-group.util';
+import { createOneView } from 'test/integration/metadata/suites/view/utils/create-one-view.util';
import { isDefined } from 'twenty-shared/utils';
import { type CreateViewFieldGroupInput } from 'src/engine/metadata-modules/view-field-group/dtos/inputs/create-view-field-group.input';
@@ -34,9 +34,9 @@ describe('View Field Group Resolver - Successful Create Many Operations', () =>
const {
data: {
- createCoreView: { id: testViewId },
+ createView: { id: testViewId },
},
- } = await createOneCoreView({
+ } = await createOneView({
input: {
icon: 'icon123',
objectMetadataId,
@@ -70,16 +70,16 @@ describe('View Field Group Resolver - Successful Create Many Operations', () =>
for (const viewFieldGroupId of createdViewFieldGroupIds) {
if (isDefined(viewFieldGroupId)) {
const {
- data: { deleteCoreViewFieldGroup },
- } = await deleteOneCoreViewFieldGroup({
+ data: { deleteViewFieldGroup },
+ } = await deleteOneViewFieldGroup({
expectToFail: false,
input: {
id: viewFieldGroupId,
},
});
- expect(deleteCoreViewFieldGroup.deletedAt).not.toBeNull();
- await destroyOneCoreViewFieldGroup({
+ expect(deleteViewFieldGroup.deletedAt).not.toBeNull();
+ await destroyOneViewFieldGroup({
expectToFail: false,
input: {
id: viewFieldGroupId,
@@ -113,9 +113,9 @@ describe('View Field Group Resolver - Successful Create Many Operations', () =>
];
const {
- data: { createManyCoreViewFieldGroups: createdViewFieldGroups },
+ data: { createManyViewFieldGroups: createdViewFieldGroups },
errors,
- } = await createManyCoreViewFieldGroups({
+ } = await createManyViewFieldGroups({
inputs,
expectToFail: false,
});
@@ -147,9 +147,9 @@ describe('View Field Group Resolver - Successful Create Many Operations', () =>
];
const {
- data: { createManyCoreViewFieldGroups: createdViewFieldGroups },
+ data: { createManyViewFieldGroups: createdViewFieldGroups },
errors,
- } = await createManyCoreViewFieldGroups({
+ } = await createManyViewFieldGroups({
inputs,
expectToFail: false,
});
@@ -174,9 +174,9 @@ describe('View Field Group Resolver - Successful Create Many Operations', () =>
const inputs: CreateViewFieldGroupInput[] = [];
const {
- data: { createManyCoreViewFieldGroups: createdViewFieldGroups },
+ data: { createManyViewFieldGroups: createdViewFieldGroups },
errors,
- } = await createManyCoreViewFieldGroups({
+ } = await createManyViewFieldGroups({
inputs,
expectToFail: false,
});
diff --git a/packages/twenty-server/test/integration/graphql/suites/view/view-field-group/successful-create-view-field-group.integration-spec.ts b/packages/twenty-server/test/integration/graphql/suites/view/view-field-group/successful-create-view-field-group.integration-spec.ts
index aefcb1708d6..78830ea16e7 100644
--- a/packages/twenty-server/test/integration/graphql/suites/view/view-field-group/successful-create-view-field-group.integration-spec.ts
+++ b/packages/twenty-server/test/integration/graphql/suites/view/view-field-group/successful-create-view-field-group.integration-spec.ts
@@ -3,9 +3,9 @@ import {
cleanupViewFieldGroupTest,
setupViewFieldGroupTest,
} from 'test/integration/graphql/suites/view/utils/setup-view-field-group-test.util';
-import { createOneCoreViewFieldGroup } from 'test/integration/metadata/suites/view-field-group/utils/create-one-core-view-field-group.util';
-import { deleteOneCoreViewFieldGroup } from 'test/integration/metadata/suites/view-field-group/utils/delete-one-core-view-field-group.util';
-import { destroyOneCoreViewFieldGroup } from 'test/integration/metadata/suites/view-field-group/utils/destroy-one-core-view-field-group.util';
+import { createOneViewFieldGroup } from 'test/integration/metadata/suites/view-field-group/utils/create-one-view-field-group.util';
+import { deleteOneViewFieldGroup } from 'test/integration/metadata/suites/view-field-group/utils/delete-one-view-field-group.util';
+import { destroyOneViewFieldGroup } from 'test/integration/metadata/suites/view-field-group/utils/destroy-one-view-field-group.util';
import { assertViewFieldGroupStructure } from 'test/integration/utils/view-test.util';
import {
type EachTestingContext,
@@ -38,16 +38,16 @@ describe('View Field Group Resolver - Successful Create Operations', () => {
afterEach(async () => {
if (isDefined(createdViewFieldGroupId)) {
const {
- data: { deleteCoreViewFieldGroup },
- } = await deleteOneCoreViewFieldGroup({
+ data: { deleteViewFieldGroup },
+ } = await deleteOneViewFieldGroup({
expectToFail: false,
input: {
id: createdViewFieldGroupId,
},
});
- expect(deleteCoreViewFieldGroup.deletedAt).not.toBeNull();
- await destroyOneCoreViewFieldGroup({
+ expect(deleteViewFieldGroup.deletedAt).not.toBeNull();
+ await destroyOneViewFieldGroup({
expectToFail: false,
input: {
id: createdViewFieldGroupId,
@@ -109,16 +109,16 @@ describe('View Field Group Resolver - Successful Create Operations', () => {
test.each(eachTestingContextFilter(successfulTestCases))(
'Create $title',
async ({ context: { viewFieldGroupInput, expected } }) => {
- const response = await createOneCoreViewFieldGroup({
+ const response = await createOneViewFieldGroup({
input: viewFieldGroupInput(testSetup),
expectToFail: false,
});
expect(response.errors).toBeUndefined();
- expect(response.data.createCoreViewFieldGroup).toBeDefined();
- createdViewFieldGroupId = response.data.createCoreViewFieldGroup.id;
+ expect(response.data.createViewFieldGroup).toBeDefined();
+ createdViewFieldGroupId = response.data.createViewFieldGroup.id;
- assertViewFieldGroupStructure(response.data.createCoreViewFieldGroup, {
+ assertViewFieldGroupStructure(response.data.createViewFieldGroup, {
viewId: testSetup.testViewId,
...expected,
});
diff --git a/packages/twenty-server/test/integration/graphql/suites/view/view-field/failing-create-many-view-fields.integration-spec.ts b/packages/twenty-server/test/integration/graphql/suites/view/view-field/failing-create-many-view-fields.integration-spec.ts
index 59884083b35..0101a8b21ed 100644
--- a/packages/twenty-server/test/integration/graphql/suites/view/view-field/failing-create-many-view-fields.integration-spec.ts
+++ b/packages/twenty-server/test/integration/graphql/suites/view/view-field/failing-create-many-view-fields.integration-spec.ts
@@ -3,8 +3,8 @@ import { createOneFieldMetadata } from 'test/integration/metadata/suites/field-m
import { createOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/create-one-object-metadata.util';
import { deleteOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/delete-one-object-metadata.util';
import { updateOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/update-one-object-metadata.util';
-import { createManyCoreViewFields } from 'test/integration/metadata/suites/view-field/utils/create-many-core-view-fields.util';
-import { createOneCoreView } from 'test/integration/metadata/suites/view/utils/create-one-core-view.util';
+import { createManyViewFields } from 'test/integration/metadata/suites/view-field/utils/create-many-view-fields.util';
+import { createOneView } from 'test/integration/metadata/suites/view/utils/create-one-view.util';
import { FieldMetadataType } from 'twenty-shared/types';
import { v4 as uuidv4 } from 'uuid';
@@ -78,9 +78,9 @@ describe('View Field Resolver - Failing Create Many Operations', () => {
const {
data: {
- createCoreView: { id: testViewId },
+ createView: { id: testViewId },
},
- } = await createOneCoreView({
+ } = await createOneView({
input: {
icon: 'icon123',
objectMetadataId,
@@ -140,7 +140,7 @@ describe('View Field Resolver - Failing Create Many Operations', () => {
},
];
- const { errors } = await createManyCoreViewFields({
+ const { errors } = await createManyViewFields({
inputs,
expectToFail: true,
});
diff --git a/packages/twenty-server/test/integration/graphql/suites/view/view-field/failing-create-view-field.integration-spec.ts b/packages/twenty-server/test/integration/graphql/suites/view/view-field/failing-create-view-field.integration-spec.ts
index 52188cd7ea0..cfc8fea0d10 100644
--- a/packages/twenty-server/test/integration/graphql/suites/view/view-field/failing-create-view-field.integration-spec.ts
+++ b/packages/twenty-server/test/integration/graphql/suites/view/view-field/failing-create-view-field.integration-spec.ts
@@ -4,10 +4,10 @@ import {
setupViewFieldTest,
type ViewFieldTestSetup,
} from 'test/integration/graphql/suites/view/utils/setup-view-field-test.util';
-import { createOneCoreViewField } from 'test/integration/metadata/suites/view-field/utils/create-one-core-view-field.util';
-import { deleteOneCoreViewField } from 'test/integration/metadata/suites/view-field/utils/delete-one-core-view-field.util';
-import { destroyOneCoreViewField } from 'test/integration/metadata/suites/view-field/utils/destroy-one-core-view-field.util';
-import { findCoreViewFields } from 'test/integration/metadata/suites/view-field/utils/find-core-view-fields.util';
+import { createOneViewField } from 'test/integration/metadata/suites/view-field/utils/create-one-view-field.util';
+import { deleteOneViewField } from 'test/integration/metadata/suites/view-field/utils/delete-one-view-field.util';
+import { destroyOneViewField } from 'test/integration/metadata/suites/view-field/utils/destroy-one-view-field.util';
+import { findViewFields } from 'test/integration/metadata/suites/view-field/utils/find-view-fields.util';
import { extractRecordIdsAndDatesAsExpectAny } from 'test/utils/extract-record-ids-and-dates-as-expect-any';
import {
eachTestingContextFilter,
@@ -36,14 +36,14 @@ describe('View Field Resolver - Failing Create Operation', () => {
afterEach(async () => {
for (const viewFieldId of createdFlatViewFieldIds) {
- await deleteOneCoreViewField({
+ await deleteOneViewField({
input: {
id: viewFieldId,
},
expectToFail: false,
});
- await destroyOneCoreViewField({
+ await destroyOneViewField({
input: {
id: viewFieldId,
},
@@ -86,7 +86,7 @@ describe('View Field Resolver - Failing Create Operation', () => {
'should fail to create view field when $title',
async ({ context }) => {
const { input } = context(testSetup);
- const response = await createOneCoreViewField({
+ const response = await createOneViewField({
input,
expectToFail: true,
});
@@ -109,9 +109,9 @@ describe('View Field Resolver - Failing Create Operation', () => {
const viewFieldId = '20202020-7ace-42ee-aecf-2b1c1bd34bce';
const {
data: {
- createCoreViewField: { id: createdFlatViewFieldId },
+ createViewField: { id: createdFlatViewFieldId },
},
- } = await createOneCoreViewField({
+ } = await createOneViewField({
input: {
id: viewFieldId,
fieldMetadataId: testSetup.testFieldMetadataId,
@@ -123,8 +123,8 @@ describe('View Field Resolver - Failing Create Operation', () => {
createdFlatViewFieldIds.push(createdFlatViewFieldId);
const {
- data: { getCoreViewFields },
- } = await findCoreViewFields({
+ data: { getViewFields },
+ } = await findViewFields({
viewId: testSetup.testViewId,
expectToFail: false,
gqlFields: `
@@ -134,7 +134,7 @@ describe('View Field Resolver - Failing Create Operation', () => {
`,
});
- expect(getCoreViewFields).toStrictEqual([
+ expect(getViewFields).toStrictEqual([
{
id: viewFieldId,
fieldMetadataId: testSetup.testFieldMetadataId,
@@ -142,7 +142,7 @@ describe('View Field Resolver - Failing Create Operation', () => {
},
]);
- const response = await createOneCoreViewField({
+ const response = await createOneViewField({
input: {
fieldMetadataId: testSetup.testFieldMetadataId,
viewId: testSetup.testViewId,
diff --git a/packages/twenty-server/test/integration/graphql/suites/view/view-field/failing-delete-view-field.integration-spec.ts b/packages/twenty-server/test/integration/graphql/suites/view/view-field/failing-delete-view-field.integration-spec.ts
index acfc8174f5e..e16b38f2135 100644
--- a/packages/twenty-server/test/integration/graphql/suites/view/view-field/failing-delete-view-field.integration-spec.ts
+++ b/packages/twenty-server/test/integration/graphql/suites/view/view-field/failing-delete-view-field.integration-spec.ts
@@ -3,7 +3,7 @@ import {
setupViewFieldTest,
type ViewFieldTestSetup,
} from 'test/integration/graphql/suites/view/utils/setup-view-field-test.util';
-import { deleteOneCoreViewField } from 'test/integration/metadata/suites/view-field/utils/delete-one-core-view-field.util';
+import { deleteOneViewField } from 'test/integration/metadata/suites/view-field/utils/delete-one-view-field.util';
import { extractRecordIdsAndDatesAsExpectAny } from 'test/utils/extract-record-ids-and-dates-as-expect-any';
import {
eachTestingContextFilter,
@@ -44,7 +44,7 @@ describe('View Field Resolver - Failing Delete Operation', () => {
it.each(eachTestingContextFilter(deleteViewFieldTestCases))(
'should fail to delete view field when $title',
async ({ context }) => {
- const response = await deleteOneCoreViewField({
+ const response = await deleteOneViewField({
input: context.input,
expectToFail: true,
});
diff --git a/packages/twenty-server/test/integration/graphql/suites/view/view-field/failing-destroy-view-field.integration-spec.ts b/packages/twenty-server/test/integration/graphql/suites/view/view-field/failing-destroy-view-field.integration-spec.ts
index 35b39df5276..65cb05abaae 100644
--- a/packages/twenty-server/test/integration/graphql/suites/view/view-field/failing-destroy-view-field.integration-spec.ts
+++ b/packages/twenty-server/test/integration/graphql/suites/view/view-field/failing-destroy-view-field.integration-spec.ts
@@ -3,7 +3,7 @@ import {
setupViewFieldTest,
type ViewFieldTestSetup,
} from 'test/integration/graphql/suites/view/utils/setup-view-field-test.util';
-import { destroyOneCoreViewField } from 'test/integration/metadata/suites/view-field/utils/destroy-one-core-view-field.util';
+import { destroyOneViewField } from 'test/integration/metadata/suites/view-field/utils/destroy-one-view-field.util';
import { extractRecordIdsAndDatesAsExpectAny } from 'test/utils/extract-record-ids-and-dates-as-expect-any';
import {
eachTestingContextFilter,
@@ -44,7 +44,7 @@ describe('View Field Resolver - Failing Destroy Operation', () => {
it.each(eachTestingContextFilter(destroyViewFieldTestCases))(
'should fail to destroy view field when $title',
async ({ context }) => {
- const response = await destroyOneCoreViewField({
+ const response = await destroyOneViewField({
input: context.input,
expectToFail: true,
});
diff --git a/packages/twenty-server/test/integration/graphql/suites/view/view-field/failing-update-view-field.integration-spec.ts b/packages/twenty-server/test/integration/graphql/suites/view/view-field/failing-update-view-field.integration-spec.ts
index 4336ec1186b..b64ab5f84c2 100644
--- a/packages/twenty-server/test/integration/graphql/suites/view/view-field/failing-update-view-field.integration-spec.ts
+++ b/packages/twenty-server/test/integration/graphql/suites/view/view-field/failing-update-view-field.integration-spec.ts
@@ -3,7 +3,7 @@ import {
setupViewFieldTest,
type ViewFieldTestSetup,
} from 'test/integration/graphql/suites/view/utils/setup-view-field-test.util';
-import { updateOneCoreViewField } from 'test/integration/metadata/suites/view-field/utils/update-one-core-view-field.util';
+import { updateOneViewField } from 'test/integration/metadata/suites/view-field/utils/update-one-view-field.util';
import { extractRecordIdsAndDatesAsExpectAny } from 'test/utils/extract-record-ids-and-dates-as-expect-any';
import {
eachTestingContextFilter,
@@ -47,7 +47,7 @@ describe('View Field Resolver - Failing Update Operation', () => {
it.each(eachTestingContextFilter(updateViewFieldTestCases))(
'should fail to update view field when $title',
async ({ context }) => {
- const response = await updateOneCoreViewField({
+ const response = await updateOneViewField({
input: context.input,
expectToFail: true,
});
diff --git a/packages/twenty-server/test/integration/graphql/suites/view/view-field/object-identifier-update-side-effect-on-view-field.integration-spec.ts b/packages/twenty-server/test/integration/graphql/suites/view/view-field/object-identifier-update-side-effect-on-view-field.integration-spec.ts
index 78a962d92b2..8e5ca4f312b 100644
--- a/packages/twenty-server/test/integration/graphql/suites/view/view-field/object-identifier-update-side-effect-on-view-field.integration-spec.ts
+++ b/packages/twenty-server/test/integration/graphql/suites/view/view-field/object-identifier-update-side-effect-on-view-field.integration-spec.ts
@@ -6,11 +6,11 @@ import {
import { expectOneNotInternalServerErrorSnapshot } from 'test/integration/graphql/utils/expect-one-not-internal-server-error-snapshot.util';
import { createOneFieldMetadata } from 'test/integration/metadata/suites/field-metadata/utils/create-one-field-metadata.util';
import { updateOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/update-one-object-metadata.util';
-import { createOneCoreViewField } from 'test/integration/metadata/suites/view-field/utils/create-one-core-view-field.util';
-import { deleteOneCoreViewField } from 'test/integration/metadata/suites/view-field/utils/delete-one-core-view-field.util';
-import { destroyOneCoreViewField } from 'test/integration/metadata/suites/view-field/utils/destroy-one-core-view-field.util';
-import { findCoreViewFields } from 'test/integration/metadata/suites/view-field/utils/find-core-view-fields.util';
-import { updateOneCoreViewField } from 'test/integration/metadata/suites/view-field/utils/update-one-core-view-field.util';
+import { createOneViewField } from 'test/integration/metadata/suites/view-field/utils/create-one-view-field.util';
+import { deleteOneViewField } from 'test/integration/metadata/suites/view-field/utils/delete-one-view-field.util';
+import { destroyOneViewField } from 'test/integration/metadata/suites/view-field/utils/destroy-one-view-field.util';
+import { findViewFields } from 'test/integration/metadata/suites/view-field/utils/find-view-fields.util';
+import { updateOneViewField } from 'test/integration/metadata/suites/view-field/utils/update-one-view-field.util';
import { FieldMetadataType } from 'twenty-shared/types';
import { type FlatViewField } from 'src/engine/metadata-modules/flat-view-field/types/flat-view-field.type';
@@ -35,8 +35,8 @@ describe('View Field Resolver - Successful object metadata identifier update sid
});
const {
- data: { getCoreViewFields },
- } = await findCoreViewFields({
+ data: { getViewFields },
+ } = await findViewFields({
viewId: testViewId,
expectToFail: false,
gqlFields: `
@@ -45,7 +45,7 @@ describe('View Field Resolver - Successful object metadata identifier update sid
viewId
`,
});
- const testLabelIdentifierViewFieldId = getCoreViewFields[0].id;
+ const testLabelIdentifierViewFieldId = getViewFields[0].id;
testSetup = {
testFieldMetadataId,
@@ -62,8 +62,8 @@ describe('View Field Resolver - Successful object metadata identifier update sid
it('should create a view field on label identifier object metadata update if it does not exist on view', async () => {
const { testFieldMetadataId, testViewId } = testSetup;
const {
- data: { getCoreViewFields },
- } = await findCoreViewFields({
+ data: { getViewFields },
+ } = await findViewFields({
viewId: testViewId,
expectToFail: false,
gqlFields: `
@@ -73,7 +73,7 @@ describe('View Field Resolver - Successful object metadata identifier update sid
`,
});
- expect(getCoreViewFields).toMatchObject<
+ expect(getViewFields).toMatchObject<
Pick<FlatViewField, 'id' | 'fieldMetadataId' | 'viewId'>[]
>([
{
@@ -85,7 +85,7 @@ describe('View Field Resolver - Successful object metadata identifier update sid
});
it('Should not allow deleting a label identifier view field', async () => {
- const { errors } = await deleteOneCoreViewField({
+ const { errors } = await deleteOneViewField({
input: { id: testSetup.testLabelIdentifierViewFieldId },
expectToFail: true,
});
@@ -96,7 +96,7 @@ describe('View Field Resolver - Successful object metadata identifier update sid
});
it('Should not allow destroying a label identifier view field', async () => {
- const { errors } = await destroyOneCoreViewField({
+ const { errors } = await destroyOneViewField({
input: { id: testSetup.testLabelIdentifierViewFieldId },
expectToFail: true,
});
@@ -107,7 +107,7 @@ describe('View Field Resolver - Successful object metadata identifier update sid
});
it('Should not allow updating a label identifier view field visibility to false', async () => {
- const { errors } = await updateOneCoreViewField({
+ const { errors } = await updateOneViewField({
input: {
id: testSetup.testLabelIdentifierViewFieldId,
update: { isVisible: false },
@@ -142,7 +142,7 @@ describe('View Field Resolver - Successful object metadata identifier update sid
`,
});
- const { errors } = await createOneCoreViewField({
+ const { errors } = await createOneViewField({
input: {
fieldMetadataId: fieldMetadataId,
viewId: testSetup.testViewId,
@@ -178,7 +178,7 @@ describe('View Field Resolver - Successful object metadata identifier update sid
`,
});
- await createOneCoreViewField({
+ await createOneViewField({
input: {
fieldMetadataId: fieldMetadataId,
viewId: testSetup.testViewId,
@@ -187,7 +187,7 @@ describe('View Field Resolver - Successful object metadata identifier update sid
expectToFail: false,
});
- const { errors } = await updateOneCoreViewField({
+ const { errors } = await updateOneViewField({
input: {
id: testSetup.testLabelIdentifierViewFieldId,
update: {
@@ -224,7 +224,7 @@ describe('View Field Resolver - Successful object metadata identifier update sid
`,
});
- await createOneCoreViewField({
+ await createOneViewField({
input: {
fieldMetadataId: fieldMetadataId,
viewId: testSetup.testViewId,
@@ -233,7 +233,7 @@ describe('View Field Resolver - Successful object metadata identifier update sid
expectToFail: false,
});
- await updateOneCoreViewField({
+ await updateOneViewField({
input: {
id: testSetup.testLabelIdentifierViewFieldId,
update: {
diff --git a/packages/twenty-server/test/integration/graphql/suites/view/view-field/successful-create-many-view-fields.integration-spec.ts b/packages/twenty-server/test/integration/graphql/suites/view/view-field/successful-create-many-view-fields.integration-spec.ts
index 7e5804d2baf..68b82bc261d 100644
--- a/packages/twenty-server/test/integration/graphql/suites/view/view-field/successful-create-many-view-fields.integration-spec.ts
+++ b/packages/twenty-server/test/integration/graphql/suites/view/view-field/successful-create-many-view-fields.integration-spec.ts
@@ -2,10 +2,10 @@ import { createOneFieldMetadata } from 'test/integration/metadata/suites/field-m
import { createOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/create-one-object-metadata.util';
import { deleteOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/delete-one-object-metadata.util';
import { updateOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/update-one-object-metadata.util';
-import { createManyCoreViewFields } from 'test/integration/metadata/suites/view-field/utils/create-many-core-view-fields.util';
-import { deleteOneCoreViewField } from 'test/integration/metadata/suites/view-field/utils/delete-one-core-view-field.util';
-import { destroyOneCoreViewField } from 'test/integration/metadata/suites/view-field/utils/destroy-one-core-view-field.util';
-import { createOneCoreView } from 'test/integration/metadata/suites/view/utils/create-one-core-view.util';
+import { createManyViewFields } from 'test/integration/metadata/suites/view-field/utils/create-many-view-fields.util';
+import { deleteOneViewField } from 'test/integration/metadata/suites/view-field/utils/delete-one-view-field.util';
+import { destroyOneViewField } from 'test/integration/metadata/suites/view-field/utils/destroy-one-view-field.util';
+import { createOneView } from 'test/integration/metadata/suites/view/utils/create-one-view.util';
import { FieldMetadataType } from 'twenty-shared/types';
import { isDefined } from 'twenty-shared/utils';
@@ -102,9 +102,9 @@ describe('View Field Resolver - Successful Create Many Operations', () => {
const {
data: {
- createCoreView: { id: testViewId },
+ createView: { id: testViewId },
},
- } = await createOneCoreView({
+ } = await createOneView({
input: {
icon: 'icon123',
objectMetadataId,
@@ -141,16 +141,16 @@ describe('View Field Resolver - Successful Create Many Operations', () => {
for (const viewFieldId of createdViewFieldIds) {
if (isDefined(viewFieldId)) {
const {
- data: { deleteCoreViewField },
- } = await deleteOneCoreViewField({
+ data: { deleteViewField },
+ } = await deleteOneViewField({
expectToFail: false,
input: {
id: viewFieldId,
},
});
- expect(deleteCoreViewField.deletedAt).not.toBeNull();
- await destroyOneCoreViewField({
+ expect(deleteViewField.deletedAt).not.toBeNull();
+ await destroyOneViewField({
expectToFail: false,
input: {
id: viewFieldId,
@@ -187,9 +187,9 @@ describe('View Field Resolver - Successful Create Many Operations', () => {
];
const {
- data: { createManyCoreViewFields: createdViewFields },
+ data: { createManyViewFields: createdViewFields },
errors,
- } = await createManyCoreViewFields({
+ } = await createManyViewFields({
inputs,
expectToFail: false,
});
@@ -224,9 +224,9 @@ describe('View Field Resolver - Successful Create Many Operations', () => {
];
const {
- data: { createManyCoreViewFields: createdViewFields },
+ data: { createManyViewFields: createdViewFields },
errors,
- } = await createManyCoreViewFields({
+ } = await createManyViewFields({
inputs,
expectToFail: false,
});
@@ -252,9 +252,9 @@ describe('View Field Resolver - Successful Create Many Operations', () => {
const inputs: CreateViewFieldInput[] = [];
const {
- data: { createManyCoreViewFields: createdViewFields },
+ data: { createManyViewFields: createdViewFields },
errors,
- } = await createManyCoreViewFields({
+ } = await createManyViewFields({
inputs,
expectToFail: false,
});
diff --git a/packages/twenty-server/test/integration/graphql/suites/view/view-field/successful-create-view-field.integration-spec.ts b/packages/twenty-server/test/integration/graphql/suites/view/view-field/successful-create-view-field.integration-spec.ts
index 3d411452cbd..36899c913c3 100644
--- a/packages/twenty-server/test/integration/graphql/suites/view/view-field/successful-create-view-field.integration-spec.ts
+++ b/packages/twenty-server/test/integration/graphql/suites/view/view-field/successful-create-view-field.integration-spec.ts
@@ -3,9 +3,9 @@ import {
cleanupViewFieldTest,
setupViewFieldTest,
} from 'test/integration/graphql/suites/view/utils/setup-view-field-test.util';
-import { createOneCoreViewField } from 'test/integration/metadata/suites/view-field/utils/create-one-core-view-field.util';
-import { deleteOneCoreViewField } from 'test/integration/metadata/suites/view-field/utils/delete-one-core-view-field.util';
-import { destroyOneCoreViewField } from 'test/integration/metadata/suites/view-field/utils/destroy-one-core-view-field.util';
+import { createOneViewField } from 'test/integration/metadata/suites/view-field/utils/create-one-view-field.util';
+import { deleteOneViewField } from 'test/integration/metadata/suites/view-field/utils/delete-one-view-field.util';
+import { destroyOneViewField } from 'test/integration/metadata/suites/view-field/utils/destroy-one-view-field.util';
import { assertViewFieldStructure } from 'test/integration/utils/view-test.util';
import {
type EachTestingContext,
@@ -36,16 +36,16 @@ describe('View Field Resolver - Successful Create Operations', () => {
afterEach(async () => {
if (isDefined(createdViewFieldId)) {
const {
- data: { deleteCoreViewField },
- } = await deleteOneCoreViewField({
+ data: { deleteViewField },
+ } = await deleteOneViewField({
expectToFail: false,
input: {
id: createdViewFieldId,
},
});
- expect(deleteCoreViewField.deletedAt).not.toBeNull();
- await destroyOneCoreViewField({
+ expect(deleteViewField.deletedAt).not.toBeNull();
+ await destroyOneViewField({
expectToFail: false,
input: {
id: createdViewFieldId,
@@ -126,16 +126,16 @@ describe('View Field Resolver - Successful Create Operations', () => {
test.each(eachTestingContextFilter(successfulTestCases))(
'Create $title',
async ({ context: { viewFieldInput, expected } }) => {
- const response = await createOneCoreViewField({
+ const response = await createOneViewField({
input: viewFieldInput(testSetup),
expectToFail: false,
});
expect(response.errors).toBeUndefined();
- expect(response.data.createCoreViewField).toBeDefined();
- createdViewFieldId = response.data.createCoreViewField.id;
+ expect(response.data.createViewField).toBeDefined();
+ createdViewFieldId = response.data.createViewField.id;
- assertViewFieldStructure(response.data.createCoreViewField, {
+ assertViewFieldStructure(response.data.createViewField, {
fieldMetadataId: testSetup.testFieldMetadataId,
viewId: testSetup.testViewId,
...expected,
diff --git a/packages/twenty-server/test/integration/graphql/suites/view/view-filter-group-resolver.integration-spec.ts b/packages/twenty-server/test/integration/graphql/suites/view/view-filter-group-resolver.integration-spec.ts
index b7ca82c83dd..85e12a35a44 100644
--- a/packages/twenty-server/test/integration/graphql/suites/view/view-filter-group-resolver.integration-spec.ts
+++ b/packages/twenty-server/test/integration/graphql/suites/view/view-filter-group-resolver.integration-spec.ts
@@ -17,7 +17,7 @@ import { createTestViewWithGraphQL } from 'test/integration/graphql/utils/view-g
import { createOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/create-one-object-metadata.util';
import { deleteOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/delete-one-object-metadata.util';
import { updateOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/update-one-object-metadata.util';
-import { destroyOneCoreView } from 'test/integration/metadata/suites/view/utils/destroy-one-core-view.util';
+import { destroyOneView } from 'test/integration/metadata/suites/view/utils/destroy-one-view.util';
import { assertViewFilterGroupStructure } from 'test/integration/utils/view-test.util';
import { jestExpectToBeDefined } from 'test/utils/jest-expect-to-be-defined.util.test';
import { ViewFilterGroupLogicalOperator } from 'twenty-shared/types';
@@ -94,13 +94,13 @@ describe('View Filter Group Resolver', () => {
}
createdViewFilterGroup = [];
- await destroyOneCoreView({
+ await destroyOneView({
viewId: testViewId,
expectToFail: false,
});
});
- describe('getCoreViewFilterGroups', () => {
+ describe('getViewFilterGroups', () => {
it('should return empty array when no view filter groups exist', async () => {
const operation = findViewFilterGroupsOperationFactory({
viewId: testViewId,
@@ -108,7 +108,7 @@ describe('View Filter Group Resolver', () => {
const response = await makeMetadataAPIRequest(operation);
assertGraphQLSuccessfulResponse(response);
- expect(response.body.data.getCoreViewFilterGroups).toEqual([]);
+ expect(response.body.data.getViewFilterGroups).toEqual([]);
});
it('should return all filter groups for workspace when no viewId provided', async () => {
@@ -121,7 +121,7 @@ describe('View Filter Group Resolver', () => {
const createResponse = await makeMetadataAPIRequest(createOperation);
const createdFilterGroupId =
- createResponse.body.data.createCoreViewFilterGroup.id;
+ createResponse.body.data.createViewFilterGroup.id;
createdViewFilterGroup.push(createdFilterGroupId);
@@ -130,7 +130,7 @@ describe('View Filter Group Resolver', () => {
assertGraphQLSuccessfulResponse(response);
- const foundFilterGroup = response.body.data.getCoreViewFilterGroups.find(
+ const foundFilterGroup = response.body.data.getViewFilterGroups.find(
(el: ViewFilterGroupDTO) => el.id === createdFilterGroupId,
);
@@ -151,7 +151,7 @@ describe('View Filter Group Resolver', () => {
const createResponse = await makeMetadataAPIRequest(createOperation);
const createdFilterGroupId =
- createResponse.body.data.createCoreViewFilterGroup.id;
+ createResponse.body.data.createViewFilterGroup.id;
createdViewFilterGroup.push(createdFilterGroupId);
@@ -162,7 +162,7 @@ describe('View Filter Group Resolver', () => {
assertGraphQLSuccessfulResponse(response);
- const foundFilterGroup = response.body.data.getCoreViewFilterGroups.find(
+ const foundFilterGroup = response.body.data.getViewFilterGroups.find(
(group: ViewFilterGroupDTO) => group.id === createdFilterGroupId,
);
@@ -181,7 +181,7 @@ describe('View Filter Group Resolver', () => {
data: parentData,
});
const parentResponse = await makeMetadataAPIRequest(parentOperation);
- const parentId = parentResponse.body.data.createCoreViewFilterGroup.id;
+ const parentId = parentResponse.body.data.createViewFilterGroup.id;
createdViewFilterGroup.push(parentId);
@@ -194,7 +194,7 @@ describe('View Filter Group Resolver', () => {
});
const childResponse = await makeMetadataAPIRequest(childOperation);
- const childId = childResponse.body.data.createCoreViewFilterGroup.id;
+ const childId = childResponse.body.data.createViewFilterGroup.id;
createdViewFilterGroup.push(childId);
@@ -205,10 +205,10 @@ describe('View Filter Group Resolver', () => {
assertGraphQLSuccessfulResponse(response);
- const parentGroup = response.body.data.getCoreViewFilterGroups.find(
+ const parentGroup = response.body.data.getViewFilterGroups.find(
(group: ViewFilterGroupDTO) => group.id === parentId,
);
- const childGroup = response.body.data.getCoreViewFilterGroups.find(
+ const childGroup = response.body.data.getViewFilterGroups.find(
(group: ViewFilterGroupDTO) => group.id === childId,
);
@@ -227,7 +227,7 @@ describe('View Filter Group Resolver', () => {
});
});
- describe('getCoreViewFilterGroup', () => {
+ describe('getViewFilterGroup', () => {
it('should return null when filter group does not exist', async () => {
const operation = findViewFilterGroupOperationFactory({
viewFilterGroupId: TEST_NOT_EXISTING_VIEW_FILTER_GROUP_ID,
@@ -235,7 +235,7 @@ describe('View Filter Group Resolver', () => {
const response = await makeMetadataAPIRequest(operation);
assertGraphQLSuccessfulResponse(response);
- expect(response.body.data.getCoreViewFilterGroup).toBeNull();
+ expect(response.body.data.getViewFilterGroup).toBeNull();
});
it('should return filter group when it exists', async () => {
@@ -247,7 +247,7 @@ describe('View Filter Group Resolver', () => {
});
const createResponse = await makeMetadataAPIRequest(createOperation);
const filterGroupId =
- createResponse.body.data.createCoreViewFilterGroup.id;
+ createResponse.body.data.createViewFilterGroup.id;
createdViewFilterGroup.push(filterGroupId);
@@ -258,7 +258,7 @@ describe('View Filter Group Resolver', () => {
assertGraphQLSuccessfulResponse(response);
assertViewFilterGroupStructure(
- response.body.data.getCoreViewFilterGroup,
+ response.body.data.getViewFilterGroup,
{
id: filterGroupId,
logicalOperator: ViewFilterGroupLogicalOperator.NOT,
@@ -268,7 +268,7 @@ describe('View Filter Group Resolver', () => {
});
});
- describe('createCoreViewFilterGroup', () => {
+ describe('createViewFilterGroup', () => {
it('should create a new filter group with AND operator', async () => {
const filterGroupData = createViewFilterGroupData(testViewId, {
logicalOperator: ViewFilterGroupLogicalOperator.AND,
@@ -281,10 +281,10 @@ describe('View Filter Group Resolver', () => {
assertGraphQLSuccessfulResponse(response);
createdViewFilterGroup.push(
- response.body.data.createCoreViewFilterGroup.id,
+ response.body.data.createViewFilterGroup.id,
);
assertViewFilterGroupStructure(
- response.body.data.createCoreViewFilterGroup,
+ response.body.data.createViewFilterGroup,
{
logicalOperator: ViewFilterGroupLogicalOperator.AND,
viewId: testViewId,
@@ -304,10 +304,10 @@ describe('View Filter Group Resolver', () => {
assertGraphQLSuccessfulResponse(response);
createdViewFilterGroup.push(
- response.body.data.createCoreViewFilterGroup.id,
+ response.body.data.createViewFilterGroup.id,
);
assertViewFilterGroupStructure(
- response.body.data.createCoreViewFilterGroup,
+ response.body.data.createViewFilterGroup,
{
logicalOperator: ViewFilterGroupLogicalOperator.OR,
},
@@ -326,10 +326,10 @@ describe('View Filter Group Resolver', () => {
assertGraphQLSuccessfulResponse(response);
createdViewFilterGroup.push(
- response.body.data.createCoreViewFilterGroup.id,
+ response.body.data.createViewFilterGroup.id,
);
assertViewFilterGroupStructure(
- response.body.data.createCoreViewFilterGroup,
+ response.body.data.createViewFilterGroup,
{
logicalOperator: ViewFilterGroupLogicalOperator.NOT,
},
@@ -344,7 +344,7 @@ describe('View Filter Group Resolver', () => {
data: parentData,
});
const parentResponse = await makeMetadataAPIRequest(parentOperation);
- const parentId = parentResponse.body.data.createCoreViewFilterGroup.id;
+ const parentId = parentResponse.body.data.createViewFilterGroup.id;
createdViewFilterGroup.push(parentId);
@@ -360,10 +360,10 @@ describe('View Filter Group Resolver', () => {
assertGraphQLSuccessfulResponse(childResponse);
createdViewFilterGroup.push(
- childResponse.body.data.createCoreViewFilterGroup.id,
+ childResponse.body.data.createViewFilterGroup.id,
);
assertViewFilterGroupStructure(
- childResponse.body.data.createCoreViewFilterGroup,
+ childResponse.body.data.createViewFilterGroup,
{
parentViewFilterGroupId: parentId,
logicalOperator: ViewFilterGroupLogicalOperator.OR,
@@ -372,7 +372,7 @@ describe('View Filter Group Resolver', () => {
});
});
- describe('updateCoreViewFilterGroup', () => {
+ describe('updateViewFilterGroup', () => {
it('should update an existing filter group', async () => {
const filterGroupData = createViewFilterGroupData(testViewId, {
logicalOperator: ViewFilterGroupLogicalOperator.AND,
@@ -382,7 +382,7 @@ describe('View Filter Group Resolver', () => {
});
const createResponse = await makeMetadataAPIRequest(createOperation);
const filterGroupId =
- createResponse.body.data.createCoreViewFilterGroup.id;
+ createResponse.body.data.createViewFilterGroup.id;
createdViewFilterGroup.push(filterGroupId);
@@ -396,7 +396,7 @@ describe('View Filter Group Resolver', () => {
const response = await makeMetadataAPIRequest(updateOperation);
assertGraphQLSuccessfulResponse(response);
- expect(response.body.data.updateCoreViewFilterGroup).toMatchObject({
+ expect(response.body.data.updateViewFilterGroup).toMatchObject({
id: filterGroupId,
logicalOperator: ViewFilterGroupLogicalOperator.OR,
});
@@ -410,7 +410,7 @@ describe('View Filter Group Resolver', () => {
data: parentData,
});
const parentResponse = await makeMetadataAPIRequest(parentOperation);
- const parentId = parentResponse.body.data.createCoreViewFilterGroup.id;
+ const parentId = parentResponse.body.data.createViewFilterGroup.id;
createdViewFilterGroup.push(parentId);
@@ -421,7 +421,7 @@ describe('View Filter Group Resolver', () => {
data: childData,
});
const childResponse = await makeMetadataAPIRequest(childOperation);
- const childId = childResponse.body.data.createCoreViewFilterGroup.id;
+ const childId = childResponse.body.data.createViewFilterGroup.id;
createdViewFilterGroup.push(childId);
@@ -435,7 +435,7 @@ describe('View Filter Group Resolver', () => {
const response = await makeMetadataAPIRequest(updateOperation);
assertGraphQLSuccessfulResponse(response);
- expect(response.body.data.updateCoreViewFilterGroup).toMatchObject({
+ expect(response.body.data.updateViewFilterGroup).toMatchObject({
id: childId,
parentViewFilterGroupId: parentId,
});
@@ -461,7 +461,7 @@ describe('View Filter Group Resolver', () => {
});
});
- describe('deleteCoreViewFilterGroup', () => {
+ describe('deleteViewFilterGroup', () => {
it('should delete an existing filter group', async () => {
const filterGroupData = createViewFilterGroupData(testViewId, {
logicalOperator: ViewFilterGroupLogicalOperator.AND,
@@ -471,7 +471,7 @@ describe('View Filter Group Resolver', () => {
});
const createResponse = await makeMetadataAPIRequest(createOperation);
const filterGroupId =
- createResponse.body.data.createCoreViewFilterGroup.id;
+ createResponse.body.data.createViewFilterGroup.id;
createdViewFilterGroup.push(filterGroupId);
@@ -481,14 +481,14 @@ describe('View Filter Group Resolver', () => {
const response = await makeMetadataAPIRequest(deleteOperation);
assertGraphQLSuccessfulResponse(response);
- expect(response.body.data.deleteCoreViewFilterGroup).toBe(true);
+ expect(response.body.data.deleteViewFilterGroup).toBe(true);
const getOperation = findViewFilterGroupOperationFactory({
viewFilterGroupId: filterGroupId,
});
const getResponse = await makeMetadataAPIRequest(getOperation);
- expect(getResponse.body.data.getCoreViewFilterGroup).toBeNull();
+ expect(getResponse.body.data.getViewFilterGroup).toBeNull();
});
it('should throw an error when deleting non-existent filter group', async () => {
@@ -507,7 +507,7 @@ describe('View Filter Group Resolver', () => {
});
});
- describe('destroyCoreViewFilterGroup', () => {
+ describe('destroyViewFilterGroup', () => {
it('should destroy an existing filter group', async () => {
const filterGroupData = createViewFilterGroupData(testViewId, {
logicalOperator: ViewFilterGroupLogicalOperator.AND,
@@ -517,7 +517,7 @@ describe('View Filter Group Resolver', () => {
});
const createResponse = await makeMetadataAPIRequest(createOperation);
const filterGroupId =
- createResponse.body.data.createCoreViewFilterGroup.id;
+ createResponse.body.data.createViewFilterGroup.id;
createdViewFilterGroup.push(filterGroupId);
@@ -527,7 +527,7 @@ describe('View Filter Group Resolver', () => {
const response = await makeMetadataAPIRequest(destroyOperation);
assertGraphQLSuccessfulResponse(response);
- expect(response.body.data.destroyCoreViewFilterGroup).toBe(true);
+ expect(response.body.data.destroyViewFilterGroup).toBe(true);
});
it('should throw an error when destroying non-existent filter group', async () => {
diff --git a/packages/twenty-server/test/integration/graphql/suites/view/view-filter-resolver.integration-spec.ts b/packages/twenty-server/test/integration/graphql/suites/view/view-filter-resolver.integration-spec.ts
index df155705151..998b09df0a5 100644
--- a/packages/twenty-server/test/integration/graphql/suites/view/view-filter-resolver.integration-spec.ts
+++ b/packages/twenty-server/test/integration/graphql/suites/view/view-filter-resolver.integration-spec.ts
@@ -4,12 +4,12 @@ import { createOneFieldMetadata } from 'test/integration/metadata/suites/field-m
import { createOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/create-one-object-metadata.util';
import { deleteOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/delete-one-object-metadata.util';
import { updateOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/update-one-object-metadata.util';
-import { createOneCoreViewFilter } from 'test/integration/metadata/suites/view-filter/utils/create-one-core-view-filter.util';
-import { deleteOneCoreViewFilter } from 'test/integration/metadata/suites/view-filter/utils/delete-one-core-view-filter.util';
-import { destroyOneCoreViewFilter } from 'test/integration/metadata/suites/view-filter/utils/destroy-one-core-view-filter.util';
-import { findCoreViewFilters } from 'test/integration/metadata/suites/view-filter/utils/find-core-view-filters.util';
-import { updateOneCoreViewFilter } from 'test/integration/metadata/suites/view-filter/utils/update-one-core-view-filter.util';
-import { destroyOneCoreView } from 'test/integration/metadata/suites/view/utils/destroy-one-core-view.util';
+import { createOneViewFilter } from 'test/integration/metadata/suites/view-filter/utils/create-one-view-filter.util';
+import { deleteOneViewFilter } from 'test/integration/metadata/suites/view-filter/utils/delete-one-view-filter.util';
+import { destroyOneViewFilter } from 'test/integration/metadata/suites/view-filter/utils/destroy-one-view-filter.util';
+import { findViewFilters } from 'test/integration/metadata/suites/view-filter/utils/find-view-filters.util';
+import { updateOneViewFilter } from 'test/integration/metadata/suites/view-filter/utils/update-one-view-filter.util';
+import { destroyOneView } from 'test/integration/metadata/suites/view/utils/destroy-one-view.util';
import { FieldMetadataType, ViewFilterOperand } from 'twenty-shared/types';
const TEST_NOT_EXISTING_VIEW_FILTER_ID = '20202020-52c5-4152-8c09-76a845fb8ece';
@@ -81,25 +81,25 @@ describe('View Filter Resolver', () => {
});
afterEach(async () => {
- await destroyOneCoreView({
+ await destroyOneView({
viewId: testViewId,
expectToFail: false,
});
});
- describe('getCoreViewFilters', () => {
+ describe('getViewFilters', () => {
it('should return empty array when no view filters exist', async () => {
- const { data, errors } = await findCoreViewFilters({
+ const { data, errors } = await findViewFilters({
viewId: testViewId,
expectToFail: false,
});
expect(errors).toBeUndefined();
- expect(data.getCoreViewFilters).toEqual([]);
+ expect(data.getViewFilters).toEqual([]);
});
it('should return view filters for a specific view', async () => {
- await createOneCoreViewFilter({
+ await createOneViewFilter({
input: {
fieldMetadataId: testFieldMetadataId,
viewId: testViewId,
@@ -109,14 +109,14 @@ describe('View Filter Resolver', () => {
expectToFail: false,
});
- const { data, errors } = await findCoreViewFilters({
+ const { data, errors } = await findViewFilters({
viewId: testViewId,
expectToFail: false,
});
expect(errors).toBeUndefined();
- expect(data.getCoreViewFilters).toHaveLength(1);
- expect(data.getCoreViewFilters[0]).toMatchObject({
+ expect(data.getViewFilters).toHaveLength(1);
+ expect(data.getViewFilters[0]).toMatchObject({
fieldMetadataId: testFieldMetadataId,
operand: ViewFilterOperand.CONTAINS,
value: 'test',
@@ -125,9 +125,9 @@ describe('View Filter Resolver', () => {
});
});
- describe('createCoreViewFilter', () => {
+ describe('createViewFilter', () => {
it('should create a new view filter with string value', async () => {
- const { data, errors } = await createOneCoreViewFilter({
+ const { data, errors } = await createOneViewFilter({
input: {
fieldMetadataId: testFieldMetadataId,
viewId: testViewId,
@@ -138,7 +138,7 @@ describe('View Filter Resolver', () => {
});
expect(errors).toBeUndefined();
- expect(data.createCoreViewFilter).toMatchObject({
+ expect(data.createViewFilter).toMatchObject({
fieldMetadataId: testFieldMetadataId,
operand: ViewFilterOperand.IS,
value: 'test value',
@@ -147,7 +147,7 @@ describe('View Filter Resolver', () => {
});
it('should create a view filter with numeric value', async () => {
- const { data, errors } = await createOneCoreViewFilter({
+ const { data, errors } = await createOneViewFilter({
input: {
fieldMetadataId: testFieldMetadataId,
viewId: testViewId,
@@ -158,7 +158,7 @@ describe('View Filter Resolver', () => {
});
expect(errors).toBeUndefined();
- expect(data.createCoreViewFilter).toMatchObject({
+ expect(data.createViewFilter).toMatchObject({
fieldMetadataId: testFieldMetadataId,
operand: ViewFilterOperand.GREATER_THAN_OR_EQUAL,
value: 100,
@@ -167,7 +167,7 @@ describe('View Filter Resolver', () => {
});
it('should create a view filter with boolean value', async () => {
- const { data, errors } = await createOneCoreViewFilter({
+ const { data, errors } = await createOneViewFilter({
input: {
fieldMetadataId: testFieldMetadataId,
viewId: testViewId,
@@ -178,7 +178,7 @@ describe('View Filter Resolver', () => {
});
expect(errors).toBeUndefined();
- expect(data.createCoreViewFilter).toMatchObject({
+ expect(data.createViewFilter).toMatchObject({
fieldMetadataId: testFieldMetadataId,
operand: ViewFilterOperand.IS,
value: true,
@@ -187,9 +187,9 @@ describe('View Filter Resolver', () => {
});
});
- describe('updateCoreViewFilter', () => {
+ describe('updateViewFilter', () => {
it('should update an existing view filter', async () => {
- const { data: createData } = await createOneCoreViewFilter({
+ const { data: createData } = await createOneViewFilter({
input: {
fieldMetadataId: testFieldMetadataId,
viewId: testViewId,
@@ -199,9 +199,9 @@ describe('View Filter Resolver', () => {
expectToFail: false,
});
- const viewFilterId = createData.createCoreViewFilter.id;
+ const viewFilterId = createData.createViewFilter.id;
- const { data, errors } = await updateOneCoreViewFilter({
+ const { data, errors } = await updateOneViewFilter({
input: {
id: viewFilterId,
update: {
@@ -213,7 +213,7 @@ describe('View Filter Resolver', () => {
});
expect(errors).toBeUndefined();
- expect(data.updateCoreViewFilter).toMatchObject({
+ expect(data.updateViewFilter).toMatchObject({
id: viewFilterId,
operand: ViewFilterOperand.DOES_NOT_CONTAIN,
value: 'updated',
@@ -221,7 +221,7 @@ describe('View Filter Resolver', () => {
});
it('should throw an error when updating non-existent view filter', async () => {
- const { errors } = await updateOneCoreViewFilter({
+ const { errors } = await updateOneViewFilter({
input: {
id: TEST_NOT_EXISTING_VIEW_FILTER_ID,
update: {},
@@ -233,9 +233,9 @@ describe('View Filter Resolver', () => {
});
});
- describe('deleteCoreViewFilter', () => {
+ describe('deleteViewFilter', () => {
it('should delete an existing view filter', async () => {
- const { data: createData } = await createOneCoreViewFilter({
+ const { data: createData } = await createOneViewFilter({
input: {
fieldMetadataId: testFieldMetadataId,
viewId: testViewId,
@@ -245,22 +245,22 @@ describe('View Filter Resolver', () => {
expectToFail: false,
});
- const viewFilterId = createData.createCoreViewFilter.id;
+ const viewFilterId = createData.createViewFilter.id;
- const { data, errors } = await deleteOneCoreViewFilter({
+ const { data, errors } = await deleteOneViewFilter({
input: { id: viewFilterId },
expectToFail: false,
});
expect(errors).toBeUndefined();
- expect(data.deleteCoreViewFilter).toMatchObject({
+ expect(data.deleteViewFilter).toMatchObject({
id: viewFilterId,
});
- expect(data.deleteCoreViewFilter.deletedAt).toBeDefined();
+ expect(data.deleteViewFilter.deletedAt).toBeDefined();
});
it('should throw an error when deleting non-existent view filter', async () => {
- const { errors } = await deleteOneCoreViewFilter({
+ const { errors } = await deleteOneViewFilter({
input: { id: TEST_NOT_EXISTING_VIEW_FILTER_ID },
expectToFail: true,
});
@@ -269,9 +269,9 @@ describe('View Filter Resolver', () => {
});
});
- describe('destroyCoreViewFilter', () => {
+ describe('destroyViewFilter', () => {
it('should destroy an existing view filter', async () => {
- const { data: createData } = await createOneCoreViewFilter({
+ const { data: createData } = await createOneViewFilter({
input: {
fieldMetadataId: testFieldMetadataId,
viewId: testViewId,
@@ -281,27 +281,27 @@ describe('View Filter Resolver', () => {
expectToFail: false,
});
- const viewFilterId = createData.createCoreViewFilter.id;
+ const viewFilterId = createData.createViewFilter.id;
- await deleteOneCoreViewFilter({
+ await deleteOneViewFilter({
input: {
id: viewFilterId,
},
expectToFail: false,
});
- const { data, errors } = await destroyOneCoreViewFilter({
+ const { data, errors } = await destroyOneViewFilter({
input: { id: viewFilterId },
expectToFail: false,
});
expect(errors).toBeUndefined();
- expect(data.destroyCoreViewFilter).toMatchObject({
+ expect(data.destroyViewFilter).toMatchObject({
id: viewFilterId,
});
});
it('should throw an error when destroying non-existent view filter', async () => {
- const { errors } = await destroyOneCoreViewFilter({
+ const { errors } = await destroyOneViewFilter({
input: { id: TEST_NOT_EXISTING_VIEW_FILTER_ID },
expectToFail: true,
});
diff --git a/packages/twenty-server/test/integration/graphql/suites/view/view-group-resolver.integration-spec.ts b/packages/twenty-server/test/integration/graphql/suites/view/view-group-resolver.integration-spec.ts
index 544e641b2ab..5d16e92b838 100644
--- a/packages/twenty-server/test/integration/graphql/suites/view/view-group-resolver.integration-spec.ts
+++ b/packages/twenty-server/test/integration/graphql/suites/view/view-group-resolver.integration-spec.ts
@@ -4,11 +4,11 @@ import { createOneSelectFieldMetadataForIntegrationTests } from 'test/integratio
import { createOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/create-one-object-metadata.util';
import { deleteOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/delete-one-object-metadata.util';
import { updateOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/update-one-object-metadata.util';
-import { createOneCoreViewGroup } from 'test/integration/metadata/suites/view-group/utils/create-one-core-view-group.util';
-import { deleteOneCoreViewGroup } from 'test/integration/metadata/suites/view-group/utils/delete-one-core-view-group.util';
-import { destroyOneCoreViewGroup } from 'test/integration/metadata/suites/view-group/utils/destroy-one-core-view-group.util';
-import { updateOneCoreViewGroup } from 'test/integration/metadata/suites/view-group/utils/update-one-core-view-group.util';
-import { destroyOneCoreView } from 'test/integration/metadata/suites/view/utils/destroy-one-core-view.util';
+import { createOneViewGroup } from 'test/integration/metadata/suites/view-group/utils/create-one-view-group.util';
+import { deleteOneViewGroup } from 'test/integration/metadata/suites/view-group/utils/delete-one-view-group.util';
+import { destroyOneViewGroup } from 'test/integration/metadata/suites/view-group/utils/destroy-one-view-group.util';
+import { updateOneViewGroup } from 'test/integration/metadata/suites/view-group/utils/update-one-view-group.util';
+import { destroyOneView } from 'test/integration/metadata/suites/view/utils/destroy-one-view.util';
import { assertViewGroupStructure } from 'test/integration/utils/view-test.util';
const TEST_NOT_EXISTING_VIEW_GROUP_ID = '20202020-0000-4000-8000-000000000003';
@@ -73,15 +73,15 @@ describe('View Group Resolver', () => {
});
afterEach(async () => {
- await destroyOneCoreView({
+ await destroyOneView({
viewId: testViewId,
expectToFail: false,
});
});
- describe('createCoreViewGroup', () => {
+ describe('createViewGroup', () => {
it('should create a new view group', async () => {
- const { data } = await createOneCoreViewGroup({
+ const { data } = await createOneViewGroup({
expectToFail: false,
input: {
viewId: testViewId,
@@ -91,7 +91,7 @@ describe('View Group Resolver', () => {
},
});
- assertViewGroupStructure(data.createCoreViewGroup, {
+ assertViewGroupStructure(data.createViewGroup, {
isVisible: false,
fieldValue: 'inactive',
position: 1,
@@ -100,7 +100,7 @@ describe('View Group Resolver', () => {
});
it('should create a view group with null fieldValue', async () => {
- const { data } = await createOneCoreViewGroup({
+ const { data } = await createOneViewGroup({
expectToFail: false,
input: {
viewId: testViewId,
@@ -110,7 +110,7 @@ describe('View Group Resolver', () => {
},
});
- assertViewGroupStructure(data.createCoreViewGroup, {
+ assertViewGroupStructure(data.createViewGroup, {
isVisible: true,
fieldValue: '',
position: 2,
@@ -118,9 +118,9 @@ describe('View Group Resolver', () => {
});
});
- describe('updateCoreViewGroup', () => {
+ describe('updateViewGroup', () => {
it('should update an existing view group', async () => {
- const { data: createData } = await createOneCoreViewGroup({
+ const { data: createData } = await createOneViewGroup({
expectToFail: false,
input: {
viewId: testViewId,
@@ -129,9 +129,9 @@ describe('View Group Resolver', () => {
position: 0,
},
});
- const viewGroup = createData.createCoreViewGroup;
+ const viewGroup = createData.createViewGroup;
- const { data } = await updateOneCoreViewGroup({
+ const { data } = await updateOneViewGroup({
expectToFail: false,
input: {
id: viewGroup.id,
@@ -143,7 +143,7 @@ describe('View Group Resolver', () => {
},
});
- expect(data.updateCoreViewGroup).toMatchObject({
+ expect(data.updateViewGroup).toMatchObject({
id: viewGroup.id,
isVisible: false,
fieldValue: 'updated',
@@ -152,7 +152,7 @@ describe('View Group Resolver', () => {
});
it('should throw an error when updating non-existent view group', async () => {
- const { errors } = await updateOneCoreViewGroup({
+ const { errors } = await updateOneViewGroup({
expectToFail: true,
input: {
id: TEST_NOT_EXISTING_VIEW_GROUP_ID,
@@ -166,9 +166,9 @@ describe('View Group Resolver', () => {
});
});
- describe('deleteCoreViewGroup', () => {
+ describe('deleteViewGroup', () => {
it('should delete an existing view group', async () => {
- const { data: createData } = await createOneCoreViewGroup({
+ const { data: createData } = await createOneViewGroup({
expectToFail: false,
input: {
viewId: testViewId,
@@ -177,23 +177,23 @@ describe('View Group Resolver', () => {
position: 0,
},
});
- const viewGroup = createData.createCoreViewGroup;
+ const viewGroup = createData.createViewGroup;
- const { data } = await deleteOneCoreViewGroup({
+ const { data } = await deleteOneViewGroup({
expectToFail: false,
input: {
id: viewGroup.id,
},
});
- expect(data.deleteCoreViewGroup).toMatchObject({
+ expect(data.deleteViewGroup).toMatchObject({
id: viewGroup.id,
});
- expect(data.deleteCoreViewGroup.deletedAt).toBeDefined();
+ expect(data.deleteViewGroup.deletedAt).toBeDefined();
});
it('should throw an error when deleting non-existent view group', async () => {
- const { errors } = await deleteOneCoreViewGroup({
+ const { errors } = await deleteOneViewGroup({
expectToFail: true,
input: {
id: TEST_NOT_EXISTING_VIEW_GROUP_ID,
@@ -204,9 +204,9 @@ describe('View Group Resolver', () => {
});
});
- describe('destroyCoreViewGroup', () => {
+ describe('destroyViewGroup', () => {
it('should destroy an existing view group', async () => {
- const { data: createData } = await createOneCoreViewGroup({
+ const { data: createData } = await createOneViewGroup({
expectToFail: false,
input: {
viewId: testViewId,
@@ -215,29 +215,29 @@ describe('View Group Resolver', () => {
position: 0,
},
});
- const viewGroup = createData.createCoreViewGroup;
+ const viewGroup = createData.createViewGroup;
- await deleteOneCoreViewGroup({
+ await deleteOneViewGroup({
input: {
id: viewGroup.id,
},
expectToFail: false,
});
- const { data } = await destroyOneCoreViewGroup({
+ const { data } = await destroyOneViewGroup({
expectToFail: false,
input: {
id: viewGroup.id,
},
});
- expect(data.destroyCoreViewGroup).toMatchObject({
+ expect(data.destroyViewGroup).toMatchObject({
id: viewGroup.id,
});
});
it('should throw an error when destroying non-existent view group', async () => {
- const { errors } = await destroyOneCoreViewGroup({
+ const { errors } = await destroyOneViewGroup({
expectToFail: true,
input: {
id: TEST_NOT_EXISTING_VIEW_GROUP_ID,
diff --git a/packages/twenty-server/test/integration/graphql/suites/view/view-group/successful-create-many-view-groups-v2.integration-spec.ts b/packages/twenty-server/test/integration/graphql/suites/view/view-group/successful-create-many-view-groups-v2.integration-spec.ts
index 8c9b4761a2a..2b622301d09 100644
--- a/packages/twenty-server/test/integration/graphql/suites/view/view-group/successful-create-many-view-groups-v2.integration-spec.ts
+++ b/packages/twenty-server/test/integration/graphql/suites/view/view-group/successful-create-many-view-groups-v2.integration-spec.ts
@@ -3,10 +3,10 @@ import { createOneSelectFieldMetadataForIntegrationTests } from 'test/integratio
import { createOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/create-one-object-metadata.util';
import { deleteOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/delete-one-object-metadata.util';
import { updateOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/update-one-object-metadata.util';
-import { createManyCoreViewGroups } from 'test/integration/metadata/suites/view-group/utils/create-many-core-view-groups.util';
-import { deleteOneCoreViewGroup } from 'test/integration/metadata/suites/view-group/utils/delete-one-core-view-group.util';
-import { destroyOneCoreViewGroup } from 'test/integration/metadata/suites/view-group/utils/destroy-one-core-view-group.util';
-import { createOneCoreView } from 'test/integration/metadata/suites/view/utils/create-one-core-view.util';
+import { createManyViewGroups } from 'test/integration/metadata/suites/view-group/utils/create-many-view-groups.util';
+import { deleteOneViewGroup } from 'test/integration/metadata/suites/view-group/utils/delete-one-view-group.util';
+import { destroyOneViewGroup } from 'test/integration/metadata/suites/view-group/utils/destroy-one-view-group.util';
+import { createOneView } from 'test/integration/metadata/suites/view/utils/create-one-view.util';
import { FieldMetadataType } from 'twenty-shared/types';
import { isDefined } from 'twenty-shared/utils';
@@ -110,9 +110,9 @@ describe('View Group Resolver - Successful Create Many Operations - v2', () => {
const {
data: {
- createCoreView: { id: testViewId },
+ createView: { id: testViewId },
},
- } = await createOneCoreView({
+ } = await createOneView({
input: {
icon: 'icon123',
objectMetadataId,
@@ -150,16 +150,16 @@ describe('View Group Resolver - Successful Create Many Operations - v2', () => {
for (const viewGroupId of createdViewGroupIds) {
if (isDefined(viewGroupId)) {
const {
- data: { deleteCoreViewGroup },
- } = await deleteOneCoreViewGroup({
+ data: { deleteViewGroup },
+ } = await deleteOneViewGroup({
expectToFail: false,
input: {
id: viewGroupId,
},
});
- expect(deleteCoreViewGroup.deletedAt).not.toBeNull();
- await destroyOneCoreViewGroup({
+ expect(deleteViewGroup.deletedAt).not.toBeNull();
+ await destroyOneViewGroup({
expectToFail: false,
input: {
id: viewGroupId,
@@ -193,9 +193,9 @@ describe('View Group Resolver - Successful Create Many Operations - v2', () => {
];
const {
- data: { createManyCoreViewGroups: createdViewGroups },
+ data: { createManyViewGroups: createdViewGroups },
errors,
- } = await createManyCoreViewGroups({
+ } = await createManyViewGroups({
inputs,
expectToFail: false,
});
@@ -227,9 +227,9 @@ describe('View Group Resolver - Successful Create Many Operations - v2', () => {
];
const {
- data: { createManyCoreViewGroups: createdViewGroups },
+ data: { createManyViewGroups: createdViewGroups },
errors,
- } = await createManyCoreViewGroups({
+ } = await createManyViewGroups({
inputs,
expectToFail: false,
});
@@ -254,9 +254,9 @@ describe('View Group Resolver - Successful Create Many Operations - v2', () => {
const inputs: CreateViewGroupInput[] = [];
const {
- data: { createManyCoreViewGroups: createdViewGroups },
+ data: { createManyViewGroups: createdViewGroups },
errors,
- } = await createManyCoreViewGroups({
+ } = await createManyViewGroups({
inputs,
expectToFail: false,
});
diff --git a/packages/twenty-server/test/integration/graphql/suites/view/view-sort-resolver.integration-spec.ts b/packages/twenty-server/test/integration/graphql/suites/view/view-sort-resolver.integration-spec.ts
index 7be88a77a55..fbc3718b1e2 100644
--- a/packages/twenty-server/test/integration/graphql/suites/view/view-sort-resolver.integration-spec.ts
+++ b/packages/twenty-server/test/integration/graphql/suites/view/view-sort-resolver.integration-spec.ts
@@ -17,7 +17,7 @@ import { createOneFieldMetadata } from 'test/integration/metadata/suites/field-m
import { createOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/create-one-object-metadata.util';
import { deleteOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/delete-one-object-metadata.util';
import { updateOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/update-one-object-metadata.util';
-import { destroyOneCoreView } from 'test/integration/metadata/suites/view/utils/destroy-one-core-view.util';
+import { destroyOneView } from 'test/integration/metadata/suites/view/utils/destroy-one-view.util';
import { assertViewSortStructure } from 'test/integration/utils/view-test.util';
import { FieldMetadataType } from 'twenty-shared/types';
@@ -97,19 +97,19 @@ describe('View Sort Resolver', () => {
});
afterEach(async () => {
- await destroyOneCoreView({
+ await destroyOneView({
viewId: testViewId,
expectToFail: false,
});
});
- describe('getCoreViewSorts', () => {
+ describe('getViewSorts', () => {
it('should return empty array when no view sorts exist', async () => {
const operation = findViewSortsOperationFactory({ viewId: testViewId });
const response = await makeMetadataAPIRequest(operation);
assertGraphQLSuccessfulResponse(response);
- expect(response.body.data.getCoreViewSorts).toEqual([]);
+ expect(response.body.data.getViewSorts).toEqual([]);
});
it('should return view sorts for a specific view', async () => {
@@ -129,8 +129,8 @@ describe('View Sort Resolver', () => {
const response = await makeMetadataAPIRequest(getOperation);
assertGraphQLSuccessfulResponse(response);
- expect(response.body.data.getCoreViewSorts).toHaveLength(1);
- assertViewSortStructure(response.body.data.getCoreViewSorts[0], {
+ expect(response.body.data.getViewSorts).toHaveLength(1);
+ assertViewSortStructure(response.body.data.getViewSorts[0], {
fieldMetadataId: testFieldMetadataId,
direction: ViewSortDirection.ASC,
viewId: testViewId,
@@ -138,7 +138,7 @@ describe('View Sort Resolver', () => {
});
});
- describe('createCoreViewSort', () => {
+ describe('createViewSort', () => {
it('should create a new view sort with ASC direction', async () => {
const sortData = createViewSortData(testViewId, {
direction: ViewSortDirection.ASC,
@@ -149,7 +149,7 @@ describe('View Sort Resolver', () => {
const response = await makeMetadataAPIRequest(operation);
assertGraphQLSuccessfulResponse(response);
- assertViewSortStructure(response.body.data.createCoreViewSort, {
+ assertViewSortStructure(response.body.data.createViewSort, {
fieldMetadataId: testFieldMetadataId,
direction: ViewSortDirection.ASC,
viewId: testViewId,
@@ -166,7 +166,7 @@ describe('View Sort Resolver', () => {
const response = await makeMetadataAPIRequest(operation);
assertGraphQLSuccessfulResponse(response);
- assertViewSortStructure(response.body.data.createCoreViewSort, {
+ assertViewSortStructure(response.body.data.createViewSort, {
fieldMetadataId: testFieldMetadataId,
direction: ViewSortDirection.DESC,
viewId: testViewId,
@@ -174,7 +174,7 @@ describe('View Sort Resolver', () => {
});
});
- describe('updateCoreViewSort', () => {
+ describe('updateViewSort', () => {
it('should update an existing view sort', async () => {
const sortData = createViewSortData(testViewId, {
direction: ViewSortDirection.ASC,
@@ -184,7 +184,7 @@ describe('View Sort Resolver', () => {
data: sortData,
});
const createResponse = await makeMetadataAPIRequest(createOperation);
- const viewSort = createResponse.body.data.createCoreViewSort;
+ const viewSort = createResponse.body.data.createViewSort;
const updateInput = updateViewSortData({
direction: ViewSortDirection.DESC,
@@ -196,7 +196,7 @@ describe('View Sort Resolver', () => {
const response = await makeMetadataAPIRequest(updateOperation);
assertGraphQLSuccessfulResponse(response);
- expect(response.body.data.updateCoreViewSort).toMatchObject({
+ expect(response.body.data.updateViewSort).toMatchObject({
id: viewSort.id,
direction: 'DESC',
});
@@ -218,7 +218,7 @@ describe('View Sort Resolver', () => {
});
});
- describe('deleteCoreViewSort', () => {
+ describe('deleteViewSort', () => {
it('should delete an existing view sort', async () => {
const sortData = createViewSortData(testViewId, {
fieldMetadataId: testFieldMetadataId,
@@ -227,7 +227,7 @@ describe('View Sort Resolver', () => {
data: sortData,
});
const createResponse = await makeMetadataAPIRequest(createOperation);
- const viewSort = createResponse.body.data.createCoreViewSort;
+ const viewSort = createResponse.body.data.createViewSort;
const deleteOperation = deleteViewSortOperationFactory({
viewSortId: viewSort.id,
@@ -235,7 +235,7 @@ describe('View Sort Resolver', () => {
const response = await makeMetadataAPIRequest(deleteOperation);
assertGraphQLSuccessfulResponse(response);
- expect(response.body.data.deleteCoreViewSort).toBe(true);
+ expect(response.body.data.deleteViewSort).toBe(true);
});
it('should throw an error when deleting non-existent view sort', async () => {
@@ -254,7 +254,7 @@ describe('View Sort Resolver', () => {
});
});
- describe('destroyCoreViewSort', () => {
+ describe('destroyViewSort', () => {
it('should destroy an existing view sort', async () => {
const sortData = createViewSortData(testViewId, {
fieldMetadataId: testFieldMetadataId,
@@ -263,7 +263,7 @@ describe('View Sort Resolver', () => {
data: sortData,
});
const createResponse = await makeMetadataAPIRequest(createOperation);
- const viewSort = createResponse.body.data.createCoreViewSort;
+ const viewSort = createResponse.body.data.createViewSort;
const destroyOperation = destroyViewSortOperationFactory({
viewSortId: viewSort.id,
@@ -271,7 +271,7 @@ describe('View Sort Resolver', () => {
const response = await makeMetadataAPIRequest(destroyOperation);
assertGraphQLSuccessfulResponse(response);
- expect(response.body.data.destroyCoreViewSort).toBe(true);
+ expect(response.body.data.destroyViewSort).toBe(true);
});
it('should throw an error when destroying non-existent view sort', async () => {
diff --git a/packages/twenty-server/test/integration/graphql/utils/create-view-filter-group-operation-factory.util.ts b/packages/twenty-server/test/integration/graphql/utils/create-view-filter-group-operation-factory.util.ts
index e087e89930e..b3a5edb73f8 100644
--- a/packages/twenty-server/test/integration/graphql/utils/create-view-filter-group-operation-factory.util.ts
+++ b/packages/twenty-server/test/integration/graphql/utils/create-view-filter-group-operation-factory.util.ts
@@ -13,8 +13,8 @@ export const createViewFilterGroupOperationFactory = ({
data = {},
}: CreateViewFilterGroupOperationFactoryParams = {}) => ({
query: gql`
- mutation CreateCoreViewFilterGroup($input: CreateViewFilterGroupInput!) {
- createCoreViewFilterGroup(input: $input) {
+ mutation CreateViewFilterGroup($input: CreateViewFilterGroupInput!) {
+ createViewFilterGroup(input: $input) {
${gqlFields}
}
}
diff --git a/packages/twenty-server/test/integration/graphql/utils/create-view-sort-operation-factory.util.ts b/packages/twenty-server/test/integration/graphql/utils/create-view-sort-operation-factory.util.ts
index 2ac1bbd5641..266521f5194 100644
--- a/packages/twenty-server/test/integration/graphql/utils/create-view-sort-operation-factory.util.ts
+++ b/packages/twenty-server/test/integration/graphql/utils/create-view-sort-operation-factory.util.ts
@@ -13,8 +13,8 @@ export const createViewSortOperationFactory = ({
data = {},
}: CreateViewSortOperationFactoryParams = {}) => ({
query: gql`
- mutation CreateCoreViewSort($input: CreateViewSortInput!) {
- createCoreViewSort(input: $input) {
+ mutation CreateViewSort($input: CreateViewSortInput!) {
+ createViewSort(input: $input) {
${gqlFields}
}
}
diff --git a/packages/twenty-server/test/integration/graphql/utils/delete-view-filter-group-operation-factory.util.ts b/packages/twenty-server/test/integration/graphql/utils/delete-view-filter-group-operation-factory.util.ts
index 5dc76f384a8..8039afbd35e 100644
--- a/packages/twenty-server/test/integration/graphql/utils/delete-view-filter-group-operation-factory.util.ts
+++ b/packages/twenty-server/test/integration/graphql/utils/delete-view-filter-group-operation-factory.util.ts
@@ -6,8 +6,8 @@ export const deleteViewFilterGroupOperationFactory = ({
viewFilterGroupId: string;
}) => ({
query: gql`
- mutation DeleteCoreViewFilterGroup($id: String!) {
- deleteCoreViewFilterGroup(id: $id)
+ mutation DeleteViewFilterGroup($id: String!) {
+ deleteViewFilterGroup(id: $id)
}
`,
variables: {
diff --git a/packages/twenty-server/test/integration/graphql/utils/delete-view-sort-operation-factory.util.ts b/packages/twenty-server/test/integration/graphql/utils/delete-view-sort-operation-factory.util.ts
index a747e6c0f72..93b2cd6f044 100644
--- a/packages/twenty-server/test/integration/graphql/utils/delete-view-sort-operation-factory.util.ts
+++ b/packages/twenty-server/test/integration/graphql/utils/delete-view-sort-operation-factory.util.ts
@@ -6,8 +6,8 @@ export const deleteViewSortOperationFactory = ({
viewSortId: string;
}) => ({
query: gql`
- mutation DeleteCoreViewSort($input: DeleteViewSortInput!) {
- deleteCoreViewSort(input: $input)
+ mutation DeleteViewSort($input: DeleteViewSortInput!) {
+ deleteViewSort(input: $input)
}
`,
variables: {
diff --git a/packages/twenty-server/test/integration/graphql/utils/destroy-view-filter-group-operation-factory.util.ts b/packages/twenty-server/test/integration/graphql/utils/destroy-view-filter-group-operation-factory.util.ts
index 9986970b83b..95bec228a23 100644
--- a/packages/twenty-server/test/integration/graphql/utils/destroy-view-filter-group-operation-factory.util.ts
+++ b/packages/twenty-server/test/integration/graphql/utils/destroy-view-filter-group-operation-factory.util.ts
@@ -6,8 +6,8 @@ export const destroyViewFilterGroupOperationFactory = ({
viewFilterGroupId: string;
}) => ({
query: gql`
- mutation DestroyCoreViewFilterGroup($id: String!) {
- destroyCoreViewFilterGroup(id: $id)
+ mutation DestroyViewFilterGroup($id: String!) {
+ destroyViewFilterGroup(id: $id)
}
`,
variables: {
diff --git a/packages/twenty-server/test/integration/graphql/utils/destroy-view-sort-operation-factory.util.ts b/packages/twenty-server/test/integration/graphql/utils/destroy-view-sort-operation-factory.util.ts
index 8e6be1e5d65..d2e55cf54d7 100644
--- a/packages/twenty-server/test/integration/graphql/utils/destroy-view-sort-operation-factory.util.ts
+++ b/packages/twenty-server/test/integration/graphql/utils/destroy-view-sort-operation-factory.util.ts
@@ -6,8 +6,8 @@ export const destroyViewSortOperationFactory = ({
viewSortId: string;
}) => ({
query: gql`
- mutation DestroyCoreViewSort($input: DestroyViewSortInput!) {
- destroyCoreViewSort(input: $input)
+ mutation DestroyViewSort($input: DestroyViewSortInput!) {
+ destroyViewSort(input: $input)
}
`,
variables: {
diff --git a/packages/twenty-server/test/integration/graphql/utils/find-view-fields-operation-factory.util.ts b/packages/twenty-server/test/integration/graphql/utils/find-view-fields-operation-factory.util.ts
index a8bcf7a05b3..814218806e3 100644
--- a/packages/twenty-server/test/integration/graphql/utils/find-view-fields-operation-factory.util.ts
+++ b/packages/twenty-server/test/integration/graphql/utils/find-view-fields-operation-factory.util.ts
@@ -9,8 +9,8 @@ export const findViewFieldsOperationFactory = ({
viewId: string;
}) => ({
query: gql`
- query GetCoreViewFields($viewId: String!) {
- getCoreViewFields(viewId: $viewId) {
+ query GetViewFields($viewId: String!) {
+ getViewFields(viewId: $viewId) {
${gqlFields}
}
}
diff --git a/packages/twenty-server/test/integration/graphql/utils/find-view-filter-group-operation-factory.util.ts b/packages/twenty-server/test/integration/graphql/utils/find-view-filter-group-operation-factory.util.ts
index 991ac2626df..af8125f8ed2 100644
--- a/packages/twenty-server/test/integration/graphql/utils/find-view-filter-group-operation-factory.util.ts
+++ b/packages/twenty-server/test/integration/graphql/utils/find-view-filter-group-operation-factory.util.ts
@@ -9,8 +9,8 @@ export const findViewFilterGroupOperationFactory = ({
viewFilterGroupId: string;
}) => ({
query: gql`
- query GetCoreViewFilterGroup($id: String!) {
- getCoreViewFilterGroup(id: $id) {
+ query GetViewFilterGroup($id: String!) {
+ getViewFilterGroup(id: $id) {
${gqlFields}
}
}
diff --git a/packages/twenty-server/test/integration/graphql/utils/find-view-filter-groups-operation-factory.util.ts b/packages/twenty-server/test/integration/graphql/utils/find-view-filter-groups-operation-factory.util.ts
index df4174bb86a..c08ff69da8d 100644
--- a/packages/twenty-server/test/integration/graphql/utils/find-view-filter-groups-operation-factory.util.ts
+++ b/packages/twenty-server/test/integration/graphql/utils/find-view-filter-groups-operation-factory.util.ts
@@ -9,8 +9,8 @@ export const findViewFilterGroupsOperationFactory = ({
viewId?: string;
} = {}) => ({
query: gql`
- query GetCoreViewFilterGroups($viewId: String) {
- getCoreViewFilterGroups(viewId: $viewId) {
+ query GetViewFilterGroups($viewId: String) {
+ getViewFilterGroups(viewId: $viewId) {
${gqlFields}
}
}
diff --git a/packages/twenty-server/test/integration/graphql/utils/find-view-sorts-operation-factory.util.ts b/packages/twenty-server/test/integration/graphql/utils/find-view-sorts-operation-factory.util.ts
index fd1276e16bb..296cb112bfb 100644
--- a/packages/twenty-server/test/integration/graphql/utils/find-view-sorts-operation-factory.util.ts
+++ b/packages/twenty-server/test/integration/graphql/utils/find-view-sorts-operation-factory.util.ts
@@ -9,8 +9,8 @@ export const findViewSortsOperationFactory = ({
viewId: string;
}) => ({
query: gql`
- query GetCoreViewSorts($viewId: String!) {
- getCoreViewSorts(viewId: $viewId) {
+ query GetViewSorts($viewId: String!) {
+ getViewSorts(viewId: $viewId) {
${gqlFields}
}
}
diff --git a/packages/twenty-server/test/integration/graphql/utils/update-view-filter-group-operation-factory.util.ts b/packages/twenty-server/test/integration/graphql/utils/update-view-filter-group-operation-factory.util.ts
index df174426db0..44811ad1b45 100644
--- a/packages/twenty-server/test/integration/graphql/utils/update-view-filter-group-operation-factory.util.ts
+++ b/packages/twenty-server/test/integration/graphql/utils/update-view-filter-group-operation-factory.util.ts
@@ -11,8 +11,8 @@ export const updateViewFilterGroupOperationFactory = ({
data?: object;
}) => ({
query: gql`
- mutation UpdateCoreViewFilterGroup($id: String!, $input: UpdateViewFilterGroupInput!) {
- updateCoreViewFilterGroup(id: $id, input: $input) {
+ mutation UpdateViewFilterGroup($id: String!, $input: UpdateViewFilterGroupInput!) {
+ updateViewFilterGroup(id: $id, input: $input) {
${gqlFields}
}
}
diff --git a/packages/twenty-server/test/integration/graphql/utils/update-view-sort-operation-factory.util.ts b/packages/twenty-server/test/integration/graphql/utils/update-view-sort-operation-factory.util.ts
index e529c30adf6..b9bc56e2473 100644
--- a/packages/twenty-server/test/integration/graphql/utils/update-view-sort-operation-factory.util.ts
+++ b/packages/twenty-server/test/integration/graphql/utils/update-view-sort-operation-factory.util.ts
@@ -11,8 +11,8 @@ export const updateViewSortOperationFactory = ({
data?: object;
}) => ({
query: gql`
- mutation UpdateCoreViewSort($input: UpdateViewSortInput!) {
- updateCoreViewSort(input: $input) {
+ mutation UpdateViewSort($input: UpdateViewSortInput!) {
+ updateViewSort(input: $input) {
${gqlFields}
}
}
diff --git a/packages/twenty-server/test/integration/graphql/utils/view-graphql.util.ts b/packages/twenty-server/test/integration/graphql/utils/view-graphql.util.ts
index 810eb17b3c8..b0582dd8f37 100644
--- a/packages/twenty-server/test/integration/graphql/utils/view-graphql.util.ts
+++ b/packages/twenty-server/test/integration/graphql/utils/view-graphql.util.ts
@@ -1,4 +1,4 @@
-import { createOneCoreView } from 'test/integration/metadata/suites/view/utils/create-one-core-view.util';
+import { createOneView } from 'test/integration/metadata/suites/view/utils/create-one-view.util';
import { type CreateViewInput } from 'src/engine/metadata-modules/view/dtos/inputs/create-view.input';
import { type ViewEntity } from 'src/engine/metadata-modules/view/entities/view.entity';
@@ -22,7 +22,7 @@ export const createTestViewWithGraphQL = async (
visibility: viewData.visibility,
};
- const { data, errors } = await createOneCoreView({
+ const { data, errors } = await createOneView({
input,
expectToFail: false,
});
@@ -35,5 +35,5 @@ export const createTestViewWithGraphQL = async (
throw new Error('No data returned from createTestViewWithGraphQL');
}
- return data.createCoreView;
+ return data.createView;
};
diff --git a/packages/twenty-server/test/integration/metadata/suites/field-metadata/calendar-field-deactivation-deletes-views.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/field-metadata/calendar-field-deactivation-deletes-views.integration-spec.ts
index dd1b61796c0..dc130de64d4 100644
--- a/packages/twenty-server/test/integration/metadata/suites/field-metadata/calendar-field-deactivation-deletes-views.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/field-metadata/calendar-field-deactivation-deletes-views.integration-spec.ts
@@ -4,8 +4,8 @@ import { updateOneFieldMetadata } from 'test/integration/metadata/suites/field-m
import { createOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/create-one-object-metadata.util';
import { deleteOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/delete-one-object-metadata.util';
import { updateOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/update-one-object-metadata.util';
-import { createOneCoreView } from 'test/integration/metadata/suites/view/utils/create-one-core-view.util';
-import { findOneCoreView } from 'test/integration/metadata/suites/view/utils/find-one-core-view.util';
+import { createOneView } from 'test/integration/metadata/suites/view/utils/create-one-view.util';
+import { findOneView } from 'test/integration/metadata/suites/view/utils/find-one-view.util';
import { generateRecordName } from 'test/integration/utils/generate-record-name';
import { FieldMetadataType, ViewType } from 'twenty-shared/types';
import { isDefined } from 'twenty-shared/utils';
@@ -37,20 +37,20 @@ describe('calendar-field-deactivation-deletes-views', () => {
const verifyViewExists = async (viewId: string, shouldExist: boolean) => {
const {
- data: { getCoreView },
- } = await findOneCoreView({
+ data: { getView },
+ } = await findOneView({
viewId,
gqlFields: VIEW_WITH_CALENDAR_FIELDS,
expectToFail: false,
});
if (shouldExist) {
- expect(isDefined(getCoreView)).toBe(true);
+ expect(isDefined(getView)).toBe(true);
} else {
- expect(getCoreView).toBeNull();
+ expect(getView).toBeNull();
}
- return getCoreView;
+ return getView;
};
const deactivateFieldAndVerify = async (fieldId: string) => {
@@ -118,8 +118,8 @@ describe('calendar-field-deactivation-deletes-views', () => {
});
const {
- data: { createCoreView: viewWithCalendar },
- } = await createOneCoreView({
+ data: { createView: viewWithCalendar },
+ } = await createOneView({
input: {
name: generateRecordName('Calendar View With Date Field'),
objectMetadataId,
@@ -133,8 +133,8 @@ describe('calendar-field-deactivation-deletes-views', () => {
});
const {
- data: { createCoreView: viewWithoutCalendar },
- } = await createOneCoreView({
+ data: { createView: viewWithoutCalendar },
+ } = await createOneView({
input: {
name: generateRecordName('Table View Without Calendar'),
objectMetadataId,
@@ -201,8 +201,8 @@ describe('calendar-field-deactivation-deletes-views', () => {
it('should delete multiple views when they all use the same field as calendarFieldMetadataId', async () => {
const {
- data: { createCoreView: secondViewWithCalendar },
- } = await createOneCoreView({
+ data: { createView: secondViewWithCalendar },
+ } = await createOneView({
input: {
name: generateRecordName('Second Calendar View'),
objectMetadataId: testSetup.objectMetadataId,
@@ -228,8 +228,8 @@ describe('calendar-field-deactivation-deletes-views', () => {
it('should handle deactivation when views have different calendar layouts on same field', async () => {
const {
- data: { createCoreView: viewWithDayLayout },
- } = await createOneCoreView({
+ data: { createView: viewWithDayLayout },
+ } = await createOneView({
input: {
name: generateRecordName('Calendar View With Day Layout'),
objectMetadataId: testSetup.objectMetadataId,
@@ -243,8 +243,8 @@ describe('calendar-field-deactivation-deletes-views', () => {
});
const {
- data: { createCoreView: viewWithMonthLayout },
- } = await createOneCoreView({
+ data: { createView: viewWithMonthLayout },
+ } = await createOneView({
input: {
name: generateRecordName('Calendar View With Month Layout'),
objectMetadataId: testSetup.objectMetadataId,
@@ -280,8 +280,8 @@ describe('calendar-field-deactivation-deletes-views', () => {
});
const {
- data: { createCoreView: kanbanViewWithSameObject },
- } = await createOneCoreView({
+ data: { createView: kanbanViewWithSameObject },
+ } = await createOneView({
input: {
name: generateRecordName('Kanban View'),
objectMetadataId: testSetup.objectMetadataId,
diff --git a/packages/twenty-server/test/integration/metadata/suites/field-metadata/field-group-by-deactivation-deletes-views.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/field-metadata/field-group-by-deactivation-deletes-views.integration-spec.ts
index 002b5db47cd..cbd5822aa88 100644
--- a/packages/twenty-server/test/integration/metadata/suites/field-metadata/field-group-by-deactivation-deletes-views.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/field-metadata/field-group-by-deactivation-deletes-views.integration-spec.ts
@@ -3,8 +3,8 @@ import { updateOneFieldMetadata } from 'test/integration/metadata/suites/field-m
import { createOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/create-one-object-metadata.util';
import { deleteOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/delete-one-object-metadata.util';
import { updateOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/update-one-object-metadata.util';
-import { createOneCoreView } from 'test/integration/metadata/suites/view/utils/create-one-core-view.util';
-import { findOneCoreView } from 'test/integration/metadata/suites/view/utils/find-one-core-view.util';
+import { createOneView } from 'test/integration/metadata/suites/view/utils/create-one-view.util';
+import { findOneView } from 'test/integration/metadata/suites/view/utils/find-one-view.util';
import { generateRecordName } from 'test/integration/utils/generate-record-name';
import { FieldMetadataType, ViewType } from 'twenty-shared/types';
import { isDefined } from 'twenty-shared/utils';
@@ -31,20 +31,20 @@ describe('field-for-group-by-deactivation-deletes-views', () => {
const verifyViewExists = async (viewId: string, shouldExist: boolean) => {
const {
- data: { getCoreView },
- } = await findOneCoreView({
+ data: { getView },
+ } = await findOneView({
viewId,
gqlFields: VIEW_FIELDS,
expectToFail: false,
});
if (shouldExist) {
- expect(isDefined(getCoreView)).toBe(true);
+ expect(isDefined(getView)).toBe(true);
} else {
- expect(getCoreView).toBeNull();
+ expect(getView).toBeNull();
}
- return getCoreView;
+ return getView;
};
const deactivateFieldAndVerify = async (fieldId: string) => {
@@ -117,8 +117,8 @@ describe('field-for-group-by-deactivation-deletes-views', () => {
});
const {
- data: { createCoreView: viewWithGroup },
- } = await createOneCoreView({
+ data: { createView: viewWithGroup },
+ } = await createOneView({
input: {
name: generateRecordName('View With Group'),
objectMetadataId,
@@ -131,8 +131,8 @@ describe('field-for-group-by-deactivation-deletes-views', () => {
});
const {
- data: { createCoreView: viewWithoutGroup },
- } = await createOneCoreView({
+ data: { createView: viewWithoutGroup },
+ } = await createOneView({
input: {
name: generateRecordName('View Without Group'),
objectMetadataId,
@@ -190,8 +190,8 @@ describe('field-for-group-by-deactivation-deletes-views', () => {
it('should delete multiple views when they all use the same field in view groups', async () => {
const {
- data: { createCoreView: secondViewWithGroup },
- } = await createOneCoreView({
+ data: { createView: secondViewWithGroup },
+ } = await createOneView({
input: {
name: generateRecordName('Second View With Group'),
objectMetadataId: testSetup.objectMetadataId,
diff --git a/packages/twenty-server/test/integration/metadata/suites/field-metadata/kanban-aggregate-field-deactivation-nullifies-views-kanban-properties.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/field-metadata/kanban-aggregate-field-deactivation-nullifies-views-kanban-properties.integration-spec.ts
index 58caa0988b3..20e408005cd 100644
--- a/packages/twenty-server/test/integration/metadata/suites/field-metadata/kanban-aggregate-field-deactivation-nullifies-views-kanban-properties.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/field-metadata/kanban-aggregate-field-deactivation-nullifies-views-kanban-properties.integration-spec.ts
@@ -4,8 +4,8 @@ import { updateOneFieldMetadata } from 'test/integration/metadata/suites/field-m
import { createOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/create-one-object-metadata.util';
import { deleteOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/delete-one-object-metadata.util';
import { updateOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/update-one-object-metadata.util';
-import { createOneCoreView } from 'test/integration/metadata/suites/view/utils/create-one-core-view.util';
-import { findOneCoreView } from 'test/integration/metadata/suites/view/utils/find-one-core-view.util';
+import { createOneView } from 'test/integration/metadata/suites/view/utils/create-one-view.util';
+import { findOneView } from 'test/integration/metadata/suites/view/utils/find-one-view.util';
import { generateRecordName } from 'test/integration/utils/generate-record-name';
import {
AggregateOperations,
@@ -40,8 +40,8 @@ describe('kanban-aggregate-field-deactivation-nullifies-kanban-properties', () =
const verifyKanbanPropertiesAreNull = async (viewId: string) => {
const {
- data: { getCoreView: view },
- } = await findOneCoreView({
+ data: { getView: view },
+ } = await findOneView({
viewId,
gqlFields: VIEW_WITH_KANBAN_FIELDS,
expectToFail: false,
@@ -142,8 +142,8 @@ describe('kanban-aggregate-field-deactivation-nullifies-kanban-properties', () =
});
const {
- data: { createCoreView: viewWithAggregate },
- } = await createOneCoreView({
+ data: { createView: viewWithAggregate },
+ } = await createOneView({
input: {
name: generateRecordName('Kanban View With Aggregate'),
objectMetadataId,
@@ -158,8 +158,8 @@ describe('kanban-aggregate-field-deactivation-nullifies-kanban-properties', () =
});
const {
- data: { createCoreView: viewWithoutAggregate },
- } = await createOneCoreView({
+ data: { createView: viewWithoutAggregate },
+ } = await createOneView({
input: {
name: generateRecordName('Kanban View Without Aggregate'),
objectMetadataId,
@@ -199,16 +199,16 @@ describe('kanban-aggregate-field-deactivation-nullifies-kanban-properties', () =
it('should nullify kanban properties when field used as kanbanAggregateOperationFieldMetadataId is deactivated', async () => {
const {
- data: { getCoreView: initialViewWithAggregate },
- } = await findOneCoreView({
+ data: { getView: initialViewWithAggregate },
+ } = await findOneView({
viewId: testSetup.viewWithAggregateId,
gqlFields: VIEW_WITH_KANBAN_FIELDS,
expectToFail: false,
});
const {
- data: { getCoreView: initialViewWithoutAggregate },
- } = await findOneCoreView({
+ data: { getView: initialViewWithoutAggregate },
+ } = await findOneView({
viewId: testSetup.viewWithoutAggregateId,
gqlFields: VIEW_WITH_KANBAN_FIELDS,
expectToFail: false,
@@ -225,8 +225,8 @@ describe('kanban-aggregate-field-deactivation-nullifies-kanban-properties', () =
// View without aggregate should remain unchanged
const {
- data: { getCoreView: updatedViewWithoutAggregate },
- } = await findOneCoreView({
+ data: { getView: updatedViewWithoutAggregate },
+ } = await findOneView({
viewId: testSetup.viewWithoutAggregateId,
gqlFields: VIEW_WITH_KANBAN_FIELDS,
expectToFail: false,
@@ -237,16 +237,16 @@ describe('kanban-aggregate-field-deactivation-nullifies-kanban-properties', () =
it('should not modify views when field not used as kanbanAggregateOperationFieldMetadataId is deactivated', async () => {
const {
- data: { getCoreView: initialViewWithAggregate },
- } = await findOneCoreView({
+ data: { getView: initialViewWithAggregate },
+ } = await findOneView({
viewId: testSetup.viewWithAggregateId,
gqlFields: VIEW_WITH_KANBAN_FIELDS,
expectToFail: false,
});
const {
- data: { getCoreView: initialViewWithoutAggregate },
- } = await findOneCoreView({
+ data: { getView: initialViewWithoutAggregate },
+ } = await findOneView({
viewId: testSetup.viewWithoutAggregateId,
gqlFields: VIEW_WITH_KANBAN_FIELDS,
expectToFail: false,
@@ -255,16 +255,16 @@ describe('kanban-aggregate-field-deactivation-nullifies-kanban-properties', () =
await deactivateFieldAndVerify(testSetup.nonAggregateFieldMetadataId);
const {
- data: { getCoreView: updatedViewWithAggregate },
- } = await findOneCoreView({
+ data: { getView: updatedViewWithAggregate },
+ } = await findOneView({
viewId: testSetup.viewWithAggregateId,
gqlFields: VIEW_WITH_KANBAN_FIELDS,
expectToFail: false,
});
const {
- data: { getCoreView: updatedViewWithoutAggregate },
- } = await findOneCoreView({
+ data: { getView: updatedViewWithoutAggregate },
+ } = await findOneView({
viewId: testSetup.viewWithoutAggregateId,
gqlFields: VIEW_WITH_KANBAN_FIELDS,
expectToFail: false,
@@ -276,8 +276,8 @@ describe('kanban-aggregate-field-deactivation-nullifies-kanban-properties', () =
it('should nullify kanban properties on multiple views when they all use the same field as kanbanAggregateOperationFieldMetadataId', async () => {
const {
- data: { createCoreView: secondViewWithAggregate },
- } = await createOneCoreView({
+ data: { createView: secondViewWithAggregate },
+ } = await createOneView({
input: {
name: generateRecordName('Second Kanban View With Aggregate'),
objectMetadataId: testSetup.objectMetadataId,
@@ -293,24 +293,24 @@ describe('kanban-aggregate-field-deactivation-nullifies-kanban-properties', () =
});
const {
- data: { getCoreView: initialViewWithAggregate },
- } = await findOneCoreView({
+ data: { getView: initialViewWithAggregate },
+ } = await findOneView({
viewId: testSetup.viewWithAggregateId,
gqlFields: VIEW_WITH_KANBAN_FIELDS,
expectToFail: false,
});
const {
- data: { getCoreView: initialSecondViewWithAggregate },
- } = await findOneCoreView({
+ data: { getView: initialSecondViewWithAggregate },
+ } = await findOneView({
viewId: secondViewWithAggregate.id,
gqlFields: VIEW_WITH_KANBAN_FIELDS,
expectToFail: false,
});
const {
- data: { getCoreView: initialViewWithoutAggregate },
- } = await findOneCoreView({
+ data: { getView: initialViewWithoutAggregate },
+ } = await findOneView({
viewId: testSetup.viewWithoutAggregateId,
gqlFields: VIEW_WITH_KANBAN_FIELDS,
expectToFail: false,
@@ -330,8 +330,8 @@ describe('kanban-aggregate-field-deactivation-nullifies-kanban-properties', () =
// View without aggregate should remain unchanged
const {
- data: { getCoreView: updatedViewWithoutAggregate },
- } = await findOneCoreView({
+ data: { getView: updatedViewWithoutAggregate },
+ } = await findOneView({
viewId: testSetup.viewWithoutAggregateId,
gqlFields: VIEW_WITH_KANBAN_FIELDS,
expectToFail: false,
@@ -342,8 +342,8 @@ describe('kanban-aggregate-field-deactivation-nullifies-kanban-properties', () =
it('should nullify kanban properties when views have different aggregate operations on same field', async () => {
const {
- data: { createCoreView: viewWithMin },
- } = await createOneCoreView({
+ data: { createView: viewWithMin },
+ } = await createOneView({
input: {
name: generateRecordName('Kanban View With MIN'),
objectMetadataId: testSetup.objectMetadataId,
@@ -359,8 +359,8 @@ describe('kanban-aggregate-field-deactivation-nullifies-kanban-properties', () =
});
const {
- data: { createCoreView: viewWithAvg },
- } = await createOneCoreView({
+ data: { createView: viewWithAvg },
+ } = await createOneView({
input: {
name: generateRecordName('Kanban View With AVG'),
objectMetadataId: testSetup.objectMetadataId,
@@ -376,32 +376,32 @@ describe('kanban-aggregate-field-deactivation-nullifies-kanban-properties', () =
});
const {
- data: { getCoreView: initialViewWithAggregate },
- } = await findOneCoreView({
+ data: { getView: initialViewWithAggregate },
+ } = await findOneView({
viewId: testSetup.viewWithAggregateId,
gqlFields: VIEW_WITH_KANBAN_FIELDS,
expectToFail: false,
});
const {
- data: { getCoreView: initialViewWithMin },
- } = await findOneCoreView({
+ data: { getView: initialViewWithMin },
+ } = await findOneView({
viewId: viewWithMin.id,
gqlFields: VIEW_WITH_KANBAN_FIELDS,
expectToFail: false,
});
const {
- data: { getCoreView: initialViewWithAvg },
- } = await findOneCoreView({
+ data: { getView: initialViewWithAvg },
+ } = await findOneView({
viewId: viewWithAvg.id,
gqlFields: VIEW_WITH_KANBAN_FIELDS,
expectToFail: false,
});
const {
- data: { getCoreView: initialViewWithoutAggregate },
- } = await findOneCoreView({
+ data: { getView: initialViewWithoutAggregate },
+ } = await findOneView({
viewId: testSetup.viewWithoutAggregateId,
gqlFields: VIEW_WITH_KANBAN_FIELDS,
expectToFail: false,
@@ -419,8 +419,8 @@ describe('kanban-aggregate-field-deactivation-nullifies-kanban-properties', () =
// View without aggregate should remain unchanged
const {
- data: { getCoreView: updatedViewWithoutAggregate },
- } = await findOneCoreView({
+ data: { getView: updatedViewWithoutAggregate },
+ } = await findOneView({
viewId: testSetup.viewWithoutAggregateId,
gqlFields: VIEW_WITH_KANBAN_FIELDS,
expectToFail: false,
diff --git a/packages/twenty-server/test/integration/metadata/suites/field-metadata/update-one-field-metadata-view-filters-side-effect-v2.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/field-metadata/update-one-field-metadata-view-filters-side-effect-v2.integration-spec.ts
index 83758e487df..2427812f310 100644
--- a/packages/twenty-server/test/integration/metadata/suites/field-metadata/update-one-field-metadata-view-filters-side-effect-v2.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/field-metadata/update-one-field-metadata-view-filters-side-effect-v2.integration-spec.ts
@@ -5,8 +5,8 @@ import { createOneObjectMetadata } from 'test/integration/metadata/suites/object
import { deleteOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/delete-one-object-metadata.util';
import { getMockCreateObjectInput } from 'test/integration/metadata/suites/object-metadata/utils/generate-mock-create-object-metadata-input';
import { updateOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/update-one-object-metadata.util';
-import { createOneCoreViewFilter } from 'test/integration/metadata/suites/view-filter/utils/create-one-core-view-filter.util';
-import { createOneCoreView } from 'test/integration/metadata/suites/view/utils/create-one-core-view.util';
+import { createOneViewFilter } from 'test/integration/metadata/suites/view-filter/utils/create-one-view-filter.util';
+import { createOneView } from 'test/integration/metadata/suites/view/utils/create-one-view.util';
import { findViewFilterWithRestApi } from 'test/integration/rest/utils/view-rest-api.util';
import {
eachTestingContextFilter,
@@ -111,8 +111,8 @@ describe('update-one-field-metadata-view-filters-side-effect-v2', () => {
});
const {
- data: { createCoreView: createdView },
- } = await createOneCoreView({
+ data: { createView: createdView },
+ } = await createOneView({
input: {
id: faker.string.uuid(),
icon: '123Icon',
@@ -234,8 +234,8 @@ describe('update-one-field-metadata-view-filters-side-effect-v2', () => {
await createObjectSelectFieldAndView(fieldMetadata);
const {
- data: { createCoreViewFilter: createdViewFilter },
- } = await createOneCoreViewFilter({
+ data: { createViewFilter: createdViewFilter },
+ } = await createOneViewFilter({
input: {
viewId: createdView.id,
fieldMetadataId: createOneField.id,
@@ -331,7 +331,7 @@ describe('update-one-field-metadata-view-filters-side-effect-v2', () => {
const viewFilterId = '20202020-e3b5-4fa7-85aa-9b1950fc7bf5';
- await createOneCoreViewFilter({
+ await createOneViewFilter({
input: {
id: viewFilterId,
viewId: createdView.id,
diff --git a/packages/twenty-server/test/integration/metadata/suites/field-metadata/update-one-field-metadata-view-groups-side-effect-v2.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/field-metadata/update-one-field-metadata-view-groups-side-effect-v2.integration-spec.ts
index 03dd1cc5529..d484f30c4a1 100644
--- a/packages/twenty-server/test/integration/metadata/suites/field-metadata/update-one-field-metadata-view-groups-side-effect-v2.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/field-metadata/update-one-field-metadata-view-groups-side-effect-v2.integration-spec.ts
@@ -5,8 +5,8 @@ import { createOneObjectMetadata } from 'test/integration/metadata/suites/object
import { deleteOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/delete-one-object-metadata.util';
import { getMockCreateObjectInput } from 'test/integration/metadata/suites/object-metadata/utils/generate-mock-create-object-metadata-input';
import { updateOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/update-one-object-metadata.util';
-import { findCoreViewGroups } from 'test/integration/metadata/suites/view-group/utils/find-core-view-groups.util';
-import { createOneCoreView } from 'test/integration/metadata/suites/view/utils/create-one-core-view.util';
+import { findViewGroups } from 'test/integration/metadata/suites/view-group/utils/find-view-groups.util';
+import { createOneView } from 'test/integration/metadata/suites/view/utils/create-one-view.util';
import { FieldMetadataType, ViewType } from 'twenty-shared/types';
import {
@@ -72,8 +72,8 @@ describe('update-one-field-metadata-view-groups-side-effect-v2', () => {
});
const {
- data: { createCoreView: view },
- } = await createOneCoreView({
+ data: { createView: view },
+ } = await createOneView({
input: {
id: faker.string.uuid(),
icon: 'IconTable',
@@ -117,8 +117,8 @@ describe('update-one-field-metadata-view-groups-side-effect-v2', () => {
await createObjectWithSelectFieldAndView(initialOptions);
const {
- data: { getCoreViewGroups: initialViewGroups },
- } = await findCoreViewGroups({
+ data: { getViewGroups: initialViewGroups },
+ } = await findViewGroups({
viewId,
gqlFields: 'id fieldValue',
expectToFail: false,
@@ -154,8 +154,8 @@ describe('update-one-field-metadata-view-groups-side-effect-v2', () => {
});
const {
- data: { getCoreViewGroups: updatedViewGroups },
- } = await findCoreViewGroups({
+ data: { getViewGroups: updatedViewGroups },
+ } = await findViewGroups({
viewId,
gqlFields: 'id fieldValue viewId',
expectToFail: false,
@@ -188,8 +188,8 @@ describe('update-one-field-metadata-view-groups-side-effect-v2', () => {
});
const {
- data: { getCoreViewGroups: updatedViewGroups },
- } = await findCoreViewGroups({
+ data: { getViewGroups: updatedViewGroups },
+ } = await findViewGroups({
viewId,
gqlFields: 'id fieldValue',
expectToFail: false,
@@ -226,8 +226,8 @@ describe('update-one-field-metadata-view-groups-side-effect-v2', () => {
});
const {
- data: { getCoreViewGroups: updatedViewGroups },
- } = await findCoreViewGroups({
+ data: { getViewGroups: updatedViewGroups },
+ } = await findViewGroups({
viewId,
gqlFields: 'id fieldValue',
expectToFail: false,
@@ -262,8 +262,8 @@ describe('update-one-field-metadata-view-groups-side-effect-v2', () => {
});
const {
- data: { getCoreViewGroups: updatedViewGroups },
- } = await findCoreViewGroups({
+ data: { getViewGroups: updatedViewGroups },
+ } = await findViewGroups({
viewId,
gqlFields: 'id fieldValue',
expectToFail: false,
@@ -301,8 +301,8 @@ describe('update-one-field-metadata-view-groups-side-effect-v2', () => {
});
const {
- data: { getCoreViewGroups: updatedViewGroups },
- } = await findCoreViewGroups({
+ data: { getViewGroups: updatedViewGroups },
+ } = await findViewGroups({
viewId,
gqlFields: 'id fieldValue',
expectToFail: false,
diff --git a/packages/twenty-server/test/integration/metadata/suites/object-metadata/view-side-effect-on-object-metadata-creation.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/object-metadata/view-side-effect-on-object-metadata-creation.integration-spec.ts
index e1f4390807b..ebe04a26194 100644
--- a/packages/twenty-server/test/integration/metadata/suites/object-metadata/view-side-effect-on-object-metadata-creation.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/object-metadata/view-side-effect-on-object-metadata-creation.integration-spec.ts
@@ -3,8 +3,8 @@ import { type CreateOneObjectFactoryInput } from 'test/integration/metadata/suit
import { createOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/create-one-object-metadata.util';
import { deleteOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/delete-one-object-metadata.util';
import { updateOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/update-one-object-metadata.util';
-import { findCoreViewFields } from 'test/integration/metadata/suites/view-field/utils/find-core-view-fields.util';
-import { findCoreViews } from 'test/integration/metadata/suites/view/utils/find-core-views.util';
+import { findViewFields } from 'test/integration/metadata/suites/view-field/utils/find-view-fields.util';
+import { findViews } from 'test/integration/metadata/suites/view/utils/find-views.util';
import { isDefined } from 'twenty-shared/utils';
import { type FlatView } from 'src/engine/metadata-modules/flat-view/types/flat-view.type';
@@ -72,8 +72,8 @@ describe('View side effect on object creation', () => {
createdObjectMetadataId = createOneObject.id;
const {
- data: { getCoreViews: createdViews },
- } = await findCoreViews({
+ data: { getViews: createdViews },
+ } = await findViews({
objectMetadataId: createdObjectMetadataId,
expectToFail: false,
});
@@ -87,8 +87,8 @@ describe('View side effect on object creation', () => {
});
const {
- data: { getCoreViewFields: createdViewFields },
- } = await findCoreViewFields({
+ data: { getViewFields: createdViewFields },
+ } = await findViewFields({
viewId: firstView.id,
expectToFail: false,
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-field-group/upsert-fields-widget.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/view-field-group/upsert-fields-widget.integration-spec.ts
index 82674e7aa41..44c77b68d76 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-field-group/upsert-fields-widget.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-field-group/upsert-fields-widget.integration-spec.ts
@@ -3,9 +3,9 @@ import {
VIEW_FIELD_GROUP_GQL_FIELDS,
VIEW_GQL_FIELDS,
} from 'test/integration/constants/view-gql-fields.constants';
-import { findCoreViewFieldGroups } from 'test/integration/metadata/suites/view-field-group/utils/find-core-view-field-groups.util';
+import { findViewFieldGroups } from 'test/integration/metadata/suites/view-field-group/utils/find-view-field-groups.util';
import { upsertFieldsWidget } from 'test/integration/metadata/suites/view-field-group/utils/upsert-fields-widget.util';
-import { findCoreViewFields } from 'test/integration/metadata/suites/view-field/utils/find-core-view-fields.util';
+import { findViewFields } from 'test/integration/metadata/suites/view-field/utils/find-view-fields.util';
import { v4 as uuidv4 } from 'uuid';
type FieldsWidgetTestSetup = {
@@ -60,13 +60,13 @@ const fetchFieldsWidgetTestSetup = async (): Promise<FieldsWidgetTestSetup> => {
const labelIdentifierFieldMetadataId =
views[0]?.labelIdentifierFieldMetadataId ?? null;
- const { data } = await findCoreViewFields({
+ const { data } = await findViewFields({
viewId,
gqlFields: 'id fieldMetadataId position isVisible viewFieldGroupId',
expectToFail: false,
});
- const viewFields = data.getCoreViewFields;
+ const viewFields = data.getViewFields;
return { widgetId, viewId, labelIdentifierFieldMetadataId, viewFields };
};
@@ -109,13 +109,13 @@ describe('upsertFieldsWidget', () => {
expect(data.upsertFieldsWidget.id).toBeDefined();
expect(data.upsertFieldsWidget.name).toBeDefined();
- const { data: groupsData } = await findCoreViewFieldGroups({
+ const { data: groupsData } = await findViewFieldGroups({
viewId: testSetup.viewId,
gqlFields: 'id name',
expectToFail: false,
});
- const createdGroup = groupsData.getCoreViewFieldGroups.find(
+ const createdGroup = groupsData.getViewFieldGroups.find(
(g: { id: string }) => g.id === newGroupId,
);
@@ -198,13 +198,13 @@ describe('upsertFieldsWidget', () => {
expect(deletedGroup.length).toBe(0);
// Verify the kept group is still active
- const { data: keptGroupData } = await findCoreViewFieldGroups({
+ const { data: keptGroupData } = await findViewFieldGroups({
viewId: testSetup.viewId,
gqlFields: 'id',
expectToFail: false,
});
- const keptGroup = keptGroupData.getCoreViewFieldGroups.find(
+ const keptGroup = keptGroupData.getViewFieldGroups.find(
(g: { id: string }) => g.id === groupToKeepId,
);
@@ -243,13 +243,13 @@ describe('upsertFieldsWidget', () => {
});
// Verify the view field was updated
- const { data: fieldsData } = await findCoreViewFields({
+ const { data: fieldsData } = await findViewFields({
viewId: testSetup.viewId,
gqlFields: 'id isVisible position viewFieldGroupId',
expectToFail: false,
});
- const updatedField = fieldsData.getCoreViewFields.find(
+ const updatedField = fieldsData.getViewFields.find(
(f: { id: string }) => f.id === targetField.id,
);
@@ -310,13 +310,13 @@ describe('upsertFieldsWidget', () => {
});
// Verify group exists
- const { data: groupBeforeData } = await findCoreViewFieldGroups({
+ const { data: groupBeforeData } = await findViewFieldGroups({
viewId: testSetup.viewId,
gqlFields: 'id',
expectToFail: false,
});
- const groupBefore = groupBeforeData.getCoreViewFieldGroups.find(
+ const groupBefore = groupBeforeData.getViewFieldGroups.find(
(g: { id: string }) => g.id === groupId,
);
@@ -338,22 +338,22 @@ describe('upsertFieldsWidget', () => {
});
// Verify all groups are soft-deleted
- const { data: activeGroupsData } = await findCoreViewFieldGroups({
+ const { data: activeGroupsData } = await findViewFieldGroups({
viewId: testSetup.viewId,
gqlFields: 'id',
expectToFail: false,
});
- expect(activeGroupsData.getCoreViewFieldGroups.length).toBe(0);
+ expect(activeGroupsData.getViewFieldGroups.length).toBe(0);
// Verify the field's viewFieldGroupId is null
- const { data: updatedFieldData } = await findCoreViewFields({
+ const { data: updatedFieldData } = await findViewFields({
viewId: testSetup.viewId,
gqlFields: 'id viewFieldGroupId',
expectToFail: false,
});
- const updatedField = updatedFieldData.getCoreViewFields.find(
+ const updatedField = updatedFieldData.getViewFields.find(
(f: { id: string }) => f.id === targetField.id,
);
@@ -409,13 +409,13 @@ describe('upsertFieldsWidget', () => {
},
});
- const { data: updatedFieldData } = await findCoreViewFields({
+ const { data: updatedFieldData } = await findViewFields({
viewId: testSetup.viewId,
gqlFields: 'id isVisible position viewFieldGroupId',
expectToFail: false,
});
- const updatedField = updatedFieldData.getCoreViewFields.find(
+ const updatedField = updatedFieldData.getViewFields.find(
(f: { id: string }) => f.id === targetField.id,
);
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/create-many-core-view-field-groups-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/create-many-view-field-groups-query-factory.util.ts
similarity index 70%
rename from packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/create-many-core-view-field-groups-query-factory.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/create-many-view-field-groups-query-factory.util.ts
index 32ebf5861bc..5d53e0f856b 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/create-many-core-view-field-groups-query-factory.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/create-many-view-field-groups-query-factory.util.ts
@@ -3,7 +3,7 @@ import { VIEW_FIELD_GROUP_GQL_FIELDS } from 'test/integration/constants/view-gql
import { type CreateViewFieldGroupInput } from 'src/engine/metadata-modules/view-field-group/dtos/inputs/create-view-field-group.input';
-export const createManyCoreViewFieldGroupsQueryFactory = ({
+export const createManyViewFieldGroupsQueryFactory = ({
gqlFields = VIEW_FIELD_GROUP_GQL_FIELDS,
inputs,
}: {
@@ -11,8 +11,8 @@ export const createManyCoreViewFieldGroupsQueryFactory = ({
inputs: CreateViewFieldGroupInput[];
}) => ({
query: gql`
- mutation CreateManyCoreViewFieldGroups($inputs: [CreateViewFieldGroupInput!]!) {
- createManyCoreViewFieldGroups(inputs: $inputs) {
+ mutation CreateManyViewFieldGroups($inputs: [CreateViewFieldGroupInput!]!) {
+ createManyViewFieldGroups(inputs: $inputs) {
${gqlFields}
}
}
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/create-many-core-view-field-groups.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/create-many-view-field-groups.util.ts
similarity index 80%
rename from packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/create-many-core-view-field-groups.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/create-many-view-field-groups.util.ts
index 4d8ab7aed78..1b1a1941a42 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/create-many-core-view-field-groups.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/create-many-view-field-groups.util.ts
@@ -1,5 +1,5 @@
import { makeMetadataAPIRequest } from 'test/integration/metadata/suites/utils/make-metadata-api-request.util';
-import { createManyCoreViewFieldGroupsQueryFactory } from 'test/integration/metadata/suites/view-field-group/utils/create-many-core-view-field-groups-query-factory.util';
+import { createManyViewFieldGroupsQueryFactory } from 'test/integration/metadata/suites/view-field-group/utils/create-many-view-field-groups-query-factory.util';
import { type CommonResponseBody } from 'test/integration/metadata/types/common-response-body.type';
import { warnIfErrorButNotExpectedToFail } from 'test/integration/metadata/utils/warn-if-error-but-not-expected-to-fail.util';
import { warnIfNoErrorButExpectedToFail } from 'test/integration/metadata/utils/warn-if-no-error-but-expected-to-fail.util';
@@ -7,7 +7,7 @@ import { warnIfNoErrorButExpectedToFail } from 'test/integration/metadata/utils/
import { type CreateViewFieldGroupInput } from 'src/engine/metadata-modules/view-field-group/dtos/inputs/create-view-field-group.input';
import { type ViewFieldGroupDTO } from 'src/engine/metadata-modules/view-field-group/dtos/view-field-group.dto';
-export const createManyCoreViewFieldGroups = async ({
+export const createManyViewFieldGroups = async ({
inputs,
gqlFields,
expectToFail,
@@ -16,9 +16,9 @@ export const createManyCoreViewFieldGroups = async ({
gqlFields?: string;
expectToFail?: boolean;
}): CommonResponseBody<{
- createManyCoreViewFieldGroups: ViewFieldGroupDTO[];
+ createManyViewFieldGroups: ViewFieldGroupDTO[];
}> => {
- const graphqlOperation = createManyCoreViewFieldGroupsQueryFactory({
+ const graphqlOperation = createManyViewFieldGroupsQueryFactory({
inputs,
gqlFields,
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/create-one-core-view-field-group.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/create-one-view-field-group.util.ts
similarity index 81%
rename from packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/create-one-core-view-field-group.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/create-one-view-field-group.util.ts
index bfcad92adbd..ef0a02815fa 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/create-one-core-view-field-group.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/create-one-view-field-group.util.ts
@@ -1,5 +1,5 @@
import { makeMetadataAPIRequest } from 'test/integration/metadata/suites/utils/make-metadata-api-request.util';
-import { createCoreViewFieldGroupQueryFactory } from 'test/integration/metadata/suites/view-field-group/utils/create-core-view-field-group-query-factory.util';
+import { createViewFieldGroupQueryFactory } from 'test/integration/metadata/suites/view-field-group/utils/create-view-field-group-query-factory.util';
import { type CommonResponseBody } from 'test/integration/metadata/types/common-response-body.type';
import { type PerformMetadataQueryParams } from 'test/integration/metadata/types/perform-metadata-query.type';
import { warnIfErrorButNotExpectedToFail } from 'test/integration/metadata/utils/warn-if-error-but-not-expected-to-fail.util';
@@ -8,14 +8,14 @@ import { warnIfNoErrorButExpectedToFail } from 'test/integration/metadata/utils/
import { type CreateViewFieldGroupInput } from 'src/engine/metadata-modules/view-field-group/dtos/inputs/create-view-field-group.input';
import { type ViewFieldGroupDTO } from 'src/engine/metadata-modules/view-field-group/dtos/view-field-group.dto';
-export const createOneCoreViewFieldGroup = async ({
+export const createOneViewFieldGroup = async ({
input,
gqlFields,
expectToFail,
}: PerformMetadataQueryParams<CreateViewFieldGroupInput>): CommonResponseBody<{
- createCoreViewFieldGroup: ViewFieldGroupDTO;
+ createViewFieldGroup: ViewFieldGroupDTO;
}> => {
- const graphqlOperation = createCoreViewFieldGroupQueryFactory({
+ const graphqlOperation = createViewFieldGroupQueryFactory({
input,
gqlFields,
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/create-core-view-field-group-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/create-view-field-group-query-factory.util.ts
similarity index 76%
rename from packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/create-core-view-field-group-query-factory.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/create-view-field-group-query-factory.util.ts
index 88995fa945a..16bbc5c4402 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/create-core-view-field-group-query-factory.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/create-view-field-group-query-factory.util.ts
@@ -4,13 +4,13 @@ import { type PerformMetadataQueryParams } from 'test/integration/metadata/types
import { type CreateViewFieldGroupInput } from 'src/engine/metadata-modules/view-field-group/dtos/inputs/create-view-field-group.input';
-export const createCoreViewFieldGroupQueryFactory = ({
+export const createViewFieldGroupQueryFactory = ({
gqlFields = VIEW_FIELD_GROUP_GQL_FIELDS,
input,
}: PerformMetadataQueryParams<CreateViewFieldGroupInput>) => ({
query: gql`
- mutation CreateCoreViewFieldGroup($input: CreateViewFieldGroupInput!) {
- createCoreViewFieldGroup(input: $input) {
+ mutation CreateViewFieldGroup($input: CreateViewFieldGroupInput!) {
+ createViewFieldGroup(input: $input) {
${gqlFields}
}
}
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/delete-one-core-view-field-group.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/delete-one-view-field-group.util.ts
similarity index 81%
rename from packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/delete-one-core-view-field-group.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/delete-one-view-field-group.util.ts
index 614b6e81b7f..cfd3cec5284 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/delete-one-core-view-field-group.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/delete-one-view-field-group.util.ts
@@ -1,5 +1,5 @@
import { makeMetadataAPIRequest } from 'test/integration/metadata/suites/utils/make-metadata-api-request.util';
-import { deleteCoreViewFieldGroupQueryFactory } from 'test/integration/metadata/suites/view-field-group/utils/delete-core-view-field-group-query-factory.util';
+import { deleteViewFieldGroupQueryFactory } from 'test/integration/metadata/suites/view-field-group/utils/delete-view-field-group-query-factory.util';
import { type CommonResponseBody } from 'test/integration/metadata/types/common-response-body.type';
import { type PerformMetadataQueryParams } from 'test/integration/metadata/types/perform-metadata-query.type';
import { warnIfErrorButNotExpectedToFail } from 'test/integration/metadata/utils/warn-if-error-but-not-expected-to-fail.util';
@@ -8,14 +8,14 @@ import { warnIfNoErrorButExpectedToFail } from 'test/integration/metadata/utils/
import { type DeleteViewFieldGroupInput } from 'src/engine/metadata-modules/view-field-group/dtos/inputs/delete-view-field-group.input';
import { type ViewFieldGroupDTO } from 'src/engine/metadata-modules/view-field-group/dtos/view-field-group.dto';
-export const deleteOneCoreViewFieldGroup = async ({
+export const deleteOneViewFieldGroup = async ({
input,
gqlFields,
expectToFail,
}: PerformMetadataQueryParams<DeleteViewFieldGroupInput>): CommonResponseBody<{
- deleteCoreViewFieldGroup: ViewFieldGroupDTO;
+ deleteViewFieldGroup: ViewFieldGroupDTO;
}> => {
- const graphqlOperation = deleteCoreViewFieldGroupQueryFactory({
+ const graphqlOperation = deleteViewFieldGroupQueryFactory({
input,
gqlFields,
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/delete-core-view-field-group-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/delete-view-field-group-query-factory.util.ts
similarity index 76%
rename from packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/delete-core-view-field-group-query-factory.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/delete-view-field-group-query-factory.util.ts
index 5d46c2ee381..cd931ada61b 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/delete-core-view-field-group-query-factory.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/delete-view-field-group-query-factory.util.ts
@@ -4,13 +4,13 @@ import { type PerformMetadataQueryParams } from 'test/integration/metadata/types
import { type DeleteViewFieldGroupInput } from 'src/engine/metadata-modules/view-field-group/dtos/inputs/delete-view-field-group.input';
-export const deleteCoreViewFieldGroupQueryFactory = ({
+export const deleteViewFieldGroupQueryFactory = ({
gqlFields = VIEW_FIELD_GROUP_GQL_FIELDS,
input,
}: PerformMetadataQueryParams<DeleteViewFieldGroupInput>) => ({
query: gql`
- mutation DeleteCoreViewFieldGroup($input: DeleteViewFieldGroupInput!) {
- deleteCoreViewFieldGroup(input: $input) {
+ mutation DeleteViewFieldGroup($input: DeleteViewFieldGroupInput!) {
+ deleteViewFieldGroup(input: $input) {
${gqlFields}
}
}
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/destroy-one-core-view-field-group.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/destroy-one-view-field-group.util.ts
similarity index 81%
rename from packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/destroy-one-core-view-field-group.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/destroy-one-view-field-group.util.ts
index 4cc94fbf1bc..5e443a64bbe 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/destroy-one-core-view-field-group.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/destroy-one-view-field-group.util.ts
@@ -1,5 +1,5 @@
import { makeMetadataAPIRequest } from 'test/integration/metadata/suites/utils/make-metadata-api-request.util';
-import { destroyCoreViewFieldGroupQueryFactory } from 'test/integration/metadata/suites/view-field-group/utils/destroy-core-view-field-group-query-factory.util';
+import { destroyViewFieldGroupQueryFactory } from 'test/integration/metadata/suites/view-field-group/utils/destroy-view-field-group-query-factory.util';
import { type CommonResponseBody } from 'test/integration/metadata/types/common-response-body.type';
import { type PerformMetadataQueryParams } from 'test/integration/metadata/types/perform-metadata-query.type';
import { warnIfErrorButNotExpectedToFail } from 'test/integration/metadata/utils/warn-if-error-but-not-expected-to-fail.util';
@@ -8,14 +8,14 @@ import { warnIfNoErrorButExpectedToFail } from 'test/integration/metadata/utils/
import { type DestroyViewFieldGroupInput } from 'src/engine/metadata-modules/view-field-group/dtos/inputs/destroy-view-field-group.input';
import { type ViewFieldGroupDTO } from 'src/engine/metadata-modules/view-field-group/dtos/view-field-group.dto';
-export const destroyOneCoreViewFieldGroup = async ({
+export const destroyOneViewFieldGroup = async ({
input,
gqlFields,
expectToFail,
}: PerformMetadataQueryParams<DestroyViewFieldGroupInput>): CommonResponseBody<{
- destroyCoreViewFieldGroup: ViewFieldGroupDTO;
+ destroyViewFieldGroup: ViewFieldGroupDTO;
}> => {
- const graphqlOperation = destroyCoreViewFieldGroupQueryFactory({
+ const graphqlOperation = destroyViewFieldGroupQueryFactory({
input,
gqlFields,
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/destroy-core-view-field-group-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/destroy-view-field-group-query-factory.util.ts
similarity index 76%
rename from packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/destroy-core-view-field-group-query-factory.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/destroy-view-field-group-query-factory.util.ts
index ca6f1ed539a..1a96c02c505 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/destroy-core-view-field-group-query-factory.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/destroy-view-field-group-query-factory.util.ts
@@ -4,13 +4,13 @@ import { type PerformMetadataQueryParams } from 'test/integration/metadata/types
import { type DestroyViewFieldGroupInput } from 'src/engine/metadata-modules/view-field-group/dtos/inputs/destroy-view-field-group.input';
-export const destroyCoreViewFieldGroupQueryFactory = ({
+export const destroyViewFieldGroupQueryFactory = ({
gqlFields = VIEW_FIELD_GROUP_GQL_FIELDS,
input,
}: PerformMetadataQueryParams<DestroyViewFieldGroupInput>) => ({
query: gql`
- mutation DestroyCoreViewFieldGroup($input: DestroyViewFieldGroupInput!) {
- destroyCoreViewFieldGroup(input: $input) {
+ mutation DestroyViewFieldGroup($input: DestroyViewFieldGroupInput!) {
+ destroyViewFieldGroup(input: $input) {
${gqlFields}
}
}
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/find-core-view-field-groups-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/find-view-field-groups-query-factory.util.ts
similarity index 67%
rename from packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/find-core-view-field-groups-query-factory.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/find-view-field-groups-query-factory.util.ts
index 1ad234846d7..e11994ae0a2 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/find-core-view-field-groups-query-factory.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/find-view-field-groups-query-factory.util.ts
@@ -1,7 +1,7 @@
import gql from 'graphql-tag';
import { VIEW_FIELD_GROUP_GQL_FIELDS } from 'test/integration/constants/view-gql-fields.constants';
-export const findCoreViewFieldGroupsQueryFactory = ({
+export const findViewFieldGroupsQueryFactory = ({
gqlFields = VIEW_FIELD_GROUP_GQL_FIELDS,
viewId,
}: {
@@ -9,8 +9,8 @@ export const findCoreViewFieldGroupsQueryFactory = ({
viewId: string;
}) => ({
query: gql`
- query GetCoreViewFieldGroups($viewId: String!) {
- getCoreViewFieldGroups(viewId: $viewId) {
+ query GetViewFieldGroups($viewId: String!) {
+ getViewFieldGroups(viewId: $viewId) {
${gqlFields}
}
}
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/find-core-view-field-groups.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/find-view-field-groups.util.ts
similarity index 79%
rename from packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/find-core-view-field-groups.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/find-view-field-groups.util.ts
index 959aecb9af0..51e3903a608 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/find-core-view-field-groups.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/find-view-field-groups.util.ts
@@ -1,12 +1,12 @@
import { makeMetadataAPIRequest } from 'test/integration/metadata/suites/utils/make-metadata-api-request.util';
-import { findCoreViewFieldGroupsQueryFactory } from 'test/integration/metadata/suites/view-field-group/utils/find-core-view-field-groups-query-factory.util';
+import { findViewFieldGroupsQueryFactory } from 'test/integration/metadata/suites/view-field-group/utils/find-view-field-groups-query-factory.util';
import { type CommonResponseBody } from 'test/integration/metadata/types/common-response-body.type';
import { warnIfErrorButNotExpectedToFail } from 'test/integration/metadata/utils/warn-if-error-but-not-expected-to-fail.util';
import { warnIfNoErrorButExpectedToFail } from 'test/integration/metadata/utils/warn-if-no-error-but-expected-to-fail.util';
import { type ViewFieldGroupDTO } from 'src/engine/metadata-modules/view-field-group/dtos/view-field-group.dto';
-export const findCoreViewFieldGroups = async ({
+export const findViewFieldGroups = async ({
viewId,
gqlFields,
expectToFail,
@@ -15,9 +15,9 @@ export const findCoreViewFieldGroups = async ({
gqlFields?: string;
expectToFail?: boolean;
}): CommonResponseBody<{
- getCoreViewFieldGroups: ViewFieldGroupDTO[];
+ getViewFieldGroups: ViewFieldGroupDTO[];
}> => {
- const graphqlOperation = findCoreViewFieldGroupsQueryFactory({
+ const graphqlOperation = findViewFieldGroupsQueryFactory({
viewId,
gqlFields,
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/update-one-core-view-field-group.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/update-one-view-field-group.util.ts
similarity index 81%
rename from packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/update-one-core-view-field-group.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/update-one-view-field-group.util.ts
index 1a51db50518..350652dc0a3 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/update-one-core-view-field-group.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/update-one-view-field-group.util.ts
@@ -1,5 +1,5 @@
import { makeMetadataAPIRequest } from 'test/integration/metadata/suites/utils/make-metadata-api-request.util';
-import { updateCoreViewFieldGroupQueryFactory } from 'test/integration/metadata/suites/view-field-group/utils/update-core-view-field-group-query-factory.util';
+import { updateViewFieldGroupQueryFactory } from 'test/integration/metadata/suites/view-field-group/utils/update-view-field-group-query-factory.util';
import { type CommonResponseBody } from 'test/integration/metadata/types/common-response-body.type';
import { type PerformMetadataQueryParams } from 'test/integration/metadata/types/perform-metadata-query.type';
import { warnIfErrorButNotExpectedToFail } from 'test/integration/metadata/utils/warn-if-error-but-not-expected-to-fail.util';
@@ -8,14 +8,14 @@ import { warnIfNoErrorButExpectedToFail } from 'test/integration/metadata/utils/
import { type UpdateViewFieldGroupInput } from 'src/engine/metadata-modules/view-field-group/dtos/inputs/update-view-field-group.input';
import { type ViewFieldGroupDTO } from 'src/engine/metadata-modules/view-field-group/dtos/view-field-group.dto';
-export const updateOneCoreViewFieldGroup = async ({
+export const updateOneViewFieldGroup = async ({
input,
gqlFields,
expectToFail,
}: PerformMetadataQueryParams<UpdateViewFieldGroupInput>): CommonResponseBody<{
- updateCoreViewFieldGroup: ViewFieldGroupDTO;
+ updateViewFieldGroup: ViewFieldGroupDTO;
}> => {
- const graphqlOperation = updateCoreViewFieldGroupQueryFactory({
+ const graphqlOperation = updateViewFieldGroupQueryFactory({
input,
gqlFields,
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/update-core-view-field-group-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/update-view-field-group-query-factory.util.ts
similarity index 76%
rename from packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/update-core-view-field-group-query-factory.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/update-view-field-group-query-factory.util.ts
index bbb595c0086..52d3764136b 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/update-core-view-field-group-query-factory.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-field-group/utils/update-view-field-group-query-factory.util.ts
@@ -4,13 +4,13 @@ import { type PerformMetadataQueryParams } from 'test/integration/metadata/types
import { type UpdateViewFieldGroupInput } from 'src/engine/metadata-modules/view-field-group/dtos/inputs/update-view-field-group.input';
-export const updateCoreViewFieldGroupQueryFactory = ({
+export const updateViewFieldGroupQueryFactory = ({
gqlFields = VIEW_FIELD_GROUP_GQL_FIELDS,
input,
}: PerformMetadataQueryParams<UpdateViewFieldGroupInput>) => ({
query: gql`
- mutation UpdateCoreViewFieldGroup($input: UpdateViewFieldGroupInput!) {
- updateCoreViewFieldGroup(input: $input) {
+ mutation UpdateViewFieldGroup($input: UpdateViewFieldGroupInput!) {
+ updateViewFieldGroup(input: $input) {
${gqlFields}
}
}
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-field/utils/create-many-core-view-fields-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-field/utils/create-many-view-fields-query-factory.util.ts
similarity index 71%
rename from packages/twenty-server/test/integration/metadata/suites/view-field/utils/create-many-core-view-fields-query-factory.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-field/utils/create-many-view-fields-query-factory.util.ts
index 78c6cfe3fae..c237551890e 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-field/utils/create-many-core-view-fields-query-factory.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-field/utils/create-many-view-fields-query-factory.util.ts
@@ -3,7 +3,7 @@ import { VIEW_FIELD_GQL_FIELDS } from 'test/integration/constants/view-gql-field
import { type CreateViewFieldInput } from 'src/engine/metadata-modules/view-field/dtos/inputs/create-view-field.input';
-export const createManyCoreViewFieldsQueryFactory = ({
+export const createManyViewFieldsQueryFactory = ({
gqlFields = VIEW_FIELD_GQL_FIELDS,
inputs,
}: {
@@ -11,8 +11,8 @@ export const createManyCoreViewFieldsQueryFactory = ({
inputs: CreateViewFieldInput[];
}) => ({
query: gql`
- mutation CreateManyCoreViewFields($inputs: [CreateViewFieldInput!]!) {
- createManyCoreViewFields(inputs: $inputs) {
+ mutation CreateManyViewFields($inputs: [CreateViewFieldInput!]!) {
+ createManyViewFields(inputs: $inputs) {
${gqlFields}
}
}
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-field/utils/create-many-core-view-fields.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-field/utils/create-many-view-fields.util.ts
similarity index 81%
rename from packages/twenty-server/test/integration/metadata/suites/view-field/utils/create-many-core-view-fields.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-field/utils/create-many-view-fields.util.ts
index 01a4756a1de..1713f926476 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-field/utils/create-many-core-view-fields.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-field/utils/create-many-view-fields.util.ts
@@ -1,5 +1,5 @@
import { makeMetadataAPIRequest } from 'test/integration/metadata/suites/utils/make-metadata-api-request.util';
-import { createManyCoreViewFieldsQueryFactory } from 'test/integration/metadata/suites/view-field/utils/create-many-core-view-fields-query-factory.util';
+import { createManyViewFieldsQueryFactory } from 'test/integration/metadata/suites/view-field/utils/create-many-view-fields-query-factory.util';
import { type CommonResponseBody } from 'test/integration/metadata/types/common-response-body.type';
import { warnIfErrorButNotExpectedToFail } from 'test/integration/metadata/utils/warn-if-error-but-not-expected-to-fail.util';
import { warnIfNoErrorButExpectedToFail } from 'test/integration/metadata/utils/warn-if-no-error-but-expected-to-fail.util';
@@ -7,7 +7,7 @@ import { warnIfNoErrorButExpectedToFail } from 'test/integration/metadata/utils/
import { type CreateViewFieldInput } from 'src/engine/metadata-modules/view-field/dtos/inputs/create-view-field.input';
import { type ViewFieldEntity } from 'src/engine/metadata-modules/view-field/entities/view-field.entity';
-export const createManyCoreViewFields = async ({
+export const createManyViewFields = async ({
inputs,
gqlFields,
expectToFail,
@@ -16,9 +16,9 @@ export const createManyCoreViewFields = async ({
gqlFields?: string;
expectToFail?: boolean;
}): CommonResponseBody<{
- createManyCoreViewFields: ViewFieldEntity[];
+ createManyViewFields: ViewFieldEntity[];
}> => {
- const graphqlOperation = createManyCoreViewFieldsQueryFactory({
+ const graphqlOperation = createManyViewFieldsQueryFactory({
inputs,
gqlFields,
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-field/utils/create-one-core-view-field.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-field/utils/create-one-view-field.util.ts
similarity index 83%
rename from packages/twenty-server/test/integration/metadata/suites/view-field/utils/create-one-core-view-field.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-field/utils/create-one-view-field.util.ts
index e363bffa1ca..f51d9eb4ec6 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-field/utils/create-one-core-view-field.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-field/utils/create-one-view-field.util.ts
@@ -1,5 +1,5 @@
import { makeMetadataAPIRequest } from 'test/integration/metadata/suites/utils/make-metadata-api-request.util';
-import { createCoreViewFieldQueryFactory } from 'test/integration/metadata/suites/view-field/utils/create-core-view-field-query-factory.util';
+import { createViewFieldQueryFactory } from 'test/integration/metadata/suites/view-field/utils/create-view-field-query-factory.util';
import { type CommonResponseBody } from 'test/integration/metadata/types/common-response-body.type';
import { type PerformMetadataQueryParams } from 'test/integration/metadata/types/perform-metadata-query.type';
import { warnIfErrorButNotExpectedToFail } from 'test/integration/metadata/utils/warn-if-error-but-not-expected-to-fail.util';
@@ -8,14 +8,14 @@ import { warnIfNoErrorButExpectedToFail } from 'test/integration/metadata/utils/
import { type CreateViewFieldInput } from 'src/engine/metadata-modules/view-field/dtos/inputs/create-view-field.input';
import { type ViewFieldEntity } from 'src/engine/metadata-modules/view-field/entities/view-field.entity';
-export const createOneCoreViewField = async ({
+export const createOneViewField = async ({
input,
gqlFields,
expectToFail,
}: PerformMetadataQueryParams<CreateViewFieldInput>): CommonResponseBody<{
- createCoreViewField: ViewFieldEntity;
+ createViewField: ViewFieldEntity;
}> => {
- const graphqlOperation = createCoreViewFieldQueryFactory({
+ const graphqlOperation = createViewFieldQueryFactory({
input,
gqlFields,
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-field/utils/create-core-view-field-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-field/utils/create-view-field-query-factory.util.ts
similarity index 77%
rename from packages/twenty-server/test/integration/metadata/suites/view-field/utils/create-core-view-field-query-factory.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-field/utils/create-view-field-query-factory.util.ts
index 650a9ccaaff..a55a6dccd73 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-field/utils/create-core-view-field-query-factory.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-field/utils/create-view-field-query-factory.util.ts
@@ -4,13 +4,13 @@ import { type PerformMetadataQueryParams } from 'test/integration/metadata/types
import { type CreateViewFieldInput } from 'src/engine/metadata-modules/view-field/dtos/inputs/create-view-field.input';
-export const createCoreViewFieldQueryFactory = ({
+export const createViewFieldQueryFactory = ({
gqlFields = VIEW_FIELD_GQL_FIELDS,
input,
}: PerformMetadataQueryParams<CreateViewFieldInput>) => ({
query: gql`
- mutation CreateCoreViewField($input: CreateViewFieldInput!) {
- createCoreViewField(input: $input) {
+ mutation CreateViewField($input: CreateViewFieldInput!) {
+ createViewField(input: $input) {
${gqlFields}
}
}
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-field/utils/delete-one-core-view-field.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-field/utils/delete-one-view-field.util.ts
similarity index 83%
rename from packages/twenty-server/test/integration/metadata/suites/view-field/utils/delete-one-core-view-field.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-field/utils/delete-one-view-field.util.ts
index 05f758dc918..5522b20775f 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-field/utils/delete-one-core-view-field.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-field/utils/delete-one-view-field.util.ts
@@ -1,5 +1,5 @@
import { makeMetadataAPIRequest } from 'test/integration/metadata/suites/utils/make-metadata-api-request.util';
-import { deleteCoreViewFieldQueryFactory } from 'test/integration/metadata/suites/view-field/utils/delete-core-view-field-query-factory.util';
+import { deleteViewFieldQueryFactory } from 'test/integration/metadata/suites/view-field/utils/delete-view-field-query-factory.util';
import { type CommonResponseBody } from 'test/integration/metadata/types/common-response-body.type';
import { type PerformMetadataQueryParams } from 'test/integration/metadata/types/perform-metadata-query.type';
import { warnIfErrorButNotExpectedToFail } from 'test/integration/metadata/utils/warn-if-error-but-not-expected-to-fail.util';
@@ -8,14 +8,14 @@ import { warnIfNoErrorButExpectedToFail } from 'test/integration/metadata/utils/
import { type DeleteViewFieldInput } from 'src/engine/metadata-modules/view-field/dtos/inputs/delete-view-field.input';
import { type ViewFieldEntity } from 'src/engine/metadata-modules/view-field/entities/view-field.entity';
-export const deleteOneCoreViewField = async ({
+export const deleteOneViewField = async ({
input,
gqlFields,
expectToFail,
}: PerformMetadataQueryParams<DeleteViewFieldInput>): CommonResponseBody<{
- deleteCoreViewField: ViewFieldEntity;
+ deleteViewField: ViewFieldEntity;
}> => {
- const graphqlOperation = deleteCoreViewFieldQueryFactory({
+ const graphqlOperation = deleteViewFieldQueryFactory({
input,
gqlFields,
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-field/utils/delete-core-view-field-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-field/utils/delete-view-field-query-factory.util.ts
similarity index 77%
rename from packages/twenty-server/test/integration/metadata/suites/view-field/utils/delete-core-view-field-query-factory.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-field/utils/delete-view-field-query-factory.util.ts
index c50b32f8490..d15e5912fd2 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-field/utils/delete-core-view-field-query-factory.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-field/utils/delete-view-field-query-factory.util.ts
@@ -4,13 +4,13 @@ import { type PerformMetadataQueryParams } from 'test/integration/metadata/types
import { type DeleteViewFieldInput } from 'src/engine/metadata-modules/view-field/dtos/inputs/delete-view-field.input';
-export const deleteCoreViewFieldQueryFactory = ({
+export const deleteViewFieldQueryFactory = ({
gqlFields = VIEW_FIELD_GQL_FIELDS,
input,
}: PerformMetadataQueryParams<DeleteViewFieldInput>) => ({
query: gql`
- mutation DeleteCoreViewField($input: DeleteViewFieldInput!) {
- deleteCoreViewField(input: $input) {
+ mutation DeleteViewField($input: DeleteViewFieldInput!) {
+ deleteViewField(input: $input) {
${gqlFields}
}
}
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-field/utils/destroy-one-core-view-field.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-field/utils/destroy-one-view-field.util.ts
similarity index 83%
rename from packages/twenty-server/test/integration/metadata/suites/view-field/utils/destroy-one-core-view-field.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-field/utils/destroy-one-view-field.util.ts
index 6b2d7b4ea55..151152d2a5d 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-field/utils/destroy-one-core-view-field.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-field/utils/destroy-one-view-field.util.ts
@@ -1,5 +1,5 @@
import { makeMetadataAPIRequest } from 'test/integration/metadata/suites/utils/make-metadata-api-request.util';
-import { destroyCoreViewFieldQueryFactory } from 'test/integration/metadata/suites/view-field/utils/destroy-core-view-field-query-factory.util';
+import { destroyViewFieldQueryFactory } from 'test/integration/metadata/suites/view-field/utils/destroy-view-field-query-factory.util';
import { type CommonResponseBody } from 'test/integration/metadata/types/common-response-body.type';
import { type PerformMetadataQueryParams } from 'test/integration/metadata/types/perform-metadata-query.type';
import { warnIfErrorButNotExpectedToFail } from 'test/integration/metadata/utils/warn-if-error-but-not-expected-to-fail.util';
@@ -8,14 +8,14 @@ import { warnIfNoErrorButExpectedToFail } from 'test/integration/metadata/utils/
import { type DestroyViewFieldInput } from 'src/engine/metadata-modules/view-field/dtos/inputs/destroy-view-field.input';
import { type ViewFieldEntity } from 'src/engine/metadata-modules/view-field/entities/view-field.entity';
-export const destroyOneCoreViewField = async ({
+export const destroyOneViewField = async ({
input,
gqlFields,
expectToFail,
}: PerformMetadataQueryParams<DestroyViewFieldInput>): CommonResponseBody<{
- destroyCoreViewField: ViewFieldEntity;
+ destroyViewField: ViewFieldEntity;
}> => {
- const graphqlOperation = destroyCoreViewFieldQueryFactory({
+ const graphqlOperation = destroyViewFieldQueryFactory({
input,
gqlFields,
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-field/utils/destroy-core-view-field-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-field/utils/destroy-view-field-query-factory.util.ts
similarity index 77%
rename from packages/twenty-server/test/integration/metadata/suites/view-field/utils/destroy-core-view-field-query-factory.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-field/utils/destroy-view-field-query-factory.util.ts
index dbcbd742d64..effde0abdc5 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-field/utils/destroy-core-view-field-query-factory.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-field/utils/destroy-view-field-query-factory.util.ts
@@ -4,13 +4,13 @@ import { type PerformMetadataQueryParams } from 'test/integration/metadata/types
import { type DestroyViewFieldInput } from 'src/engine/metadata-modules/view-field/dtos/inputs/destroy-view-field.input';
-export const destroyCoreViewFieldQueryFactory = ({
+export const destroyViewFieldQueryFactory = ({
gqlFields = VIEW_FIELD_GQL_FIELDS,
input,
}: PerformMetadataQueryParams<DestroyViewFieldInput>) => ({
query: gql`
- mutation DestroyCoreViewField($input: DestroyViewFieldInput!) {
- destroyCoreViewField(input: $input) {
+ mutation DestroyViewField($input: DestroyViewFieldInput!) {
+ destroyViewField(input: $input) {
${gqlFields}
}
}
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-field/utils/find-core-view-fields-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-field/utils/find-view-fields-query-factory.util.ts
similarity index 69%
rename from packages/twenty-server/test/integration/metadata/suites/view-field/utils/find-core-view-fields-query-factory.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-field/utils/find-view-fields-query-factory.util.ts
index 58a4a0157e3..14719614d5a 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-field/utils/find-core-view-fields-query-factory.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-field/utils/find-view-fields-query-factory.util.ts
@@ -1,7 +1,7 @@
import gql from 'graphql-tag';
import { VIEW_FIELD_GQL_FIELDS } from 'test/integration/constants/view-gql-fields.constants';
-export const findCoreViewFieldsQueryFactory = ({
+export const findViewFieldsQueryFactory = ({
gqlFields = VIEW_FIELD_GQL_FIELDS,
viewId,
}: {
@@ -9,8 +9,8 @@ export const findCoreViewFieldsQueryFactory = ({
viewId: string;
}) => ({
query: gql`
- query GetCoreViewFields($viewId: String!) {
- getCoreViewFields(viewId: $viewId) {
+ query GetViewFields($viewId: String!) {
+ getViewFields(viewId: $viewId) {
${gqlFields}
}
}
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-field/utils/find-core-view-fields.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-field/utils/find-view-fields.util.ts
similarity index 81%
rename from packages/twenty-server/test/integration/metadata/suites/view-field/utils/find-core-view-fields.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-field/utils/find-view-fields.util.ts
index 6ec529762b6..4eaa47af96b 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-field/utils/find-core-view-fields.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-field/utils/find-view-fields.util.ts
@@ -1,12 +1,12 @@
import { makeMetadataAPIRequest } from 'test/integration/metadata/suites/utils/make-metadata-api-request.util';
-import { findCoreViewFieldsQueryFactory } from 'test/integration/metadata/suites/view-field/utils/find-core-view-fields-query-factory.util';
+import { findViewFieldsQueryFactory } from 'test/integration/metadata/suites/view-field/utils/find-view-fields-query-factory.util';
import { type CommonResponseBody } from 'test/integration/metadata/types/common-response-body.type';
import { warnIfErrorButNotExpectedToFail } from 'test/integration/metadata/utils/warn-if-error-but-not-expected-to-fail.util';
import { warnIfNoErrorButExpectedToFail } from 'test/integration/metadata/utils/warn-if-no-error-but-expected-to-fail.util';
import { type ViewFieldEntity } from 'src/engine/metadata-modules/view-field/entities/view-field.entity';
-export const findCoreViewFields = async ({
+export const findViewFields = async ({
viewId,
gqlFields,
expectToFail,
@@ -15,9 +15,9 @@ export const findCoreViewFields = async ({
gqlFields?: string;
expectToFail?: boolean;
}): CommonResponseBody<{
- getCoreViewFields: ViewFieldEntity[];
+ getViewFields: ViewFieldEntity[];
}> => {
- const graphqlOperation = findCoreViewFieldsQueryFactory({
+ const graphqlOperation = findViewFieldsQueryFactory({
viewId,
gqlFields,
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-field/utils/update-one-core-view-field.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-field/utils/update-one-view-field.util.ts
similarity index 83%
rename from packages/twenty-server/test/integration/metadata/suites/view-field/utils/update-one-core-view-field.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-field/utils/update-one-view-field.util.ts
index d448348a370..bcca7b4c7d7 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-field/utils/update-one-core-view-field.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-field/utils/update-one-view-field.util.ts
@@ -1,5 +1,5 @@
import { makeMetadataAPIRequest } from 'test/integration/metadata/suites/utils/make-metadata-api-request.util';
-import { updateCoreViewFieldQueryFactory } from 'test/integration/metadata/suites/view-field/utils/update-core-view-field-query-factory.util';
+import { updateViewFieldQueryFactory } from 'test/integration/metadata/suites/view-field/utils/update-view-field-query-factory.util';
import { type CommonResponseBody } from 'test/integration/metadata/types/common-response-body.type';
import { type PerformMetadataQueryParams } from 'test/integration/metadata/types/perform-metadata-query.type';
import { warnIfErrorButNotExpectedToFail } from 'test/integration/metadata/utils/warn-if-error-but-not-expected-to-fail.util';
@@ -8,14 +8,14 @@ import { warnIfNoErrorButExpectedToFail } from 'test/integration/metadata/utils/
import { type UpdateViewFieldInput } from 'src/engine/metadata-modules/view-field/dtos/inputs/update-view-field.input';
import { type ViewFieldEntity } from 'src/engine/metadata-modules/view-field/entities/view-field.entity';
-export const updateOneCoreViewField = async ({
+export const updateOneViewField = async ({
input,
gqlFields,
expectToFail,
}: PerformMetadataQueryParams<UpdateViewFieldInput>): CommonResponseBody<{
- updateCoreViewField: ViewFieldEntity;
+ updateViewField: ViewFieldEntity;
}> => {
- const graphqlOperation = updateCoreViewFieldQueryFactory({
+ const graphqlOperation = updateViewFieldQueryFactory({
input,
gqlFields,
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-field/utils/update-core-view-field-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-field/utils/update-view-field-query-factory.util.ts
similarity index 77%
rename from packages/twenty-server/test/integration/metadata/suites/view-field/utils/update-core-view-field-query-factory.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-field/utils/update-view-field-query-factory.util.ts
index b7e4164c66b..5cd4cc4c317 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-field/utils/update-core-view-field-query-factory.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-field/utils/update-view-field-query-factory.util.ts
@@ -4,13 +4,13 @@ import { type PerformMetadataQueryParams } from 'test/integration/metadata/types
import { type UpdateViewFieldInput } from 'src/engine/metadata-modules/view-field/dtos/inputs/update-view-field.input';
-export const updateCoreViewFieldQueryFactory = ({
+export const updateViewFieldQueryFactory = ({
gqlFields = VIEW_FIELD_GQL_FIELDS,
input,
}: PerformMetadataQueryParams<UpdateViewFieldInput>) => ({
query: gql`
- mutation UpdateCoreViewField($input: UpdateViewFieldInput!) {
- updateCoreViewField(input: $input) {
+ mutation UpdateViewField($input: UpdateViewFieldInput!) {
+ updateViewField(input: $input) {
${gqlFields}
}
}
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-filter-group/failing-view-filter-group-creation-circular-dependency.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/view-filter-group/failing-view-filter-group-creation-circular-dependency.integration-spec.ts
index a9dbc0b510f..f338cb575ba 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-filter-group/failing-view-filter-group-creation-circular-dependency.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-filter-group/failing-view-filter-group-creation-circular-dependency.integration-spec.ts
@@ -1,9 +1,9 @@
import { expectOneNotInternalServerErrorSnapshot } from 'test/integration/graphql/utils/expect-one-not-internal-server-error-snapshot.util';
import { findManyObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/find-many-object-metadata.util';
-import { createOneCoreViewFilterGroup } from 'test/integration/metadata/suites/view-filter-group/utils/create-one-core-view-filter-group.util';
-import { destroyOneCoreViewFilterGroup } from 'test/integration/metadata/suites/view-filter-group/utils/destroy-one-core-view-filter-group.util';
-import { createOneCoreView } from 'test/integration/metadata/suites/view/utils/create-one-core-view.util';
-import { destroyOneCoreView } from 'test/integration/metadata/suites/view/utils/destroy-one-core-view.util';
+import { createOneViewFilterGroup } from 'test/integration/metadata/suites/view-filter-group/utils/create-one-view-filter-group.util';
+import { destroyOneViewFilterGroup } from 'test/integration/metadata/suites/view-filter-group/utils/destroy-one-view-filter-group.util';
+import { createOneView } from 'test/integration/metadata/suites/view/utils/create-one-view.util';
+import { destroyOneView } from 'test/integration/metadata/suites/view/utils/destroy-one-view.util';
import { jestExpectToBeDefined } from 'test/utils/jest-expect-to-be-defined.util.test';
import { ViewFilterGroupLogicalOperator, ViewType } from 'twenty-shared/types';
import { v4 } from 'uuid';
@@ -34,7 +34,7 @@ describe('View Filter Group creation should fail with circular dependency', () =
jestExpectToBeDefined(companyObjectMetadata);
- const { data: viewData } = await createOneCoreView({
+ const { data: viewData } = await createOneView({
expectToFail: false,
input: {
name: 'Test View For Creation Circular Dependency',
@@ -44,11 +44,11 @@ describe('View Filter Group creation should fail with circular dependency', () =
},
});
- createdViewId = viewData?.createCoreView?.id;
+ createdViewId = viewData?.createView?.id;
jestExpectToBeDefined(createdViewId);
// Create parent view filter group for max depth test
- const { data: parentFilterGroupData } = await createOneCoreViewFilterGroup({
+ const { data: parentFilterGroupData } = await createOneViewFilterGroup({
expectToFail: false,
input: {
viewId: createdViewId,
@@ -57,11 +57,11 @@ describe('View Filter Group creation should fail with circular dependency', () =
});
parentViewFilterGroupId =
- parentFilterGroupData?.createCoreViewFilterGroup?.id;
+ parentFilterGroupData?.createViewFilterGroup?.id;
jestExpectToBeDefined(parentViewFilterGroupId);
// Create child view filter group for max depth test
- const { data: childFilterGroupData } = await createOneCoreViewFilterGroup({
+ const { data: childFilterGroupData } = await createOneViewFilterGroup({
expectToFail: false,
input: {
viewId: createdViewId,
@@ -71,27 +71,27 @@ describe('View Filter Group creation should fail with circular dependency', () =
});
childViewFilterGroupId =
- childFilterGroupData?.createCoreViewFilterGroup?.id;
+ childFilterGroupData?.createViewFilterGroup?.id;
jestExpectToBeDefined(childViewFilterGroupId);
});
afterAll(async () => {
if (childViewFilterGroupId) {
- await destroyOneCoreViewFilterGroup({
+ await destroyOneViewFilterGroup({
expectToFail: false,
id: childViewFilterGroupId,
});
}
if (parentViewFilterGroupId) {
- await destroyOneCoreViewFilterGroup({
+ await destroyOneViewFilterGroup({
expectToFail: false,
id: parentViewFilterGroupId,
});
}
if (createdViewId) {
- await destroyOneCoreView({
+ await destroyOneView({
expectToFail: false,
viewId: createdViewId,
});
@@ -101,7 +101,7 @@ describe('View Filter Group creation should fail with circular dependency', () =
it('when id equals parentViewFilterGroupId (self-reference)', async () => {
const selfReferenceId = v4();
- const { errors } = await createOneCoreViewFilterGroup({
+ const { errors } = await createOneViewFilterGroup({
expectToFail: true,
input: {
id: selfReferenceId,
@@ -118,7 +118,7 @@ describe('View Filter Group creation should fail with circular dependency', () =
it('when max depth is exceeded during creation', async () => {
// Trying to create a grandchild (depth 3) when max depth is 2
- const { errors } = await createOneCoreViewFilterGroup({
+ const { errors } = await createOneViewFilterGroup({
expectToFail: true,
input: {
viewId: createdViewId,
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-filter-group/failing-view-filter-group-creation.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/view-filter-group/failing-view-filter-group-creation.integration-spec.ts
index 481f5119033..b6045ead13c 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-filter-group/failing-view-filter-group-creation.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-filter-group/failing-view-filter-group-creation.integration-spec.ts
@@ -1,8 +1,8 @@
import { expectOneNotInternalServerErrorSnapshot } from 'test/integration/graphql/utils/expect-one-not-internal-server-error-snapshot.util';
import { findManyObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/find-many-object-metadata.util';
-import { createOneCoreViewFilterGroup } from 'test/integration/metadata/suites/view-filter-group/utils/create-one-core-view-filter-group.util';
-import { createOneCoreView } from 'test/integration/metadata/suites/view/utils/create-one-core-view.util';
-import { destroyOneCoreView } from 'test/integration/metadata/suites/view/utils/destroy-one-core-view.util';
+import { createOneViewFilterGroup } from 'test/integration/metadata/suites/view-filter-group/utils/create-one-view-filter-group.util';
+import { createOneView } from 'test/integration/metadata/suites/view/utils/create-one-view.util';
+import { destroyOneView } from 'test/integration/metadata/suites/view/utils/destroy-one-view.util';
import { jestExpectToBeDefined } from 'test/utils/jest-expect-to-be-defined.util.test';
import {
eachTestingContextFilter,
@@ -86,7 +86,7 @@ describe('View Filter Group creation should fail', () => {
jestExpectToBeDefined(companyObjectMetadata);
- const { data: viewData } = await createOneCoreView({
+ const { data: viewData } = await createOneView({
expectToFail: false,
input: {
name: 'Test View For Failing Filter Group Creation',
@@ -96,13 +96,13 @@ describe('View Filter Group creation should fail', () => {
},
});
- createdViewId = viewData?.createCoreView?.id;
+ createdViewId = viewData?.createView?.id;
jestExpectToBeDefined(createdViewId);
});
afterAll(async () => {
if (createdViewId) {
- await destroyOneCoreView({
+ await destroyOneView({
expectToFail: false,
viewId: createdViewId,
});
@@ -112,7 +112,7 @@ describe('View Filter Group creation should fail', () => {
it.each(eachTestingContextFilter(failingViewFilterGroupCreationTestCases))(
'$title',
async ({ context }) => {
- const { errors } = await createOneCoreViewFilterGroup({
+ const { errors } = await createOneViewFilterGroup({
expectToFail: true,
input: context.input({ createdViewId }),
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-filter-group/failing-view-filter-group-deletion.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/view-filter-group/failing-view-filter-group-deletion.integration-spec.ts
index 505e7491fb9..d9ed626f347 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-filter-group/failing-view-filter-group-deletion.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-filter-group/failing-view-filter-group-deletion.integration-spec.ts
@@ -1,5 +1,5 @@
import { expectOneNotInternalServerErrorSnapshot } from 'test/integration/graphql/utils/expect-one-not-internal-server-error-snapshot.util';
-import { deleteOneCoreViewFilterGroup } from 'test/integration/metadata/suites/view-filter-group/utils/delete-one-core-view-filter-group.util';
+import { deleteOneViewFilterGroup } from 'test/integration/metadata/suites/view-filter-group/utils/delete-one-view-filter-group.util';
import { v4 } from 'uuid';
import {
eachTestingContextFilter,
@@ -24,7 +24,7 @@ describe('View Filter Group deletion should fail', () => {
it.each(eachTestingContextFilter(failingViewFilterGroupDeletionTestCases))(
'$title',
async ({ context }) => {
- const { errors } = await deleteOneCoreViewFilterGroup({
+ const { errors } = await deleteOneViewFilterGroup({
id: context.id,
expectToFail: true,
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-filter-group/failing-view-filter-group-destroy.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/view-filter-group/failing-view-filter-group-destroy.integration-spec.ts
index 6c93cefb19e..f23c2a7b5fc 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-filter-group/failing-view-filter-group-destroy.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-filter-group/failing-view-filter-group-destroy.integration-spec.ts
@@ -1,5 +1,5 @@
import { expectOneNotInternalServerErrorSnapshot } from 'test/integration/graphql/utils/expect-one-not-internal-server-error-snapshot.util';
-import { destroyOneCoreViewFilterGroup } from 'test/integration/metadata/suites/view-filter-group/utils/destroy-one-core-view-filter-group.util';
+import { destroyOneViewFilterGroup } from 'test/integration/metadata/suites/view-filter-group/utils/destroy-one-view-filter-group.util';
import { v4 } from 'uuid';
import {
eachTestingContextFilter,
@@ -24,7 +24,7 @@ describe('View Filter Group destroy should fail', () => {
it.each(eachTestingContextFilter(failingViewFilterGroupDestroyTestCases))(
'$title',
async ({ context }) => {
- const { errors } = await destroyOneCoreViewFilterGroup({
+ const { errors } = await destroyOneViewFilterGroup({
id: context.id,
expectToFail: true,
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-filter-group/failing-view-filter-group-update-circular-dependency.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/view-filter-group/failing-view-filter-group-update-circular-dependency.integration-spec.ts
index 2af6e21d29a..064ed51085a 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-filter-group/failing-view-filter-group-update-circular-dependency.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-filter-group/failing-view-filter-group-update-circular-dependency.integration-spec.ts
@@ -1,10 +1,10 @@
import { expectOneNotInternalServerErrorSnapshot } from 'test/integration/graphql/utils/expect-one-not-internal-server-error-snapshot.util';
import { findManyObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/find-many-object-metadata.util';
-import { createOneCoreViewFilterGroup } from 'test/integration/metadata/suites/view-filter-group/utils/create-one-core-view-filter-group.util';
-import { destroyOneCoreViewFilterGroup } from 'test/integration/metadata/suites/view-filter-group/utils/destroy-one-core-view-filter-group.util';
-import { updateOneCoreViewFilterGroup } from 'test/integration/metadata/suites/view-filter-group/utils/update-one-core-view-filter-group.util';
-import { createOneCoreView } from 'test/integration/metadata/suites/view/utils/create-one-core-view.util';
-import { destroyOneCoreView } from 'test/integration/metadata/suites/view/utils/destroy-one-core-view.util';
+import { createOneViewFilterGroup } from 'test/integration/metadata/suites/view-filter-group/utils/create-one-view-filter-group.util';
+import { destroyOneViewFilterGroup } from 'test/integration/metadata/suites/view-filter-group/utils/destroy-one-view-filter-group.util';
+import { updateOneViewFilterGroup } from 'test/integration/metadata/suites/view-filter-group/utils/update-one-view-filter-group.util';
+import { createOneView } from 'test/integration/metadata/suites/view/utils/create-one-view.util';
+import { destroyOneView } from 'test/integration/metadata/suites/view/utils/destroy-one-view.util';
import { jestExpectToBeDefined } from 'test/utils/jest-expect-to-be-defined.util.test';
import { ViewFilterGroupLogicalOperator, ViewType } from 'twenty-shared/types';
@@ -35,7 +35,7 @@ describe('View Filter Group update should fail with circular dependency', () =>
jestExpectToBeDefined(companyObjectMetadata);
- const { data: viewData } = await createOneCoreView({
+ const { data: viewData } = await createOneView({
expectToFail: false,
input: {
name: 'Test View For Update Circular Dependency',
@@ -45,11 +45,11 @@ describe('View Filter Group update should fail with circular dependency', () =>
},
});
- createdViewId = viewData?.createCoreView?.id;
+ createdViewId = viewData?.createView?.id;
jestExpectToBeDefined(createdViewId);
// Create a standalone view filter group for self-reference test
- const { data: filterGroupData } = await createOneCoreViewFilterGroup({
+ const { data: filterGroupData } = await createOneViewFilterGroup({
expectToFail: false,
input: {
viewId: createdViewId,
@@ -57,11 +57,11 @@ describe('View Filter Group update should fail with circular dependency', () =>
},
});
- viewFilterGroupId = filterGroupData?.createCoreViewFilterGroup?.id;
+ viewFilterGroupId = filterGroupData?.createViewFilterGroup?.id;
jestExpectToBeDefined(viewFilterGroupId);
// Create parent view filter group for chain test
- const { data: parentFilterGroupData } = await createOneCoreViewFilterGroup({
+ const { data: parentFilterGroupData } = await createOneViewFilterGroup({
expectToFail: false,
input: {
viewId: createdViewId,
@@ -70,11 +70,11 @@ describe('View Filter Group update should fail with circular dependency', () =>
});
parentViewFilterGroupId =
- parentFilterGroupData?.createCoreViewFilterGroup?.id;
+ parentFilterGroupData?.createViewFilterGroup?.id;
jestExpectToBeDefined(parentViewFilterGroupId);
// Create child view filter group with parent reference for chain test
- const { data: childFilterGroupData } = await createOneCoreViewFilterGroup({
+ const { data: childFilterGroupData } = await createOneViewFilterGroup({
expectToFail: false,
input: {
viewId: createdViewId,
@@ -84,35 +84,35 @@ describe('View Filter Group update should fail with circular dependency', () =>
});
childViewFilterGroupId =
- childFilterGroupData?.createCoreViewFilterGroup?.id;
+ childFilterGroupData?.createViewFilterGroup?.id;
jestExpectToBeDefined(childViewFilterGroupId);
});
afterAll(async () => {
// Delete child first (due to foreign key constraint)
if (childViewFilterGroupId) {
- await destroyOneCoreViewFilterGroup({
+ await destroyOneViewFilterGroup({
expectToFail: false,
id: childViewFilterGroupId,
});
}
if (parentViewFilterGroupId) {
- await destroyOneCoreViewFilterGroup({
+ await destroyOneViewFilterGroup({
expectToFail: false,
id: parentViewFilterGroupId,
});
}
if (viewFilterGroupId) {
- await destroyOneCoreViewFilterGroup({
+ await destroyOneViewFilterGroup({
expectToFail: false,
id: viewFilterGroupId,
});
}
if (createdViewId) {
- await destroyOneCoreView({
+ await destroyOneView({
expectToFail: false,
viewId: createdViewId,
});
@@ -120,7 +120,7 @@ describe('View Filter Group update should fail with circular dependency', () =>
});
it('when parentViewFilterGroupId equals id (self-reference)', async () => {
- const { errors } = await updateOneCoreViewFilterGroup({
+ const { errors } = await updateOneViewFilterGroup({
id: viewFilterGroupId,
expectToFail: true,
input: {
@@ -135,7 +135,7 @@ describe('View Filter Group update should fail with circular dependency', () =>
it('when update creates a circular dependency chain', async () => {
// Try to set parent's parent to be the child (parent → child, then child → parent = cycle)
- const { errors } = await updateOneCoreViewFilterGroup({
+ const { errors } = await updateOneViewFilterGroup({
id: parentViewFilterGroupId,
expectToFail: true,
input: {
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-filter-group/failing-view-filter-group-update.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/view-filter-group/failing-view-filter-group-update.integration-spec.ts
index 5cf33f90c9e..4fea68734f2 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-filter-group/failing-view-filter-group-update.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-filter-group/failing-view-filter-group-update.integration-spec.ts
@@ -1,10 +1,10 @@
import { expectOneNotInternalServerErrorSnapshot } from 'test/integration/graphql/utils/expect-one-not-internal-server-error-snapshot.util';
import { findManyObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/find-many-object-metadata.util';
-import { createOneCoreViewFilterGroup } from 'test/integration/metadata/suites/view-filter-group/utils/create-one-core-view-filter-group.util';
-import { destroyOneCoreViewFilterGroup } from 'test/integration/metadata/suites/view-filter-group/utils/destroy-one-core-view-filter-group.util';
-import { updateOneCoreViewFilterGroup } from 'test/integration/metadata/suites/view-filter-group/utils/update-one-core-view-filter-group.util';
-import { createOneCoreView } from 'test/integration/metadata/suites/view/utils/create-one-core-view.util';
-import { destroyOneCoreView } from 'test/integration/metadata/suites/view/utils/destroy-one-core-view.util';
+import { createOneViewFilterGroup } from 'test/integration/metadata/suites/view-filter-group/utils/create-one-view-filter-group.util';
+import { destroyOneViewFilterGroup } from 'test/integration/metadata/suites/view-filter-group/utils/destroy-one-view-filter-group.util';
+import { updateOneViewFilterGroup } from 'test/integration/metadata/suites/view-filter-group/utils/update-one-view-filter-group.util';
+import { createOneView } from 'test/integration/metadata/suites/view/utils/create-one-view.util';
+import { destroyOneView } from 'test/integration/metadata/suites/view/utils/destroy-one-view.util';
import { jestExpectToBeDefined } from 'test/utils/jest-expect-to-be-defined.util.test';
import {
eachTestingContextFilter,
@@ -67,7 +67,7 @@ describe('View Filter Group update should fail', () => {
jestExpectToBeDefined(companyObjectMetadata);
- const { data: viewData } = await createOneCoreView({
+ const { data: viewData } = await createOneView({
expectToFail: false,
input: {
name: 'Test View For Failing Filter Group Update',
@@ -77,10 +77,10 @@ describe('View Filter Group update should fail', () => {
},
});
- createdViewId = viewData?.createCoreView?.id;
+ createdViewId = viewData?.createView?.id;
jestExpectToBeDefined(createdViewId);
- const { data: filterGroupData } = await createOneCoreViewFilterGroup({
+ const { data: filterGroupData } = await createOneViewFilterGroup({
expectToFail: false,
input: {
viewId: createdViewId,
@@ -88,20 +88,20 @@ describe('View Filter Group update should fail', () => {
},
});
- createdViewFilterGroupId = filterGroupData?.createCoreViewFilterGroup?.id;
+ createdViewFilterGroupId = filterGroupData?.createViewFilterGroup?.id;
jestExpectToBeDefined(createdViewFilterGroupId);
});
afterAll(async () => {
if (createdViewFilterGroupId) {
- await destroyOneCoreViewFilterGroup({
+ await destroyOneViewFilterGroup({
expectToFail: false,
id: createdViewFilterGroupId,
});
}
if (createdViewId) {
- await destroyOneCoreView({
+ await destroyOneView({
expectToFail: false,
viewId: createdViewId,
});
@@ -114,7 +114,7 @@ describe('View Filter Group update should fail', () => {
const id =
context.id === 'USE_CREATED_ID' ? createdViewFilterGroupId : context.id;
- const { errors } = await updateOneCoreViewFilterGroup({
+ const { errors } = await updateOneViewFilterGroup({
id,
expectToFail: true,
input: context.input,
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-filter-group/successful-view-filter-group-creation.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/view-filter-group/successful-view-filter-group-creation.integration-spec.ts
index 116cd45255b..cf091aa8fb3 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-filter-group/successful-view-filter-group-creation.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-filter-group/successful-view-filter-group-creation.integration-spec.ts
@@ -1,8 +1,8 @@
import { findManyObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/find-many-object-metadata.util';
-import { createOneCoreViewFilterGroup } from 'test/integration/metadata/suites/view-filter-group/utils/create-one-core-view-filter-group.util';
-import { destroyOneCoreViewFilterGroup } from 'test/integration/metadata/suites/view-filter-group/utils/destroy-one-core-view-filter-group.util';
-import { createOneCoreView } from 'test/integration/metadata/suites/view/utils/create-one-core-view.util';
-import { destroyOneCoreView } from 'test/integration/metadata/suites/view/utils/destroy-one-core-view.util';
+import { createOneViewFilterGroup } from 'test/integration/metadata/suites/view-filter-group/utils/create-one-view-filter-group.util';
+import { destroyOneViewFilterGroup } from 'test/integration/metadata/suites/view-filter-group/utils/destroy-one-view-filter-group.util';
+import { createOneView } from 'test/integration/metadata/suites/view/utils/create-one-view.util';
+import { destroyOneView } from 'test/integration/metadata/suites/view/utils/destroy-one-view.util';
import { jestExpectToBeDefined } from 'test/utils/jest-expect-to-be-defined.util.test';
import { ViewFilterGroupLogicalOperator, ViewType } from 'twenty-shared/types';
@@ -33,7 +33,7 @@ describe('View Filter Group creation should succeed', () => {
jestExpectToBeDefined(companyObjectMetadata);
companyObjectMetadataId = companyObjectMetadata.id;
- const { data: viewData } = await createOneCoreView({
+ const { data: viewData } = await createOneView({
expectToFail: false,
input: {
name: 'Test View For Filter Group',
@@ -43,12 +43,12 @@ describe('View Filter Group creation should succeed', () => {
},
});
- createdViewId = viewData?.createCoreView?.id;
+ createdViewId = viewData?.createView?.id;
});
afterAll(async () => {
if (createdViewId) {
- await destroyOneCoreView({
+ await destroyOneView({
expectToFail: false,
viewId: createdViewId,
});
@@ -57,7 +57,7 @@ describe('View Filter Group creation should succeed', () => {
afterEach(async () => {
if (createdViewFilterGroupId) {
- await destroyOneCoreViewFilterGroup({
+ await destroyOneViewFilterGroup({
expectToFail: false,
id: createdViewFilterGroupId,
});
@@ -66,16 +66,16 @@ describe('View Filter Group creation should succeed', () => {
});
it('should create a view filter group with minimal input', async () => {
- const { data } = await createOneCoreViewFilterGroup({
+ const { data } = await createOneViewFilterGroup({
expectToFail: false,
input: {
viewId: createdViewId,
},
});
- createdViewFilterGroupId = data?.createCoreViewFilterGroup?.id;
+ createdViewFilterGroupId = data?.createViewFilterGroup?.id;
- expect(data.createCoreViewFilterGroup).toMatchObject({
+ expect(data.createViewFilterGroup).toMatchObject({
id: expect.any(String),
viewId: createdViewId,
logicalOperator: ViewFilterGroupLogicalOperator.AND,
@@ -84,7 +84,7 @@ describe('View Filter Group creation should succeed', () => {
});
it('should create a view filter group with all fields', async () => {
- const { data } = await createOneCoreViewFilterGroup({
+ const { data } = await createOneViewFilterGroup({
expectToFail: false,
input: {
viewId: createdViewId,
@@ -93,9 +93,9 @@ describe('View Filter Group creation should succeed', () => {
},
});
- createdViewFilterGroupId = data?.createCoreViewFilterGroup?.id;
+ createdViewFilterGroupId = data?.createViewFilterGroup?.id;
- expect(data.createCoreViewFilterGroup).toMatchObject({
+ expect(data.createViewFilterGroup).toMatchObject({
id: expect.any(String),
viewId: createdViewId,
logicalOperator: ViewFilterGroupLogicalOperator.OR,
@@ -105,7 +105,7 @@ describe('View Filter Group creation should succeed', () => {
it('should create a nested view filter group', async () => {
// Create parent filter group
- const { data: parentData } = await createOneCoreViewFilterGroup({
+ const { data: parentData } = await createOneViewFilterGroup({
expectToFail: false,
input: {
viewId: createdViewId,
@@ -113,10 +113,10 @@ describe('View Filter Group creation should succeed', () => {
},
});
- const parentViewFilterGroupId = parentData?.createCoreViewFilterGroup?.id;
+ const parentViewFilterGroupId = parentData?.createViewFilterGroup?.id;
// Create child filter group
- const { data: childData } = await createOneCoreViewFilterGroup({
+ const { data: childData } = await createOneViewFilterGroup({
expectToFail: false,
input: {
viewId: createdViewId,
@@ -125,9 +125,9 @@ describe('View Filter Group creation should succeed', () => {
},
});
- createdViewFilterGroupId = childData?.createCoreViewFilterGroup?.id;
+ createdViewFilterGroupId = childData?.createViewFilterGroup?.id;
- expect(childData.createCoreViewFilterGroup).toMatchObject({
+ expect(childData.createViewFilterGroup).toMatchObject({
id: expect.any(String),
viewId: createdViewId,
logicalOperator: ViewFilterGroupLogicalOperator.OR,
@@ -135,7 +135,7 @@ describe('View Filter Group creation should succeed', () => {
});
// Clean up parent (this CASCADE-deletes the child too)
- await destroyOneCoreViewFilterGroup({
+ await destroyOneViewFilterGroup({
expectToFail: false,
id: parentViewFilterGroupId,
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-filter-group/successful-view-filter-group-deletion.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/view-filter-group/successful-view-filter-group-deletion.integration-spec.ts
index a270b447945..527f566fa07 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-filter-group/successful-view-filter-group-deletion.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-filter-group/successful-view-filter-group-deletion.integration-spec.ts
@@ -1,9 +1,9 @@
import { findManyObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/find-many-object-metadata.util';
-import { createOneCoreViewFilterGroup } from 'test/integration/metadata/suites/view-filter-group/utils/create-one-core-view-filter-group.util';
-import { deleteOneCoreViewFilterGroup } from 'test/integration/metadata/suites/view-filter-group/utils/delete-one-core-view-filter-group.util';
-import { destroyOneCoreViewFilterGroup } from 'test/integration/metadata/suites/view-filter-group/utils/destroy-one-core-view-filter-group.util';
-import { createOneCoreView } from 'test/integration/metadata/suites/view/utils/create-one-core-view.util';
-import { destroyOneCoreView } from 'test/integration/metadata/suites/view/utils/destroy-one-core-view.util';
+import { createOneViewFilterGroup } from 'test/integration/metadata/suites/view-filter-group/utils/create-one-view-filter-group.util';
+import { deleteOneViewFilterGroup } from 'test/integration/metadata/suites/view-filter-group/utils/delete-one-view-filter-group.util';
+import { destroyOneViewFilterGroup } from 'test/integration/metadata/suites/view-filter-group/utils/destroy-one-view-filter-group.util';
+import { createOneView } from 'test/integration/metadata/suites/view/utils/create-one-view.util';
+import { destroyOneView } from 'test/integration/metadata/suites/view/utils/destroy-one-view.util';
import { jestExpectToBeDefined } from 'test/utils/jest-expect-to-be-defined.util.test';
import { ViewFilterGroupLogicalOperator, ViewType } from 'twenty-shared/types';
@@ -31,7 +31,7 @@ describe('View Filter Group deletion should succeed', () => {
jestExpectToBeDefined(companyObjectMetadata);
- const { data: viewData } = await createOneCoreView({
+ const { data: viewData } = await createOneView({
expectToFail: false,
input: {
name: 'Test View For Filter Group Deletion',
@@ -41,12 +41,12 @@ describe('View Filter Group deletion should succeed', () => {
},
});
- createdViewId = viewData?.createCoreView?.id;
+ createdViewId = viewData?.createView?.id;
});
afterAll(async () => {
if (createdViewId) {
- await destroyOneCoreView({
+ await destroyOneView({
expectToFail: false,
viewId: createdViewId,
});
@@ -54,7 +54,7 @@ describe('View Filter Group deletion should succeed', () => {
});
it('should soft delete a view filter group', async () => {
- const { data: createData } = await createOneCoreViewFilterGroup({
+ const { data: createData } = await createOneViewFilterGroup({
expectToFail: false,
input: {
viewId: createdViewId,
@@ -62,17 +62,17 @@ describe('View Filter Group deletion should succeed', () => {
},
});
- const createdViewFilterGroupId = createData?.createCoreViewFilterGroup?.id;
+ const createdViewFilterGroupId = createData?.createViewFilterGroup?.id;
- const { data: deleteData } = await deleteOneCoreViewFilterGroup({
+ const { data: deleteData } = await deleteOneViewFilterGroup({
id: createdViewFilterGroupId,
expectToFail: false,
});
- expect(deleteData.deleteCoreViewFilterGroup).toBe(true);
+ expect(deleteData.deleteViewFilterGroup).toBe(true);
// Clean up by destroying
- await destroyOneCoreViewFilterGroup({
+ await destroyOneViewFilterGroup({
expectToFail: false,
id: createdViewFilterGroupId,
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-filter-group/successful-view-filter-group-destroy.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/view-filter-group/successful-view-filter-group-destroy.integration-spec.ts
index 9aa60241a3b..24fac41ad20 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-filter-group/successful-view-filter-group-destroy.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-filter-group/successful-view-filter-group-destroy.integration-spec.ts
@@ -1,8 +1,8 @@
import { findManyObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/find-many-object-metadata.util';
-import { createOneCoreViewFilterGroup } from 'test/integration/metadata/suites/view-filter-group/utils/create-one-core-view-filter-group.util';
-import { destroyOneCoreViewFilterGroup } from 'test/integration/metadata/suites/view-filter-group/utils/destroy-one-core-view-filter-group.util';
-import { createOneCoreView } from 'test/integration/metadata/suites/view/utils/create-one-core-view.util';
-import { destroyOneCoreView } from 'test/integration/metadata/suites/view/utils/destroy-one-core-view.util';
+import { createOneViewFilterGroup } from 'test/integration/metadata/suites/view-filter-group/utils/create-one-view-filter-group.util';
+import { destroyOneViewFilterGroup } from 'test/integration/metadata/suites/view-filter-group/utils/destroy-one-view-filter-group.util';
+import { createOneView } from 'test/integration/metadata/suites/view/utils/create-one-view.util';
+import { destroyOneView } from 'test/integration/metadata/suites/view/utils/destroy-one-view.util';
import { jestExpectToBeDefined } from 'test/utils/jest-expect-to-be-defined.util.test';
import { ViewFilterGroupLogicalOperator, ViewType } from 'twenty-shared/types';
@@ -30,7 +30,7 @@ describe('View Filter Group destroy should succeed', () => {
jestExpectToBeDefined(companyObjectMetadata);
- const { data: viewData } = await createOneCoreView({
+ const { data: viewData } = await createOneView({
expectToFail: false,
input: {
name: 'Test View For Filter Group Destroy',
@@ -40,12 +40,12 @@ describe('View Filter Group destroy should succeed', () => {
},
});
- createdViewId = viewData?.createCoreView?.id;
+ createdViewId = viewData?.createView?.id;
});
afterAll(async () => {
if (createdViewId) {
- await destroyOneCoreView({
+ await destroyOneView({
expectToFail: false,
viewId: createdViewId,
});
@@ -53,7 +53,7 @@ describe('View Filter Group destroy should succeed', () => {
});
it('should destroy a view filter group', async () => {
- const { data: createData } = await createOneCoreViewFilterGroup({
+ const { data: createData } = await createOneViewFilterGroup({
expectToFail: false,
input: {
viewId: createdViewId,
@@ -61,13 +61,13 @@ describe('View Filter Group destroy should succeed', () => {
},
});
- const createdViewFilterGroupId = createData?.createCoreViewFilterGroup?.id;
+ const createdViewFilterGroupId = createData?.createViewFilterGroup?.id;
- const { data: destroyData } = await destroyOneCoreViewFilterGroup({
+ const { data: destroyData } = await destroyOneViewFilterGroup({
id: createdViewFilterGroupId,
expectToFail: false,
});
- expect(destroyData.destroyCoreViewFilterGroup).toBe(true);
+ expect(destroyData.destroyViewFilterGroup).toBe(true);
});
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-filter-group/successful-view-filter-group-update.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/view-filter-group/successful-view-filter-group-update.integration-spec.ts
index b269d813478..c6f0f5b4a70 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-filter-group/successful-view-filter-group-update.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-filter-group/successful-view-filter-group-update.integration-spec.ts
@@ -1,9 +1,9 @@
import { findManyObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/find-many-object-metadata.util';
-import { createOneCoreViewFilterGroup } from 'test/integration/metadata/suites/view-filter-group/utils/create-one-core-view-filter-group.util';
-import { destroyOneCoreViewFilterGroup } from 'test/integration/metadata/suites/view-filter-group/utils/destroy-one-core-view-filter-group.util';
-import { updateOneCoreViewFilterGroup } from 'test/integration/metadata/suites/view-filter-group/utils/update-one-core-view-filter-group.util';
-import { createOneCoreView } from 'test/integration/metadata/suites/view/utils/create-one-core-view.util';
-import { destroyOneCoreView } from 'test/integration/metadata/suites/view/utils/destroy-one-core-view.util';
+import { createOneViewFilterGroup } from 'test/integration/metadata/suites/view-filter-group/utils/create-one-view-filter-group.util';
+import { destroyOneViewFilterGroup } from 'test/integration/metadata/suites/view-filter-group/utils/destroy-one-view-filter-group.util';
+import { updateOneViewFilterGroup } from 'test/integration/metadata/suites/view-filter-group/utils/update-one-view-filter-group.util';
+import { createOneView } from 'test/integration/metadata/suites/view/utils/create-one-view.util';
+import { destroyOneView } from 'test/integration/metadata/suites/view/utils/destroy-one-view.util';
import { jestExpectToBeDefined } from 'test/utils/jest-expect-to-be-defined.util.test';
import { ViewFilterGroupLogicalOperator, ViewType } from 'twenty-shared/types';
@@ -34,7 +34,7 @@ describe('View Filter Group update should succeed', () => {
jestExpectToBeDefined(companyObjectMetadata);
companyObjectMetadataId = companyObjectMetadata.id;
- const { data: viewData } = await createOneCoreView({
+ const { data: viewData } = await createOneView({
expectToFail: false,
input: {
name: 'Test View For Filter Group Update',
@@ -44,12 +44,12 @@ describe('View Filter Group update should succeed', () => {
},
});
- createdViewId = viewData?.createCoreView?.id;
+ createdViewId = viewData?.createView?.id;
});
afterAll(async () => {
if (createdViewId) {
- await destroyOneCoreView({
+ await destroyOneView({
expectToFail: false,
viewId: createdViewId,
});
@@ -57,7 +57,7 @@ describe('View Filter Group update should succeed', () => {
});
beforeEach(async () => {
- const { data } = await createOneCoreViewFilterGroup({
+ const { data } = await createOneViewFilterGroup({
expectToFail: false,
input: {
viewId: createdViewId,
@@ -65,12 +65,12 @@ describe('View Filter Group update should succeed', () => {
},
});
- createdViewFilterGroupId = data?.createCoreViewFilterGroup?.id;
+ createdViewFilterGroupId = data?.createViewFilterGroup?.id;
});
afterEach(async () => {
if (createdViewFilterGroupId) {
- await destroyOneCoreViewFilterGroup({
+ await destroyOneViewFilterGroup({
expectToFail: false,
id: createdViewFilterGroupId,
});
@@ -79,7 +79,7 @@ describe('View Filter Group update should succeed', () => {
});
it('should update the logical operator', async () => {
- const { data } = await updateOneCoreViewFilterGroup({
+ const { data } = await updateOneViewFilterGroup({
id: createdViewFilterGroupId,
expectToFail: false,
input: {
@@ -87,14 +87,14 @@ describe('View Filter Group update should succeed', () => {
},
});
- expect(data.updateCoreViewFilterGroup).toMatchObject({
+ expect(data.updateViewFilterGroup).toMatchObject({
id: createdViewFilterGroupId,
logicalOperator: ViewFilterGroupLogicalOperator.OR,
});
});
it('should update the position', async () => {
- const { data } = await updateOneCoreViewFilterGroup({
+ const { data } = await updateOneViewFilterGroup({
id: createdViewFilterGroupId,
expectToFail: false,
input: {
@@ -102,7 +102,7 @@ describe('View Filter Group update should succeed', () => {
},
});
- expect(data.updateCoreViewFilterGroup).toMatchObject({
+ expect(data.updateViewFilterGroup).toMatchObject({
id: createdViewFilterGroupId,
positionInViewFilterGroup: 5,
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-filter-group/utils/create-one-core-view-filter-group.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-filter-group/utils/create-one-view-filter-group.util.ts
similarity index 81%
rename from packages/twenty-server/test/integration/metadata/suites/view-filter-group/utils/create-one-core-view-filter-group.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-filter-group/utils/create-one-view-filter-group.util.ts
index ed996967ea9..573f6f3e49f 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-filter-group/utils/create-one-core-view-filter-group.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-filter-group/utils/create-one-view-filter-group.util.ts
@@ -1,5 +1,5 @@
import { makeMetadataAPIRequest } from 'test/integration/metadata/suites/utils/make-metadata-api-request.util';
-import { createCoreViewFilterGroupQueryFactory } from 'test/integration/metadata/suites/view-filter-group/utils/create-core-view-filter-group-query-factory.util';
+import { createViewFilterGroupQueryFactory } from 'test/integration/metadata/suites/view-filter-group/utils/create-view-filter-group-query-factory.util';
import { type CommonResponseBody } from 'test/integration/metadata/types/common-response-body.type';
import { type PerformMetadataQueryParams } from 'test/integration/metadata/types/perform-metadata-query.type';
import { warnIfErrorButNotExpectedToFail } from 'test/integration/metadata/utils/warn-if-error-but-not-expected-to-fail.util';
@@ -8,14 +8,14 @@ import { warnIfNoErrorButExpectedToFail } from 'test/integration/metadata/utils/
import { type CreateViewFilterGroupInput } from 'src/engine/metadata-modules/view-filter-group/dtos/inputs/create-view-filter-group.input';
import { type ViewFilterGroupDTO } from 'src/engine/metadata-modules/view-filter-group/dtos/view-filter-group.dto';
-export const createOneCoreViewFilterGroup = async ({
+export const createOneViewFilterGroup = async ({
input,
gqlFields,
expectToFail,
}: PerformMetadataQueryParams<CreateViewFilterGroupInput>): CommonResponseBody<{
- createCoreViewFilterGroup: ViewFilterGroupDTO;
+ createViewFilterGroup: ViewFilterGroupDTO;
}> => {
- const graphqlOperation = createCoreViewFilterGroupQueryFactory({
+ const graphqlOperation = createViewFilterGroupQueryFactory({
input,
gqlFields,
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-filter-group/utils/create-core-view-filter-group-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-filter-group/utils/create-view-filter-group-query-factory.util.ts
similarity index 76%
rename from packages/twenty-server/test/integration/metadata/suites/view-filter-group/utils/create-core-view-filter-group-query-factory.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-filter-group/utils/create-view-filter-group-query-factory.util.ts
index 38446855a72..f44949963fc 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-filter-group/utils/create-core-view-filter-group-query-factory.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-filter-group/utils/create-view-filter-group-query-factory.util.ts
@@ -4,13 +4,13 @@ import { type PerformMetadataQueryParams } from 'test/integration/metadata/types
import { type CreateViewFilterGroupInput } from 'src/engine/metadata-modules/view-filter-group/dtos/inputs/create-view-filter-group.input';
-export const createCoreViewFilterGroupQueryFactory = ({
+export const createViewFilterGroupQueryFactory = ({
gqlFields = VIEW_FILTER_GROUP_GQL_FIELDS,
input,
}: PerformMetadataQueryParams<CreateViewFilterGroupInput>) => ({
query: gql`
- mutation CreateCoreViewFilterGroup($input: CreateViewFilterGroupInput!) {
- createCoreViewFilterGroup(input: $input) {
+ mutation CreateViewFilterGroup($input: CreateViewFilterGroupInput!) {
+ createViewFilterGroup(input: $input) {
${gqlFields}
}
}
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-filter-group/utils/delete-core-view-filter-group-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-filter-group/utils/delete-core-view-filter-group-query-factory.util.ts
deleted file mode 100644
index bf0bcf7e09b..00000000000
--- a/packages/twenty-server/test/integration/metadata/suites/view-filter-group/utils/delete-core-view-filter-group-query-factory.util.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-import gql from 'graphql-tag';
-
-export const deleteCoreViewFilterGroupQueryFactory = ({
- id,
-}: {
- id: string;
-}) => ({
- query: gql`
- mutation DeleteCoreViewFilterGroup($id: String!) {
- deleteCoreViewFilterGroup(id: $id)
- }
- `,
- variables: {
- id,
- },
-});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-filter-group/utils/delete-one-core-view-filter-group.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-filter-group/utils/delete-one-view-filter-group.util.ts
similarity index 76%
rename from packages/twenty-server/test/integration/metadata/suites/view-filter-group/utils/delete-one-core-view-filter-group.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-filter-group/utils/delete-one-view-filter-group.util.ts
index 27beaae45b5..e5a5009445b 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-filter-group/utils/delete-one-core-view-filter-group.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-filter-group/utils/delete-one-view-filter-group.util.ts
@@ -1,19 +1,19 @@
import { makeMetadataAPIRequest } from 'test/integration/metadata/suites/utils/make-metadata-api-request.util';
-import { deleteCoreViewFilterGroupQueryFactory } from 'test/integration/metadata/suites/view-filter-group/utils/delete-core-view-filter-group-query-factory.util';
+import { deleteViewFilterGroupQueryFactory } from 'test/integration/metadata/suites/view-filter-group/utils/delete-view-filter-group-query-factory.util';
import { type CommonResponseBody } from 'test/integration/metadata/types/common-response-body.type';
import { warnIfErrorButNotExpectedToFail } from 'test/integration/metadata/utils/warn-if-error-but-not-expected-to-fail.util';
import { warnIfNoErrorButExpectedToFail } from 'test/integration/metadata/utils/warn-if-no-error-but-expected-to-fail.util';
-export const deleteOneCoreViewFilterGroup = async ({
+export const deleteOneViewFilterGroup = async ({
id,
expectToFail,
}: {
id: string;
expectToFail: boolean;
}): CommonResponseBody<{
- deleteCoreViewFilterGroup: boolean;
+ deleteViewFilterGroup: boolean;
}> => {
- const graphqlOperation = deleteCoreViewFilterGroupQueryFactory({ id });
+ const graphqlOperation = deleteViewFilterGroupQueryFactory({ id });
const response = await makeMetadataAPIRequest(graphqlOperation);
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-filter-group/utils/delete-view-filter-group-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-filter-group/utils/delete-view-filter-group-query-factory.util.ts
new file mode 100644
index 00000000000..1ae6f695ae0
--- /dev/null
+++ b/packages/twenty-server/test/integration/metadata/suites/view-filter-group/utils/delete-view-filter-group-query-factory.util.ts
@@ -0,0 +1,16 @@
+import gql from 'graphql-tag';
+
+export const deleteViewFilterGroupQueryFactory = ({
+ id,
+}: {
+ id: string;
+}) => ({
+ query: gql`
+ mutation DeleteViewFilterGroup($id: String!) {
+ deleteViewFilterGroup(id: $id)
+ }
+ `,
+ variables: {
+ id,
+ },
+});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-filter-group/utils/destroy-core-view-filter-group-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-filter-group/utils/destroy-core-view-filter-group-query-factory.util.ts
deleted file mode 100644
index 23817fdfd83..00000000000
--- a/packages/twenty-server/test/integration/metadata/suites/view-filter-group/utils/destroy-core-view-filter-group-query-factory.util.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-import gql from 'graphql-tag';
-
-export const destroyCoreViewFilterGroupQueryFactory = ({
- id,
-}: {
- id: string;
-}) => ({
- query: gql`
- mutation DestroyCoreViewFilterGroup($id: String!) {
- destroyCoreViewFilterGroup(id: $id)
- }
- `,
- variables: {
- id,
- },
-});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-filter-group/utils/destroy-one-core-view-filter-group.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-filter-group/utils/destroy-one-view-filter-group.util.ts
similarity index 76%
rename from packages/twenty-server/test/integration/metadata/suites/view-filter-group/utils/destroy-one-core-view-filter-group.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-filter-group/utils/destroy-one-view-filter-group.util.ts
index 55fa379a72c..85adb527fd2 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-filter-group/utils/destroy-one-core-view-filter-group.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-filter-group/utils/destroy-one-view-filter-group.util.ts
@@ -1,19 +1,19 @@
import { makeMetadataAPIRequest } from 'test/integration/metadata/suites/utils/make-metadata-api-request.util';
-import { destroyCoreViewFilterGroupQueryFactory } from 'test/integration/metadata/suites/view-filter-group/utils/destroy-core-view-filter-group-query-factory.util';
+import { destroyViewFilterGroupQueryFactory } from 'test/integration/metadata/suites/view-filter-group/utils/destroy-view-filter-group-query-factory.util';
import { type CommonResponseBody } from 'test/integration/metadata/types/common-response-body.type';
import { warnIfErrorButNotExpectedToFail } from 'test/integration/metadata/utils/warn-if-error-but-not-expected-to-fail.util';
import { warnIfNoErrorButExpectedToFail } from 'test/integration/metadata/utils/warn-if-no-error-but-expected-to-fail.util';
-export const destroyOneCoreViewFilterGroup = async ({
+export const destroyOneViewFilterGroup = async ({
id,
expectToFail,
}: {
id: string;
expectToFail: boolean;
}): CommonResponseBody<{
- destroyCoreViewFilterGroup: boolean;
+ destroyViewFilterGroup: boolean;
}> => {
- const graphqlOperation = destroyCoreViewFilterGroupQueryFactory({ id });
+ const graphqlOperation = destroyViewFilterGroupQueryFactory({ id });
const response = await makeMetadataAPIRequest(graphqlOperation);
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-filter-group/utils/destroy-view-filter-group-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-filter-group/utils/destroy-view-filter-group-query-factory.util.ts
new file mode 100644
index 00000000000..c1781ebaaac
--- /dev/null
+++ b/packages/twenty-server/test/integration/metadata/suites/view-filter-group/utils/destroy-view-filter-group-query-factory.util.ts
@@ -0,0 +1,16 @@
+import gql from 'graphql-tag';
+
+export const destroyViewFilterGroupQueryFactory = ({
+ id,
+}: {
+ id: string;
+}) => ({
+ query: gql`
+ mutation DestroyViewFilterGroup($id: String!) {
+ destroyViewFilterGroup(id: $id)
+ }
+ `,
+ variables: {
+ id,
+ },
+});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-filter-group/utils/update-one-core-view-filter-group.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-filter-group/utils/update-one-view-filter-group.util.ts
similarity index 82%
rename from packages/twenty-server/test/integration/metadata/suites/view-filter-group/utils/update-one-core-view-filter-group.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-filter-group/utils/update-one-view-filter-group.util.ts
index 7ab741d0b79..7f5f2f33f4a 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-filter-group/utils/update-one-core-view-filter-group.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-filter-group/utils/update-one-view-filter-group.util.ts
@@ -1,5 +1,5 @@
import { makeMetadataAPIRequest } from 'test/integration/metadata/suites/utils/make-metadata-api-request.util';
-import { updateCoreViewFilterGroupQueryFactory } from 'test/integration/metadata/suites/view-filter-group/utils/update-core-view-filter-group-query-factory.util';
+import { updateViewFilterGroupQueryFactory } from 'test/integration/metadata/suites/view-filter-group/utils/update-view-filter-group-query-factory.util';
import { type CommonResponseBody } from 'test/integration/metadata/types/common-response-body.type';
import { type PerformMetadataQueryParams } from 'test/integration/metadata/types/perform-metadata-query.type';
import { warnIfErrorButNotExpectedToFail } from 'test/integration/metadata/utils/warn-if-error-but-not-expected-to-fail.util';
@@ -8,7 +8,7 @@ import { warnIfNoErrorButExpectedToFail } from 'test/integration/metadata/utils/
import { type UpdateViewFilterGroupInput } from 'src/engine/metadata-modules/view-filter-group/dtos/inputs/update-view-filter-group.input';
import { type ViewFilterGroupDTO } from 'src/engine/metadata-modules/view-filter-group/dtos/view-filter-group.dto';
-export const updateOneCoreViewFilterGroup = async ({
+export const updateOneViewFilterGroup = async ({
id,
input,
gqlFields,
@@ -16,9 +16,9 @@ export const updateOneCoreViewFilterGroup = async ({
}: PerformMetadataQueryParams<UpdateViewFilterGroupInput> & {
id: string;
}): CommonResponseBody<{
- updateCoreViewFilterGroup: ViewFilterGroupDTO;
+ updateViewFilterGroup: ViewFilterGroupDTO;
}> => {
- const graphqlOperation = updateCoreViewFilterGroupQueryFactory({
+ const graphqlOperation = updateViewFilterGroupQueryFactory({
id,
input,
gqlFields,
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-filter-group/utils/update-core-view-filter-group-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-filter-group/utils/update-view-filter-group-query-factory.util.ts
similarity index 75%
rename from packages/twenty-server/test/integration/metadata/suites/view-filter-group/utils/update-core-view-filter-group-query-factory.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-filter-group/utils/update-view-filter-group-query-factory.util.ts
index 2ddd31b1c12..ffc9d3397f9 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-filter-group/utils/update-core-view-filter-group-query-factory.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-filter-group/utils/update-view-filter-group-query-factory.util.ts
@@ -4,7 +4,7 @@ import { type PerformMetadataQueryParams } from 'test/integration/metadata/types
import { type UpdateViewFilterGroupInput } from 'src/engine/metadata-modules/view-filter-group/dtos/inputs/update-view-filter-group.input';
-export const updateCoreViewFilterGroupQueryFactory = ({
+export const updateViewFilterGroupQueryFactory = ({
gqlFields = VIEW_FILTER_GROUP_GQL_FIELDS,
input,
id,
@@ -12,8 +12,8 @@ export const updateCoreViewFilterGroupQueryFactory = ({
id: string;
}) => ({
query: gql`
- mutation UpdateCoreViewFilterGroup($id: String!, $input: UpdateViewFilterGroupInput!) {
- updateCoreViewFilterGroup(id: $id, input: $input) {
+ mutation UpdateViewFilterGroup($id: String!, $input: UpdateViewFilterGroupInput!) {
+ updateViewFilterGroup(id: $id, input: $input) {
${gqlFields}
}
}
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-filter/failing-view-filter-creation.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/view-filter/failing-view-filter-creation.integration-spec.ts
index 22902fb9a4e..7a31306656b 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-filter/failing-view-filter-creation.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-filter/failing-view-filter-creation.integration-spec.ts
@@ -1,8 +1,8 @@
import { expectOneNotInternalServerErrorSnapshot } from 'test/integration/graphql/utils/expect-one-not-internal-server-error-snapshot.util';
import { findManyObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/find-many-object-metadata.util';
-import { createOneCoreViewFilter } from 'test/integration/metadata/suites/view-filter/utils/create-one-core-view-filter.util';
-import { createOneCoreView } from 'test/integration/metadata/suites/view/utils/create-one-core-view.util';
-import { destroyOneCoreView } from 'test/integration/metadata/suites/view/utils/destroy-one-core-view.util';
+import { createOneViewFilter } from 'test/integration/metadata/suites/view-filter/utils/create-one-view-filter.util';
+import { createOneView } from 'test/integration/metadata/suites/view/utils/create-one-view.util';
+import { destroyOneView } from 'test/integration/metadata/suites/view/utils/destroy-one-view.util';
import { jestExpectToBeDefined } from 'test/utils/jest-expect-to-be-defined.util.test';
import {
eachTestingContextFilter,
@@ -82,7 +82,7 @@ describe('View Filter creation should fail', () => {
jestExpectToBeDefined(companyObjectMetadata);
- const { data: viewData } = await createOneCoreView({
+ const { data: viewData } = await createOneView({
expectToFail: false,
input: {
name: 'Test View For Failing Filter Creation',
@@ -92,13 +92,13 @@ describe('View Filter creation should fail', () => {
},
});
- createdViewId = viewData?.createCoreView?.id;
+ createdViewId = viewData?.createView?.id;
jestExpectToBeDefined(createdViewId);
});
afterAll(async () => {
if (createdViewId) {
- await destroyOneCoreView({
+ await destroyOneView({
expectToFail: false,
viewId: createdViewId,
});
@@ -108,7 +108,7 @@ describe('View Filter creation should fail', () => {
it.each(eachTestingContextFilter(failingViewFilterCreationTestCases))(
'$title',
async ({ context }) => {
- const { errors } = await createOneCoreViewFilter({
+ const { errors } = await createOneViewFilter({
expectToFail: true,
input: context.input({ createdViewId }),
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-filter/utils/create-one-core-view-filter.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-filter/utils/create-one-view-filter.util.ts
similarity index 82%
rename from packages/twenty-server/test/integration/metadata/suites/view-filter/utils/create-one-core-view-filter.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-filter/utils/create-one-view-filter.util.ts
index 86c97b22b7f..79db4fdfc3a 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-filter/utils/create-one-core-view-filter.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-filter/utils/create-one-view-filter.util.ts
@@ -1,5 +1,5 @@
import { makeMetadataAPIRequest } from 'test/integration/metadata/suites/utils/make-metadata-api-request.util';
-import { createCoreViewFilterQueryFactory } from 'test/integration/metadata/suites/view-filter/utils/create-core-view-filter-query-factory.util';
+import { createViewFilterQueryFactory } from 'test/integration/metadata/suites/view-filter/utils/create-view-filter-query-factory.util';
import { type CommonResponseBody } from 'test/integration/metadata/types/common-response-body.type';
import { type PerformMetadataQueryParams } from 'test/integration/metadata/types/perform-metadata-query.type';
import { warnIfErrorButNotExpectedToFail } from 'test/integration/metadata/utils/warn-if-error-but-not-expected-to-fail.util';
@@ -8,14 +8,14 @@ import { warnIfNoErrorButExpectedToFail } from 'test/integration/metadata/utils/
import { type CreateViewFilterInput } from 'src/engine/metadata-modules/view-filter/dtos/inputs/create-view-filter.input';
import { type ViewFilterDTO } from 'src/engine/metadata-modules/view-filter/dtos/view-filter.dto';
-export const createOneCoreViewFilter = async ({
+export const createOneViewFilter = async ({
input,
gqlFields,
expectToFail,
}: PerformMetadataQueryParams<CreateViewFilterInput>): CommonResponseBody<{
- createCoreViewFilter: ViewFilterDTO;
+ createViewFilter: ViewFilterDTO;
}> => {
- const graphqlOperation = createCoreViewFilterQueryFactory({
+ const graphqlOperation = createViewFilterQueryFactory({
input,
gqlFields,
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-filter/utils/create-core-view-filter-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-filter/utils/create-view-filter-query-factory.util.ts
similarity index 77%
rename from packages/twenty-server/test/integration/metadata/suites/view-filter/utils/create-core-view-filter-query-factory.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-filter/utils/create-view-filter-query-factory.util.ts
index c7020584cc3..c72ad91894a 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-filter/utils/create-core-view-filter-query-factory.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-filter/utils/create-view-filter-query-factory.util.ts
@@ -4,13 +4,13 @@ import { type PerformMetadataQueryParams } from 'test/integration/metadata/types
import { type CreateViewFilterInput } from 'src/engine/metadata-modules/view-filter/dtos/inputs/create-view-filter.input';
-export const createCoreViewFilterQueryFactory = ({
+export const createViewFilterQueryFactory = ({
gqlFields = VIEW_FILTER_GQL_FIELDS,
input,
}: PerformMetadataQueryParams<CreateViewFilterInput>) => ({
query: gql`
- mutation CreateCoreViewFilter($input: CreateViewFilterInput!) {
- createCoreViewFilter(input: $input) {
+ mutation CreateViewFilter($input: CreateViewFilterInput!) {
+ createViewFilter(input: $input) {
${gqlFields}
}
}
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-filter/utils/delete-one-core-view-filter.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-filter/utils/delete-one-view-filter.util.ts
similarity index 82%
rename from packages/twenty-server/test/integration/metadata/suites/view-filter/utils/delete-one-core-view-filter.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-filter/utils/delete-one-view-filter.util.ts
index ad0dffe2ff6..9e097af5468 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-filter/utils/delete-one-core-view-filter.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-filter/utils/delete-one-view-filter.util.ts
@@ -1,5 +1,5 @@
import { makeMetadataAPIRequest } from 'test/integration/metadata/suites/utils/make-metadata-api-request.util';
-import { deleteCoreViewFilterQueryFactory } from 'test/integration/metadata/suites/view-filter/utils/delete-core-view-filter-query-factory.util';
+import { deleteViewFilterQueryFactory } from 'test/integration/metadata/suites/view-filter/utils/delete-view-filter-query-factory.util';
import { type CommonResponseBody } from 'test/integration/metadata/types/common-response-body.type';
import { type PerformMetadataQueryParams } from 'test/integration/metadata/types/perform-metadata-query.type';
import { warnIfErrorButNotExpectedToFail } from 'test/integration/metadata/utils/warn-if-error-but-not-expected-to-fail.util';
@@ -8,14 +8,14 @@ import { warnIfNoErrorButExpectedToFail } from 'test/integration/metadata/utils/
import { type DeleteViewFilterInput } from 'src/engine/metadata-modules/view-filter/dtos/inputs/delete-view-filter.input';
import { type ViewFilterDTO } from 'src/engine/metadata-modules/view-filter/dtos/view-filter.dto';
-export const deleteOneCoreViewFilter = async ({
+export const deleteOneViewFilter = async ({
input,
gqlFields,
expectToFail,
}: PerformMetadataQueryParams<DeleteViewFilterInput>): CommonResponseBody<{
- deleteCoreViewFilter: ViewFilterDTO;
+ deleteViewFilter: ViewFilterDTO;
}> => {
- const graphqlOperation = deleteCoreViewFilterQueryFactory({
+ const graphqlOperation = deleteViewFilterQueryFactory({
input,
gqlFields,
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-filter/utils/delete-core-view-filter-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-filter/utils/delete-view-filter-query-factory.util.ts
similarity index 77%
rename from packages/twenty-server/test/integration/metadata/suites/view-filter/utils/delete-core-view-filter-query-factory.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-filter/utils/delete-view-filter-query-factory.util.ts
index 289798fdeed..8c91b978f21 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-filter/utils/delete-core-view-filter-query-factory.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-filter/utils/delete-view-filter-query-factory.util.ts
@@ -4,13 +4,13 @@ import { type PerformMetadataQueryParams } from 'test/integration/metadata/types
import { type DeleteViewFilterInput } from 'src/engine/metadata-modules/view-filter/dtos/inputs/delete-view-filter.input';
-export const deleteCoreViewFilterQueryFactory = ({
+export const deleteViewFilterQueryFactory = ({
gqlFields = VIEW_FILTER_GQL_FIELDS,
input,
}: PerformMetadataQueryParams<DeleteViewFilterInput>) => ({
query: gql`
- mutation DeleteCoreViewFilter($input: DeleteViewFilterInput!) {
- deleteCoreViewFilter(input: $input) {
+ mutation DeleteViewFilter($input: DeleteViewFilterInput!) {
+ deleteViewFilter(input: $input) {
${gqlFields}
}
}
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-filter/utils/destroy-one-core-view-filter.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-filter/utils/destroy-one-view-filter.util.ts
similarity index 82%
rename from packages/twenty-server/test/integration/metadata/suites/view-filter/utils/destroy-one-core-view-filter.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-filter/utils/destroy-one-view-filter.util.ts
index f565135a7d1..e713f06adc0 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-filter/utils/destroy-one-core-view-filter.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-filter/utils/destroy-one-view-filter.util.ts
@@ -1,5 +1,5 @@
import { makeMetadataAPIRequest } from 'test/integration/metadata/suites/utils/make-metadata-api-request.util';
-import { destroyCoreViewFilterQueryFactory } from 'test/integration/metadata/suites/view-filter/utils/destroy-core-view-filter-query-factory.util';
+import { destroyViewFilterQueryFactory } from 'test/integration/metadata/suites/view-filter/utils/destroy-view-filter-query-factory.util';
import { type CommonResponseBody } from 'test/integration/metadata/types/common-response-body.type';
import { type PerformMetadataQueryParams } from 'test/integration/metadata/types/perform-metadata-query.type';
import { warnIfErrorButNotExpectedToFail } from 'test/integration/metadata/utils/warn-if-error-but-not-expected-to-fail.util';
@@ -8,14 +8,14 @@ import { warnIfNoErrorButExpectedToFail } from 'test/integration/metadata/utils/
import { type DestroyViewFilterInput } from 'src/engine/metadata-modules/view-filter/dtos/inputs/destroy-view-filter.input';
import { type ViewFilterDTO } from 'src/engine/metadata-modules/view-filter/dtos/view-filter.dto';
-export const destroyOneCoreViewFilter = async ({
+export const destroyOneViewFilter = async ({
input,
gqlFields,
expectToFail,
}: PerformMetadataQueryParams<DestroyViewFilterInput>): CommonResponseBody<{
- destroyCoreViewFilter: ViewFilterDTO;
+ destroyViewFilter: ViewFilterDTO;
}> => {
- const graphqlOperation = destroyCoreViewFilterQueryFactory({
+ const graphqlOperation = destroyViewFilterQueryFactory({
input,
gqlFields,
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-filter/utils/destroy-core-view-filter-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-filter/utils/destroy-view-filter-query-factory.util.ts
similarity index 77%
rename from packages/twenty-server/test/integration/metadata/suites/view-filter/utils/destroy-core-view-filter-query-factory.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-filter/utils/destroy-view-filter-query-factory.util.ts
index 95e6eac6248..cc105a83284 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-filter/utils/destroy-core-view-filter-query-factory.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-filter/utils/destroy-view-filter-query-factory.util.ts
@@ -4,13 +4,13 @@ import { type PerformMetadataQueryParams } from 'test/integration/metadata/types
import { type DestroyViewFilterInput } from 'src/engine/metadata-modules/view-filter/dtos/inputs/destroy-view-filter.input';
-export const destroyCoreViewFilterQueryFactory = ({
+export const destroyViewFilterQueryFactory = ({
gqlFields = VIEW_FILTER_GQL_FIELDS,
input,
}: PerformMetadataQueryParams<DestroyViewFilterInput>) => ({
query: gql`
- mutation DestroyCoreViewFilter($input: DestroyViewFilterInput!) {
- destroyCoreViewFilter(input: $input) {
+ mutation DestroyViewFilter($input: DestroyViewFilterInput!) {
+ destroyViewFilter(input: $input) {
${gqlFields}
}
}
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-filter/utils/find-core-view-filters-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-filter/utils/find-view-filters-query-factory.util.ts
similarity index 69%
rename from packages/twenty-server/test/integration/metadata/suites/view-filter/utils/find-core-view-filters-query-factory.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-filter/utils/find-view-filters-query-factory.util.ts
index fe87a41b4f7..0851ee6221c 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-filter/utils/find-core-view-filters-query-factory.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-filter/utils/find-view-filters-query-factory.util.ts
@@ -1,7 +1,7 @@
import gql from 'graphql-tag';
import { VIEW_FILTER_GQL_FIELDS } from 'test/integration/constants/view-gql-fields.constants';
-export const findCoreViewFiltersQueryFactory = ({
+export const findViewFiltersQueryFactory = ({
gqlFields = VIEW_FILTER_GQL_FIELDS,
viewId,
}: {
@@ -9,8 +9,8 @@ export const findCoreViewFiltersQueryFactory = ({
viewId?: string;
}) => ({
query: gql`
- query GetCoreViewFilters($viewId: String) {
- getCoreViewFilters(viewId: $viewId) {
+ query GetViewFilters($viewId: String) {
+ getViewFilters(viewId: $viewId) {
${gqlFields}
}
}
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-filter/utils/find-core-view-filters.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-filter/utils/find-view-filters.util.ts
similarity index 80%
rename from packages/twenty-server/test/integration/metadata/suites/view-filter/utils/find-core-view-filters.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-filter/utils/find-view-filters.util.ts
index 03fae24c7e7..3ba9093c345 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-filter/utils/find-core-view-filters.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-filter/utils/find-view-filters.util.ts
@@ -1,12 +1,12 @@
import { makeMetadataAPIRequest } from 'test/integration/metadata/suites/utils/make-metadata-api-request.util';
-import { findCoreViewFiltersQueryFactory } from 'test/integration/metadata/suites/view-filter/utils/find-core-view-filters-query-factory.util';
+import { findViewFiltersQueryFactory } from 'test/integration/metadata/suites/view-filter/utils/find-view-filters-query-factory.util';
import { type CommonResponseBody } from 'test/integration/metadata/types/common-response-body.type';
import { warnIfErrorButNotExpectedToFail } from 'test/integration/metadata/utils/warn-if-error-but-not-expected-to-fail.util';
import { warnIfNoErrorButExpectedToFail } from 'test/integration/metadata/utils/warn-if-no-error-but-expected-to-fail.util';
import { type ViewFilterDTO } from 'src/engine/metadata-modules/view-filter/dtos/view-filter.dto';
-export const findCoreViewFilters = async ({
+export const findViewFilters = async ({
viewId,
gqlFields,
expectToFail,
@@ -15,9 +15,9 @@ export const findCoreViewFilters = async ({
gqlFields?: string;
expectToFail?: boolean;
}): CommonResponseBody<{
- getCoreViewFilters: ViewFilterDTO[];
+ getViewFilters: ViewFilterDTO[];
}> => {
- const graphqlOperation = findCoreViewFiltersQueryFactory({
+ const graphqlOperation = findViewFiltersQueryFactory({
viewId,
gqlFields,
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-filter/utils/update-one-core-view-filter.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-filter/utils/update-one-view-filter.util.ts
similarity index 82%
rename from packages/twenty-server/test/integration/metadata/suites/view-filter/utils/update-one-core-view-filter.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-filter/utils/update-one-view-filter.util.ts
index 2512350dba5..651a1222d5b 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-filter/utils/update-one-core-view-filter.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-filter/utils/update-one-view-filter.util.ts
@@ -1,5 +1,5 @@
import { makeMetadataAPIRequest } from 'test/integration/metadata/suites/utils/make-metadata-api-request.util';
-import { updateCoreViewFilterQueryFactory } from 'test/integration/metadata/suites/view-filter/utils/update-core-view-filter-query-factory.util';
+import { updateViewFilterQueryFactory } from 'test/integration/metadata/suites/view-filter/utils/update-view-filter-query-factory.util';
import { type CommonResponseBody } from 'test/integration/metadata/types/common-response-body.type';
import { type PerformMetadataQueryParams } from 'test/integration/metadata/types/perform-metadata-query.type';
import { warnIfErrorButNotExpectedToFail } from 'test/integration/metadata/utils/warn-if-error-but-not-expected-to-fail.util';
@@ -8,14 +8,14 @@ import { warnIfNoErrorButExpectedToFail } from 'test/integration/metadata/utils/
import { type UpdateViewFilterInput } from 'src/engine/metadata-modules/view-filter/dtos/inputs/update-view-filter.input';
import { type ViewFilterDTO } from 'src/engine/metadata-modules/view-filter/dtos/view-filter.dto';
-export const updateOneCoreViewFilter = async ({
+export const updateOneViewFilter = async ({
input,
gqlFields,
expectToFail,
}: PerformMetadataQueryParams<UpdateViewFilterInput>): CommonResponseBody<{
- updateCoreViewFilter: ViewFilterDTO;
+ updateViewFilter: ViewFilterDTO;
}> => {
- const graphqlOperation = updateCoreViewFilterQueryFactory({
+ const graphqlOperation = updateViewFilterQueryFactory({
input,
gqlFields,
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-filter/utils/update-core-view-filter-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-filter/utils/update-view-filter-query-factory.util.ts
similarity index 77%
rename from packages/twenty-server/test/integration/metadata/suites/view-filter/utils/update-core-view-filter-query-factory.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-filter/utils/update-view-filter-query-factory.util.ts
index d4abceeea9f..1774c9c8de3 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-filter/utils/update-core-view-filter-query-factory.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-filter/utils/update-view-filter-query-factory.util.ts
@@ -4,13 +4,13 @@ import { type PerformMetadataQueryParams } from 'test/integration/metadata/types
import { type UpdateViewFilterInput } from 'src/engine/metadata-modules/view-filter/dtos/inputs/update-view-filter.input';
-export const updateCoreViewFilterQueryFactory = ({
+export const updateViewFilterQueryFactory = ({
gqlFields = VIEW_FILTER_GQL_FIELDS,
input,
}: PerformMetadataQueryParams<UpdateViewFilterInput>) => ({
query: gql`
- mutation UpdateCoreViewFilter($input: UpdateViewFilterInput!) {
- updateCoreViewFilter(input: $input) {
+ mutation UpdateViewFilter($input: UpdateViewFilterInput!) {
+ updateViewFilter(input: $input) {
${gqlFields}
}
}
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-group/utils/create-many-core-view-groups-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-group/utils/create-many-view-groups-query-factory.util.ts
similarity index 71%
rename from packages/twenty-server/test/integration/metadata/suites/view-group/utils/create-many-core-view-groups-query-factory.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-group/utils/create-many-view-groups-query-factory.util.ts
index 730ea7b6de3..47cb0fe34eb 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-group/utils/create-many-core-view-groups-query-factory.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-group/utils/create-many-view-groups-query-factory.util.ts
@@ -3,7 +3,7 @@ import { VIEW_GROUP_GQL_FIELDS } from 'test/integration/constants/view-gql-field
import { type CreateViewGroupInput } from 'src/engine/metadata-modules/view-group/dtos/inputs/create-view-group.input';
-export const createManyCoreViewGroupsQueryFactory = ({
+export const createManyViewGroupsQueryFactory = ({
gqlFields = VIEW_GROUP_GQL_FIELDS,
inputs,
}: {
@@ -11,8 +11,8 @@ export const createManyCoreViewGroupsQueryFactory = ({
inputs: CreateViewGroupInput[];
}) => ({
query: gql`
- mutation CreateManyCoreViewGroups($inputs: [CreateViewGroupInput!]!) {
- createManyCoreViewGroups(inputs: $inputs) {
+ mutation CreateManyViewGroups($inputs: [CreateViewGroupInput!]!) {
+ createManyViewGroups(inputs: $inputs) {
${gqlFields}
}
}
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-group/utils/create-many-core-view-groups.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-group/utils/create-many-view-groups.util.ts
similarity index 81%
rename from packages/twenty-server/test/integration/metadata/suites/view-group/utils/create-many-core-view-groups.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-group/utils/create-many-view-groups.util.ts
index 2a3ca804e33..a213051cc3d 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-group/utils/create-many-core-view-groups.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-group/utils/create-many-view-groups.util.ts
@@ -1,5 +1,5 @@
import { makeMetadataAPIRequest } from 'test/integration/metadata/suites/utils/make-metadata-api-request.util';
-import { createManyCoreViewGroupsQueryFactory } from 'test/integration/metadata/suites/view-group/utils/create-many-core-view-groups-query-factory.util';
+import { createManyViewGroupsQueryFactory } from 'test/integration/metadata/suites/view-group/utils/create-many-view-groups-query-factory.util';
import { type CommonResponseBody } from 'test/integration/metadata/types/common-response-body.type';
import { warnIfErrorButNotExpectedToFail } from 'test/integration/metadata/utils/warn-if-error-but-not-expected-to-fail.util';
import { warnIfNoErrorButExpectedToFail } from 'test/integration/metadata/utils/warn-if-no-error-but-expected-to-fail.util';
@@ -7,7 +7,7 @@ import { warnIfNoErrorButExpectedToFail } from 'test/integration/metadata/utils/
import { type CreateViewGroupInput } from 'src/engine/metadata-modules/view-group/dtos/inputs/create-view-group.input';
import { type ViewGroupEntity } from 'src/engine/metadata-modules/view-group/entities/view-group.entity';
-export const createManyCoreViewGroups = async ({
+export const createManyViewGroups = async ({
inputs,
gqlFields,
expectToFail,
@@ -16,9 +16,9 @@ export const createManyCoreViewGroups = async ({
gqlFields?: string;
expectToFail?: boolean;
}): CommonResponseBody<{
- createManyCoreViewGroups: ViewGroupEntity[];
+ createManyViewGroups: ViewGroupEntity[];
}> => {
- const graphqlOperation = createManyCoreViewGroupsQueryFactory({
+ const graphqlOperation = createManyViewGroupsQueryFactory({
inputs,
gqlFields,
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-group/utils/create-one-core-view-group.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-group/utils/create-one-view-group.util.ts
similarity index 83%
rename from packages/twenty-server/test/integration/metadata/suites/view-group/utils/create-one-core-view-group.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-group/utils/create-one-view-group.util.ts
index cd3cbbc029e..25b6e92d455 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-group/utils/create-one-core-view-group.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-group/utils/create-one-view-group.util.ts
@@ -1,5 +1,5 @@
import { makeMetadataAPIRequest } from 'test/integration/metadata/suites/utils/make-metadata-api-request.util';
-import { createCoreViewGroupQueryFactory } from 'test/integration/metadata/suites/view-group/utils/create-core-view-group-query-factory.util';
+import { createViewGroupQueryFactory } from 'test/integration/metadata/suites/view-group/utils/create-view-group-query-factory.util';
import { type CommonResponseBody } from 'test/integration/metadata/types/common-response-body.type';
import { type PerformMetadataQueryParams } from 'test/integration/metadata/types/perform-metadata-query.type';
import { warnIfErrorButNotExpectedToFail } from 'test/integration/metadata/utils/warn-if-error-but-not-expected-to-fail.util';
@@ -8,14 +8,14 @@ import { warnIfNoErrorButExpectedToFail } from 'test/integration/metadata/utils/
import { type CreateViewGroupInput } from 'src/engine/metadata-modules/view-group/dtos/inputs/create-view-group.input';
import { type ViewGroupEntity } from 'src/engine/metadata-modules/view-group/entities/view-group.entity';
-export const createOneCoreViewGroup = async ({
+export const createOneViewGroup = async ({
input,
gqlFields,
expectToFail,
}: PerformMetadataQueryParams<CreateViewGroupInput>): CommonResponseBody<{
- createCoreViewGroup: ViewGroupEntity;
+ createViewGroup: ViewGroupEntity;
}> => {
- const graphqlOperation = createCoreViewGroupQueryFactory({
+ const graphqlOperation = createViewGroupQueryFactory({
input,
gqlFields,
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-group/utils/create-core-view-group-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-group/utils/create-view-group-query-factory.util.ts
similarity index 77%
rename from packages/twenty-server/test/integration/metadata/suites/view-group/utils/create-core-view-group-query-factory.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-group/utils/create-view-group-query-factory.util.ts
index 9ec9a170635..0dd0faf99fc 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-group/utils/create-core-view-group-query-factory.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-group/utils/create-view-group-query-factory.util.ts
@@ -4,13 +4,13 @@ import { type PerformMetadataQueryParams } from 'test/integration/metadata/types
import { type CreateViewGroupInput } from 'src/engine/metadata-modules/view-group/dtos/inputs/create-view-group.input';
-export const createCoreViewGroupQueryFactory = ({
+export const createViewGroupQueryFactory = ({
gqlFields = VIEW_GROUP_GQL_FIELDS,
input,
}: PerformMetadataQueryParams<CreateViewGroupInput>) => ({
query: gql`
- mutation CreateCoreViewGroup($input: CreateViewGroupInput!) {
- createCoreViewGroup(input: $input) {
+ mutation CreateViewGroup($input: CreateViewGroupInput!) {
+ createViewGroup(input: $input) {
${gqlFields}
}
}
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-group/utils/delete-one-core-view-group.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-group/utils/delete-one-view-group.util.ts
similarity index 83%
rename from packages/twenty-server/test/integration/metadata/suites/view-group/utils/delete-one-core-view-group.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-group/utils/delete-one-view-group.util.ts
index f334bfe6e1a..e688e074831 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-group/utils/delete-one-core-view-group.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-group/utils/delete-one-view-group.util.ts
@@ -1,5 +1,5 @@
import { makeMetadataAPIRequest } from 'test/integration/metadata/suites/utils/make-metadata-api-request.util';
-import { deleteCoreViewGroupQueryFactory } from 'test/integration/metadata/suites/view-group/utils/delete-core-view-group-query-factory.util';
+import { deleteViewGroupQueryFactory } from 'test/integration/metadata/suites/view-group/utils/delete-view-group-query-factory.util';
import { type CommonResponseBody } from 'test/integration/metadata/types/common-response-body.type';
import { type PerformMetadataQueryParams } from 'test/integration/metadata/types/perform-metadata-query.type';
import { warnIfErrorButNotExpectedToFail } from 'test/integration/metadata/utils/warn-if-error-but-not-expected-to-fail.util';
@@ -8,14 +8,14 @@ import { warnIfNoErrorButExpectedToFail } from 'test/integration/metadata/utils/
import { type DeleteViewGroupInput } from 'src/engine/metadata-modules/view-group/dtos/inputs/delete-view-group.input';
import { type ViewGroupEntity } from 'src/engine/metadata-modules/view-group/entities/view-group.entity';
-export const deleteOneCoreViewGroup = async ({
+export const deleteOneViewGroup = async ({
input,
gqlFields,
expectToFail,
}: PerformMetadataQueryParams<DeleteViewGroupInput>): CommonResponseBody<{
- deleteCoreViewGroup: ViewGroupEntity;
+ deleteViewGroup: ViewGroupEntity;
}> => {
- const graphqlOperation = deleteCoreViewGroupQueryFactory({
+ const graphqlOperation = deleteViewGroupQueryFactory({
input,
gqlFields,
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-group/utils/delete-core-view-group-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-group/utils/delete-view-group-query-factory.util.ts
similarity index 77%
rename from packages/twenty-server/test/integration/metadata/suites/view-group/utils/delete-core-view-group-query-factory.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-group/utils/delete-view-group-query-factory.util.ts
index 111e6cc1b2e..26ebc81ad9f 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-group/utils/delete-core-view-group-query-factory.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-group/utils/delete-view-group-query-factory.util.ts
@@ -4,13 +4,13 @@ import { type PerformMetadataQueryParams } from 'test/integration/metadata/types
import { type DeleteViewGroupInput } from 'src/engine/metadata-modules/view-group/dtos/inputs/delete-view-group.input';
-export const deleteCoreViewGroupQueryFactory = ({
+export const deleteViewGroupQueryFactory = ({
gqlFields = VIEW_GROUP_GQL_FIELDS,
input,
}: PerformMetadataQueryParams<DeleteViewGroupInput>) => ({
query: gql`
- mutation DeleteCoreViewGroup($input: DeleteViewGroupInput!) {
- deleteCoreViewGroup(input: $input) {
+ mutation DeleteViewGroup($input: DeleteViewGroupInput!) {
+ deleteViewGroup(input: $input) {
${gqlFields}
}
}
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-group/utils/destroy-one-core-view-group.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-group/utils/destroy-one-view-group.util.ts
similarity index 83%
rename from packages/twenty-server/test/integration/metadata/suites/view-group/utils/destroy-one-core-view-group.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-group/utils/destroy-one-view-group.util.ts
index 57e00bc2651..e7fe141899f 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-group/utils/destroy-one-core-view-group.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-group/utils/destroy-one-view-group.util.ts
@@ -1,5 +1,5 @@
import { makeMetadataAPIRequest } from 'test/integration/metadata/suites/utils/make-metadata-api-request.util';
-import { destroyCoreViewGroupQueryFactory } from 'test/integration/metadata/suites/view-group/utils/destroy-core-view-group-query-factory.util';
+import { destroyViewGroupQueryFactory } from 'test/integration/metadata/suites/view-group/utils/destroy-view-group-query-factory.util';
import { type CommonResponseBody } from 'test/integration/metadata/types/common-response-body.type';
import { type PerformMetadataQueryParams } from 'test/integration/metadata/types/perform-metadata-query.type';
import { warnIfErrorButNotExpectedToFail } from 'test/integration/metadata/utils/warn-if-error-but-not-expected-to-fail.util';
@@ -8,14 +8,14 @@ import { warnIfNoErrorButExpectedToFail } from 'test/integration/metadata/utils/
import { type DestroyViewGroupInput } from 'src/engine/metadata-modules/view-group/dtos/inputs/destroy-view-group.input';
import { type ViewGroupEntity } from 'src/engine/metadata-modules/view-group/entities/view-group.entity';
-export const destroyOneCoreViewGroup = async ({
+export const destroyOneViewGroup = async ({
input,
gqlFields,
expectToFail,
}: PerformMetadataQueryParams<DestroyViewGroupInput>): CommonResponseBody<{
- destroyCoreViewGroup: ViewGroupEntity;
+ destroyViewGroup: ViewGroupEntity;
}> => {
- const graphqlOperation = destroyCoreViewGroupQueryFactory({
+ const graphqlOperation = destroyViewGroupQueryFactory({
input,
gqlFields,
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-group/utils/destroy-core-view-group-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-group/utils/destroy-view-group-query-factory.util.ts
similarity index 77%
rename from packages/twenty-server/test/integration/metadata/suites/view-group/utils/destroy-core-view-group-query-factory.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-group/utils/destroy-view-group-query-factory.util.ts
index 89478a567a2..1a948af44a2 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-group/utils/destroy-core-view-group-query-factory.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-group/utils/destroy-view-group-query-factory.util.ts
@@ -4,13 +4,13 @@ import { type PerformMetadataQueryParams } from 'test/integration/metadata/types
import { type DestroyViewGroupInput } from 'src/engine/metadata-modules/view-group/dtos/inputs/destroy-view-group.input';
-export const destroyCoreViewGroupQueryFactory = ({
+export const destroyViewGroupQueryFactory = ({
gqlFields = VIEW_GROUP_GQL_FIELDS,
input,
}: PerformMetadataQueryParams<DestroyViewGroupInput>) => ({
query: gql`
- mutation DestroyCoreViewGroup($input: DestroyViewGroupInput!) {
- destroyCoreViewGroup(input: $input) {
+ mutation DestroyViewGroup($input: DestroyViewGroupInput!) {
+ destroyViewGroup(input: $input) {
${gqlFields}
}
}
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-group/utils/find-core-view-groups-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-group/utils/find-view-groups-query-factory.util.ts
similarity index 69%
rename from packages/twenty-server/test/integration/metadata/suites/view-group/utils/find-core-view-groups-query-factory.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-group/utils/find-view-groups-query-factory.util.ts
index a06d2871bb7..c6d80c142eb 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-group/utils/find-core-view-groups-query-factory.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-group/utils/find-view-groups-query-factory.util.ts
@@ -1,7 +1,7 @@
import gql from 'graphql-tag';
import { VIEW_GROUP_GQL_FIELDS } from 'test/integration/constants/view-gql-fields.constants';
-export const findCoreViewGroupsQueryFactory = ({
+export const findViewGroupsQueryFactory = ({
gqlFields = VIEW_GROUP_GQL_FIELDS,
viewId,
}: {
@@ -9,8 +9,8 @@ export const findCoreViewGroupsQueryFactory = ({
viewId: string;
}) => ({
query: gql`
- query GetCoreViewGroups($viewId: String!) {
- getCoreViewGroups(viewId: $viewId) {
+ query GetViewGroups($viewId: String!) {
+ getViewGroups(viewId: $viewId) {
${gqlFields}
}
}
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-group/utils/find-core-view-groups.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-group/utils/find-view-groups.util.ts
similarity index 81%
rename from packages/twenty-server/test/integration/metadata/suites/view-group/utils/find-core-view-groups.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-group/utils/find-view-groups.util.ts
index b9014a1aac6..424abb9ccc4 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-group/utils/find-core-view-groups.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-group/utils/find-view-groups.util.ts
@@ -1,12 +1,12 @@
import { makeMetadataAPIRequest } from 'test/integration/metadata/suites/utils/make-metadata-api-request.util';
-import { findCoreViewGroupsQueryFactory } from 'test/integration/metadata/suites/view-group/utils/find-core-view-groups-query-factory.util';
+import { findViewGroupsQueryFactory } from 'test/integration/metadata/suites/view-group/utils/find-view-groups-query-factory.util';
import { type CommonResponseBody } from 'test/integration/metadata/types/common-response-body.type';
import { warnIfErrorButNotExpectedToFail } from 'test/integration/metadata/utils/warn-if-error-but-not-expected-to-fail.util';
import { warnIfNoErrorButExpectedToFail } from 'test/integration/metadata/utils/warn-if-no-error-but-expected-to-fail.util';
import { type ViewGroupEntity } from 'src/engine/metadata-modules/view-group/entities/view-group.entity';
-export const findCoreViewGroups = async ({
+export const findViewGroups = async ({
viewId,
gqlFields,
expectToFail,
@@ -15,9 +15,9 @@ export const findCoreViewGroups = async ({
gqlFields?: string;
expectToFail?: boolean;
}): CommonResponseBody<{
- getCoreViewGroups: ViewGroupEntity[];
+ getViewGroups: ViewGroupEntity[];
}> => {
- const graphqlOperation = findCoreViewGroupsQueryFactory({
+ const graphqlOperation = findViewGroupsQueryFactory({
viewId,
gqlFields,
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-group/utils/update-one-core-view-group.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-group/utils/update-one-view-group.util.ts
similarity index 83%
rename from packages/twenty-server/test/integration/metadata/suites/view-group/utils/update-one-core-view-group.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-group/utils/update-one-view-group.util.ts
index fe9e2735790..1ef98b5ec25 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-group/utils/update-one-core-view-group.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-group/utils/update-one-view-group.util.ts
@@ -1,5 +1,5 @@
import { makeMetadataAPIRequest } from 'test/integration/metadata/suites/utils/make-metadata-api-request.util';
-import { updateCoreViewGroupQueryFactory } from 'test/integration/metadata/suites/view-group/utils/update-core-view-group-query-factory.util';
+import { updateViewGroupQueryFactory } from 'test/integration/metadata/suites/view-group/utils/update-view-group-query-factory.util';
import { type CommonResponseBody } from 'test/integration/metadata/types/common-response-body.type';
import { type PerformMetadataQueryParams } from 'test/integration/metadata/types/perform-metadata-query.type';
import { warnIfErrorButNotExpectedToFail } from 'test/integration/metadata/utils/warn-if-error-but-not-expected-to-fail.util';
@@ -8,14 +8,14 @@ import { warnIfNoErrorButExpectedToFail } from 'test/integration/metadata/utils/
import { type UpdateViewGroupInput } from 'src/engine/metadata-modules/view-group/dtos/inputs/update-view-group.input';
import { type ViewGroupEntity } from 'src/engine/metadata-modules/view-group/entities/view-group.entity';
-export const updateOneCoreViewGroup = async ({
+export const updateOneViewGroup = async ({
input,
gqlFields,
expectToFail,
}: PerformMetadataQueryParams<UpdateViewGroupInput>): CommonResponseBody<{
- updateCoreViewGroup: ViewGroupEntity;
+ updateViewGroup: ViewGroupEntity;
}> => {
- const graphqlOperation = updateCoreViewGroupQueryFactory({
+ const graphqlOperation = updateViewGroupQueryFactory({
input,
gqlFields,
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-group/utils/update-core-view-group-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-group/utils/update-view-group-query-factory.util.ts
similarity index 77%
rename from packages/twenty-server/test/integration/metadata/suites/view-group/utils/update-core-view-group-query-factory.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-group/utils/update-view-group-query-factory.util.ts
index f6dc1c30c99..ae783090584 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-group/utils/update-core-view-group-query-factory.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-group/utils/update-view-group-query-factory.util.ts
@@ -4,13 +4,13 @@ import { type PerformMetadataQueryParams } from 'test/integration/metadata/types
import { type UpdateViewGroupInput } from 'src/engine/metadata-modules/view-group/dtos/inputs/update-view-group.input';
-export const updateCoreViewGroupQueryFactory = ({
+export const updateViewGroupQueryFactory = ({
gqlFields = VIEW_GROUP_GQL_FIELDS,
input,
}: PerformMetadataQueryParams<UpdateViewGroupInput>) => ({
query: gql`
- mutation UpdateCoreViewGroup($input: UpdateViewGroupInput!) {
- updateCoreViewGroup(input: $input) {
+ mutation UpdateViewGroup($input: UpdateViewGroupInput!) {
+ updateViewGroup(input: $input) {
${gqlFields}
}
}
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-sort/failing-view-sort-creation.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/view-sort/failing-view-sort-creation.integration-spec.ts
index 71e33e42923..62f970c6457 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-sort/failing-view-sort-creation.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-sort/failing-view-sort-creation.integration-spec.ts
@@ -1,8 +1,8 @@
import { expectOneNotInternalServerErrorSnapshot } from 'test/integration/graphql/utils/expect-one-not-internal-server-error-snapshot.util';
import { findManyObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/find-many-object-metadata.util';
-import { createOneCoreViewSort } from 'test/integration/metadata/suites/view-sort/utils/create-one-core-view-sort.util';
-import { createOneCoreView } from 'test/integration/metadata/suites/view/utils/create-one-core-view.util';
-import { destroyOneCoreView } from 'test/integration/metadata/suites/view/utils/destroy-one-core-view.util';
+import { createOneViewSort } from 'test/integration/metadata/suites/view-sort/utils/create-one-view-sort.util';
+import { createOneView } from 'test/integration/metadata/suites/view/utils/create-one-view.util';
+import { destroyOneView } from 'test/integration/metadata/suites/view/utils/destroy-one-view.util';
import { jestExpectToBeDefined } from 'test/utils/jest-expect-to-be-defined.util.test';
import {
eachTestingContextFilter,
@@ -69,7 +69,7 @@ describe('View Sort creation should fail', () => {
jestExpectToBeDefined(companyObjectMetadata);
- const { data: viewData } = await createOneCoreView({
+ const { data: viewData } = await createOneView({
expectToFail: false,
input: {
name: 'Test View For Failing View Sort Creation',
@@ -79,13 +79,13 @@ describe('View Sort creation should fail', () => {
},
});
- createdViewId = viewData?.createCoreView?.id;
+ createdViewId = viewData?.createView?.id;
jestExpectToBeDefined(createdViewId);
});
afterAll(async () => {
if (createdViewId) {
- await destroyOneCoreView({
+ await destroyOneView({
expectToFail: false,
viewId: createdViewId,
});
@@ -95,7 +95,7 @@ describe('View Sort creation should fail', () => {
it.each(eachTestingContextFilter(failingViewSortCreationTestCases))(
'$title',
async ({ context }) => {
- const { errors } = await createOneCoreViewSort({
+ const { errors } = await createOneViewSort({
expectToFail: true,
input: context.input({ createdViewId }),
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-sort/failing-view-sort-deletion.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/view-sort/failing-view-sort-deletion.integration-spec.ts
index ed75d493a8e..7cca79c9273 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-sort/failing-view-sort-deletion.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-sort/failing-view-sort-deletion.integration-spec.ts
@@ -1,5 +1,5 @@
import { expectOneNotInternalServerErrorSnapshot } from 'test/integration/graphql/utils/expect-one-not-internal-server-error-snapshot.util';
-import { deleteOneCoreViewSort } from 'test/integration/metadata/suites/view-sort/utils/delete-one-core-view-sort.util';
+import { deleteOneViewSort } from 'test/integration/metadata/suites/view-sort/utils/delete-one-view-sort.util';
import {
eachTestingContextFilter,
type EachTestingContext,
@@ -23,7 +23,7 @@ describe('View Sort deletion should fail', () => {
it.each(eachTestingContextFilter(failingViewSortDeletionTestCases))(
'$title',
async ({ context }) => {
- const { errors } = await deleteOneCoreViewSort({
+ const { errors } = await deleteOneViewSort({
input: { id: context.id },
expectToFail: true,
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-sort/failing-view-sort-destroy.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/view-sort/failing-view-sort-destroy.integration-spec.ts
index ee2f56a9fb1..68f11384fa3 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-sort/failing-view-sort-destroy.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-sort/failing-view-sort-destroy.integration-spec.ts
@@ -4,7 +4,7 @@ import {
eachTestingContextFilter,
type EachTestingContext,
} from 'twenty-shared/testing';
-import { destroyOneCoreViewSort } from 'test/integration/metadata/suites/view-sort/utils/destroy-one-core-view-sort.util';
+import { destroyOneViewSort } from 'test/integration/metadata/suites/view-sort/utils/destroy-one-view-sort.util';
type TestContext = {
id: string;
@@ -23,7 +23,7 @@ describe('View Sort destroy should fail', () => {
it.each(eachTestingContextFilter(failingViewSortDestroyTestCases))(
'$title',
async ({ context }) => {
- const { errors } = await destroyOneCoreViewSort({
+ const { errors } = await destroyOneViewSort({
input: { id: context.id },
expectToFail: true,
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-sort/failing-view-sort-update.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/view-sort/failing-view-sort-update.integration-spec.ts
index 0bad4b94f13..1ebe389bd6c 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-sort/failing-view-sort-update.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-sort/failing-view-sort-update.integration-spec.ts
@@ -1,5 +1,5 @@
import { expectOneNotInternalServerErrorSnapshot } from 'test/integration/graphql/utils/expect-one-not-internal-server-error-snapshot.util';
-import { updateOneCoreViewSort } from 'test/integration/metadata/suites/view-sort/utils/update-one-core-view-sort.util';
+import { updateOneViewSort } from 'test/integration/metadata/suites/view-sort/utils/update-one-view-sort.util';
import {
eachTestingContextFilter,
type EachTestingContext,
@@ -30,7 +30,7 @@ describe('View Sort update should fail', () => {
it.each(eachTestingContextFilter(failingViewSortUpdateTestCases))(
'$title',
async ({ context }) => {
- const { errors } = await updateOneCoreViewSort({
+ const { errors } = await updateOneViewSort({
expectToFail: true,
input: context.input,
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-sort/successful-view-sort-creation.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/view-sort/successful-view-sort-creation.integration-spec.ts
index c17844f9167..634cd794fac 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-sort/successful-view-sort-creation.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-sort/successful-view-sort-creation.integration-spec.ts
@@ -2,10 +2,10 @@ import { createOneFieldMetadata } from 'test/integration/metadata/suites/field-m
import { createOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/create-one-object-metadata.util';
import { deleteOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/delete-one-object-metadata.util';
import { updateOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/update-one-object-metadata.util';
-import { createOneCoreViewSort } from 'test/integration/metadata/suites/view-sort/utils/create-one-core-view-sort.util';
-import { destroyOneCoreViewSort } from 'test/integration/metadata/suites/view-sort/utils/destroy-one-core-view-sort.util';
-import { createOneCoreView } from 'test/integration/metadata/suites/view/utils/create-one-core-view.util';
-import { destroyOneCoreView } from 'test/integration/metadata/suites/view/utils/destroy-one-core-view.util';
+import { createOneViewSort } from 'test/integration/metadata/suites/view-sort/utils/create-one-view-sort.util';
+import { destroyOneViewSort } from 'test/integration/metadata/suites/view-sort/utils/destroy-one-view-sort.util';
+import { createOneView } from 'test/integration/metadata/suites/view/utils/create-one-view.util';
+import { destroyOneView } from 'test/integration/metadata/suites/view/utils/destroy-one-view.util';
import { jestExpectToBeDefined } from 'test/utils/jest-expect-to-be-defined.util.test';
import { FieldMetadataType, ViewType } from 'twenty-shared/types';
@@ -51,7 +51,7 @@ describe('View Sort creation should succeed', () => {
testFieldMetadataId = fieldMetadataId;
- const { data: viewData } = await createOneCoreView({
+ const { data: viewData } = await createOneView({
expectToFail: false,
input: {
name: 'Test View For View Sort Creation',
@@ -61,13 +61,13 @@ describe('View Sort creation should succeed', () => {
},
});
- createdViewId = viewData?.createCoreView?.id;
+ createdViewId = viewData?.createView?.id;
jestExpectToBeDefined(createdViewId);
});
afterAll(async () => {
if (createdViewId) {
- await destroyOneCoreView({
+ await destroyOneView({
expectToFail: false,
viewId: createdViewId,
});
@@ -87,7 +87,7 @@ describe('View Sort creation should succeed', () => {
afterEach(async () => {
if (createdViewSortId) {
- await destroyOneCoreViewSort({
+ await destroyOneViewSort({
expectToFail: false,
input: { id: createdViewSortId },
});
@@ -96,7 +96,7 @@ describe('View Sort creation should succeed', () => {
});
it('should create a view sort with default direction (ASC)', async () => {
- const { data } = await createOneCoreViewSort({
+ const { data } = await createOneViewSort({
expectToFail: false,
input: {
viewId: createdViewId,
@@ -104,9 +104,9 @@ describe('View Sort creation should succeed', () => {
},
});
- createdViewSortId = data?.createCoreViewSort?.id;
+ createdViewSortId = data?.createViewSort?.id;
- expect(data.createCoreViewSort).toMatchObject({
+ expect(data.createViewSort).toMatchObject({
id: expect.any(String),
viewId: createdViewId,
fieldMetadataId: testFieldMetadataId,
@@ -115,7 +115,7 @@ describe('View Sort creation should succeed', () => {
});
it('should create a view sort with ASC direction', async () => {
- const { data } = await createOneCoreViewSort({
+ const { data } = await createOneViewSort({
expectToFail: false,
input: {
viewId: createdViewId,
@@ -124,9 +124,9 @@ describe('View Sort creation should succeed', () => {
},
});
- createdViewSortId = data?.createCoreViewSort?.id;
+ createdViewSortId = data?.createViewSort?.id;
- expect(data.createCoreViewSort).toMatchObject({
+ expect(data.createViewSort).toMatchObject({
id: expect.any(String),
viewId: createdViewId,
fieldMetadataId: testFieldMetadataId,
@@ -135,7 +135,7 @@ describe('View Sort creation should succeed', () => {
});
it('should create a view sort with DESC direction', async () => {
- const { data } = await createOneCoreViewSort({
+ const { data } = await createOneViewSort({
expectToFail: false,
input: {
viewId: createdViewId,
@@ -144,9 +144,9 @@ describe('View Sort creation should succeed', () => {
},
});
- createdViewSortId = data?.createCoreViewSort?.id;
+ createdViewSortId = data?.createViewSort?.id;
- expect(data.createCoreViewSort).toMatchObject({
+ expect(data.createViewSort).toMatchObject({
id: expect.any(String),
viewId: createdViewId,
fieldMetadataId: testFieldMetadataId,
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-sort/successful-view-sort-deletion.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/view-sort/successful-view-sort-deletion.integration-spec.ts
index 02aa2a6603e..51bcff4ebca 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-sort/successful-view-sort-deletion.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-sort/successful-view-sort-deletion.integration-spec.ts
@@ -2,11 +2,11 @@ import { createOneFieldMetadata } from 'test/integration/metadata/suites/field-m
import { createOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/create-one-object-metadata.util';
import { deleteOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/delete-one-object-metadata.util';
import { updateOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/update-one-object-metadata.util';
-import { createOneCoreViewSort } from 'test/integration/metadata/suites/view-sort/utils/create-one-core-view-sort.util';
-import { deleteOneCoreViewSort } from 'test/integration/metadata/suites/view-sort/utils/delete-one-core-view-sort.util';
-import { destroyOneCoreViewSort } from 'test/integration/metadata/suites/view-sort/utils/destroy-one-core-view-sort.util';
-import { createOneCoreView } from 'test/integration/metadata/suites/view/utils/create-one-core-view.util';
-import { destroyOneCoreView } from 'test/integration/metadata/suites/view/utils/destroy-one-core-view.util';
+import { createOneViewSort } from 'test/integration/metadata/suites/view-sort/utils/create-one-view-sort.util';
+import { deleteOneViewSort } from 'test/integration/metadata/suites/view-sort/utils/delete-one-view-sort.util';
+import { destroyOneViewSort } from 'test/integration/metadata/suites/view-sort/utils/destroy-one-view-sort.util';
+import { createOneView } from 'test/integration/metadata/suites/view/utils/create-one-view.util';
+import { destroyOneView } from 'test/integration/metadata/suites/view/utils/destroy-one-view.util';
import { jestExpectToBeDefined } from 'test/utils/jest-expect-to-be-defined.util.test';
import { FieldMetadataType, ViewType } from 'twenty-shared/types';
@@ -51,7 +51,7 @@ describe('View Sort deletion should succeed', () => {
testFieldMetadataId = fieldMetadataId;
- const { data: viewData } = await createOneCoreView({
+ const { data: viewData } = await createOneView({
expectToFail: false,
input: {
name: 'Test View For View Sort Deletion',
@@ -61,13 +61,13 @@ describe('View Sort deletion should succeed', () => {
},
});
- createdViewId = viewData?.createCoreView?.id;
+ createdViewId = viewData?.createView?.id;
jestExpectToBeDefined(createdViewId);
});
afterAll(async () => {
if (createdViewId) {
- await destroyOneCoreView({
+ await destroyOneView({
expectToFail: false,
viewId: createdViewId,
});
@@ -86,7 +86,7 @@ describe('View Sort deletion should succeed', () => {
});
it('should soft delete a view sort', async () => {
- const { data: createData } = await createOneCoreViewSort({
+ const { data: createData } = await createOneViewSort({
expectToFail: false,
input: {
viewId: createdViewId,
@@ -95,19 +95,19 @@ describe('View Sort deletion should succeed', () => {
},
});
- const viewSortId = createData?.createCoreViewSort?.id;
+ const viewSortId = createData?.createViewSort?.id;
jestExpectToBeDefined(viewSortId);
- const { data: deleteData } = await deleteOneCoreViewSort({
+ const { data: deleteData } = await deleteOneViewSort({
expectToFail: false,
input: { id: viewSortId },
});
- expect(deleteData.deleteCoreViewSort).toBe(true);
+ expect(deleteData.deleteViewSort).toBe(true);
// Clean up
- await destroyOneCoreViewSort({
+ await destroyOneViewSort({
expectToFail: false,
input: { id: viewSortId },
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-sort/successful-view-sort-destroy.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/view-sort/successful-view-sort-destroy.integration-spec.ts
index d0a3ff00b0e..db130df3574 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-sort/successful-view-sort-destroy.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-sort/successful-view-sort-destroy.integration-spec.ts
@@ -2,10 +2,10 @@ import { createOneFieldMetadata } from 'test/integration/metadata/suites/field-m
import { createOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/create-one-object-metadata.util';
import { deleteOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/delete-one-object-metadata.util';
import { updateOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/update-one-object-metadata.util';
-import { createOneCoreViewSort } from 'test/integration/metadata/suites/view-sort/utils/create-one-core-view-sort.util';
-import { destroyOneCoreViewSort } from 'test/integration/metadata/suites/view-sort/utils/destroy-one-core-view-sort.util';
-import { createOneCoreView } from 'test/integration/metadata/suites/view/utils/create-one-core-view.util';
-import { destroyOneCoreView } from 'test/integration/metadata/suites/view/utils/destroy-one-core-view.util';
+import { createOneViewSort } from 'test/integration/metadata/suites/view-sort/utils/create-one-view-sort.util';
+import { destroyOneViewSort } from 'test/integration/metadata/suites/view-sort/utils/destroy-one-view-sort.util';
+import { createOneView } from 'test/integration/metadata/suites/view/utils/create-one-view.util';
+import { destroyOneView } from 'test/integration/metadata/suites/view/utils/destroy-one-view.util';
import { jestExpectToBeDefined } from 'test/utils/jest-expect-to-be-defined.util.test';
import { FieldMetadataType, ViewType } from 'twenty-shared/types';
@@ -50,7 +50,7 @@ describe('View Sort deletion should succeed', () => {
testFieldMetadataId = fieldMetadataId;
- const { data: viewData } = await createOneCoreView({
+ const { data: viewData } = await createOneView({
expectToFail: false,
input: {
name: 'Test View For View Sort Deletion',
@@ -60,13 +60,13 @@ describe('View Sort deletion should succeed', () => {
},
});
- createdViewId = viewData?.createCoreView?.id;
+ createdViewId = viewData?.createView?.id;
jestExpectToBeDefined(createdViewId);
});
afterAll(async () => {
if (createdViewId) {
- await destroyOneCoreView({
+ await destroyOneView({
expectToFail: false,
viewId: createdViewId,
});
@@ -85,7 +85,7 @@ describe('View Sort deletion should succeed', () => {
});
it('should hard delete (destroy) a view sort', async () => {
- const { data: createData } = await createOneCoreViewSort({
+ const { data: createData } = await createOneViewSort({
expectToFail: false,
input: {
viewId: createdViewId,
@@ -94,15 +94,15 @@ describe('View Sort deletion should succeed', () => {
},
});
- const viewSortId = createData?.createCoreViewSort?.id;
+ const viewSortId = createData?.createViewSort?.id;
jestExpectToBeDefined(viewSortId);
- const { data: destroyData } = await destroyOneCoreViewSort({
+ const { data: destroyData } = await destroyOneViewSort({
input: { id: viewSortId },
expectToFail: false,
});
- expect(destroyData.destroyCoreViewSort).toBe(true);
+ expect(destroyData.destroyViewSort).toBe(true);
});
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-sort/successful-view-sort-update.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/view-sort/successful-view-sort-update.integration-spec.ts
index a7b0ad45b08..6bb54587d3f 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-sort/successful-view-sort-update.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-sort/successful-view-sort-update.integration-spec.ts
@@ -2,11 +2,11 @@ import { createOneFieldMetadata } from 'test/integration/metadata/suites/field-m
import { createOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/create-one-object-metadata.util';
import { deleteOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/delete-one-object-metadata.util';
import { updateOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/update-one-object-metadata.util';
-import { createOneCoreViewSort } from 'test/integration/metadata/suites/view-sort/utils/create-one-core-view-sort.util';
-import { destroyOneCoreViewSort } from 'test/integration/metadata/suites/view-sort/utils/destroy-one-core-view-sort.util';
-import { updateOneCoreViewSort } from 'test/integration/metadata/suites/view-sort/utils/update-one-core-view-sort.util';
-import { createOneCoreView } from 'test/integration/metadata/suites/view/utils/create-one-core-view.util';
-import { destroyOneCoreView } from 'test/integration/metadata/suites/view/utils/destroy-one-core-view.util';
+import { createOneViewSort } from 'test/integration/metadata/suites/view-sort/utils/create-one-view-sort.util';
+import { destroyOneViewSort } from 'test/integration/metadata/suites/view-sort/utils/destroy-one-view-sort.util';
+import { updateOneViewSort } from 'test/integration/metadata/suites/view-sort/utils/update-one-view-sort.util';
+import { createOneView } from 'test/integration/metadata/suites/view/utils/create-one-view.util';
+import { destroyOneView } from 'test/integration/metadata/suites/view/utils/destroy-one-view.util';
import { jestExpectToBeDefined } from 'test/utils/jest-expect-to-be-defined.util.test';
import { FieldMetadataType, ViewType } from 'twenty-shared/types';
@@ -52,7 +52,7 @@ describe('View Sort update should succeed', () => {
testFieldMetadataId = fieldMetadataId;
- const { data: viewData } = await createOneCoreView({
+ const { data: viewData } = await createOneView({
expectToFail: false,
input: {
name: 'Test View For View Sort Update',
@@ -62,13 +62,13 @@ describe('View Sort update should succeed', () => {
},
});
- createdViewId = viewData?.createCoreView?.id;
+ createdViewId = viewData?.createView?.id;
jestExpectToBeDefined(createdViewId);
});
afterAll(async () => {
if (createdViewId) {
- await destroyOneCoreView({
+ await destroyOneView({
expectToFail: false,
viewId: createdViewId,
});
@@ -87,7 +87,7 @@ describe('View Sort update should succeed', () => {
});
beforeEach(async () => {
- const { data } = await createOneCoreViewSort({
+ const { data } = await createOneViewSort({
expectToFail: false,
input: {
viewId: createdViewId,
@@ -96,13 +96,13 @@ describe('View Sort update should succeed', () => {
},
});
- createdViewSortId = data?.createCoreViewSort?.id;
+ createdViewSortId = data?.createViewSort?.id;
jestExpectToBeDefined(createdViewSortId);
});
afterEach(async () => {
if (createdViewSortId) {
- await destroyOneCoreViewSort({
+ await destroyOneViewSort({
expectToFail: false,
input: { id: createdViewSortId },
});
@@ -111,7 +111,7 @@ describe('View Sort update should succeed', () => {
});
it('should update direction from ASC to DESC', async () => {
- const { data } = await updateOneCoreViewSort({
+ const { data } = await updateOneViewSort({
expectToFail: false,
input: {
id: createdViewSortId,
@@ -121,14 +121,14 @@ describe('View Sort update should succeed', () => {
},
});
- expect(data.updateCoreViewSort).toMatchObject({
+ expect(data.updateViewSort).toMatchObject({
id: createdViewSortId,
direction: ViewSortDirection.DESC,
});
});
it('should update direction from DESC to ASC', async () => {
- await updateOneCoreViewSort({
+ await updateOneViewSort({
expectToFail: false,
input: {
id: createdViewSortId,
@@ -138,7 +138,7 @@ describe('View Sort update should succeed', () => {
},
});
- const { data } = await updateOneCoreViewSort({
+ const { data } = await updateOneViewSort({
expectToFail: false,
input: {
id: createdViewSortId,
@@ -148,7 +148,7 @@ describe('View Sort update should succeed', () => {
},
});
- expect(data.updateCoreViewSort).toMatchObject({
+ expect(data.updateViewSort).toMatchObject({
id: createdViewSortId,
direction: ViewSortDirection.ASC,
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-sort/utils/create-one-core-view-sort.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-sort/utils/create-one-view-sort.util.ts
similarity index 83%
rename from packages/twenty-server/test/integration/metadata/suites/view-sort/utils/create-one-core-view-sort.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-sort/utils/create-one-view-sort.util.ts
index 7f2d9a27a46..51cde0e680b 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-sort/utils/create-one-core-view-sort.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-sort/utils/create-one-view-sort.util.ts
@@ -1,5 +1,5 @@
import { makeMetadataAPIRequest } from 'test/integration/metadata/suites/utils/make-metadata-api-request.util';
-import { createCoreViewSortQueryFactory } from 'test/integration/metadata/suites/view-sort/utils/create-core-view-sort-query-factory.util';
+import { createViewSortQueryFactory } from 'test/integration/metadata/suites/view-sort/utils/create-view-sort-query-factory.util';
import { type CommonResponseBody } from 'test/integration/metadata/types/common-response-body.type';
import { type PerformMetadataQueryParams } from 'test/integration/metadata/types/perform-metadata-query.type';
import { warnIfErrorButNotExpectedToFail } from 'test/integration/metadata/utils/warn-if-error-but-not-expected-to-fail.util';
@@ -8,14 +8,14 @@ import { warnIfNoErrorButExpectedToFail } from 'test/integration/metadata/utils/
import { type CreateViewSortInput } from 'src/engine/metadata-modules/view-sort/dtos/inputs/create-view-sort.input';
import { type ViewSortDTO } from 'src/engine/metadata-modules/view-sort/dtos/view-sort.dto';
-export const createOneCoreViewSort = async ({
+export const createOneViewSort = async ({
input,
gqlFields,
expectToFail,
}: PerformMetadataQueryParams<CreateViewSortInput>): CommonResponseBody<{
- createCoreViewSort: ViewSortDTO;
+ createViewSort: ViewSortDTO;
}> => {
- const graphqlOperation = createCoreViewSortQueryFactory({
+ const graphqlOperation = createViewSortQueryFactory({
input,
gqlFields,
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-sort/utils/create-core-view-sort-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-sort/utils/create-view-sort-query-factory.util.ts
similarity index 77%
rename from packages/twenty-server/test/integration/metadata/suites/view-sort/utils/create-core-view-sort-query-factory.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-sort/utils/create-view-sort-query-factory.util.ts
index e44bbd16102..f3edc44bf51 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-sort/utils/create-core-view-sort-query-factory.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-sort/utils/create-view-sort-query-factory.util.ts
@@ -4,13 +4,13 @@ import { type PerformMetadataQueryParams } from 'test/integration/metadata/types
import { type CreateViewSortInput } from 'src/engine/metadata-modules/view-sort/dtos/inputs/create-view-sort.input';
-export const createCoreViewSortQueryFactory = ({
+export const createViewSortQueryFactory = ({
gqlFields = VIEW_SORT_GQL_FIELDS,
input,
}: PerformMetadataQueryParams<CreateViewSortInput>) => ({
query: gql`
- mutation CreateCoreViewSort($input: CreateViewSortInput!) {
- createCoreViewSort(input: $input) {
+ mutation CreateViewSort($input: CreateViewSortInput!) {
+ createViewSort(input: $input) {
${gqlFields}
}
}
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-sort/utils/delete-one-core-view-sort.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-sort/utils/delete-one-view-sort.util.ts
similarity index 82%
rename from packages/twenty-server/test/integration/metadata/suites/view-sort/utils/delete-one-core-view-sort.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-sort/utils/delete-one-view-sort.util.ts
index b3c818f4428..0674b6b4392 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-sort/utils/delete-one-core-view-sort.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-sort/utils/delete-one-view-sort.util.ts
@@ -1,5 +1,5 @@
import { makeMetadataAPIRequest } from 'test/integration/metadata/suites/utils/make-metadata-api-request.util';
-import { deleteCoreViewSortQueryFactory } from 'test/integration/metadata/suites/view-sort/utils/delete-core-view-sort-query-factory.util';
+import { deleteViewSortQueryFactory } from 'test/integration/metadata/suites/view-sort/utils/delete-view-sort-query-factory.util';
import { type CommonResponseBody } from 'test/integration/metadata/types/common-response-body.type';
import { type PerformMetadataQueryParams } from 'test/integration/metadata/types/perform-metadata-query.type';
import { warnIfErrorButNotExpectedToFail } from 'test/integration/metadata/utils/warn-if-error-but-not-expected-to-fail.util';
@@ -7,13 +7,13 @@ import { warnIfNoErrorButExpectedToFail } from 'test/integration/metadata/utils/
import { type DeleteViewSortInput } from 'src/engine/metadata-modules/view-sort/dtos/inputs/delete-view-sort.input';
-export const deleteOneCoreViewSort = async ({
+export const deleteOneViewSort = async ({
input,
expectToFail,
}: PerformMetadataQueryParams<DeleteViewSortInput>): CommonResponseBody<{
- deleteCoreViewSort: boolean;
+ deleteViewSort: boolean;
}> => {
- const graphqlOperation = deleteCoreViewSortQueryFactory({
+ const graphqlOperation = deleteViewSortQueryFactory({
input,
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-sort/utils/delete-core-view-sort-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-sort/utils/delete-view-sort-query-factory.util.ts
similarity index 71%
rename from packages/twenty-server/test/integration/metadata/suites/view-sort/utils/delete-core-view-sort-query-factory.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-sort/utils/delete-view-sort-query-factory.util.ts
index ab91509ae43..345126377fc 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-sort/utils/delete-core-view-sort-query-factory.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-sort/utils/delete-view-sort-query-factory.util.ts
@@ -3,12 +3,12 @@ import { type PerformMetadataQueryParams } from 'test/integration/metadata/types
import { type DeleteViewSortInput } from 'src/engine/metadata-modules/view-sort/dtos/inputs/delete-view-sort.input';
-export const deleteCoreViewSortQueryFactory = ({
+export const deleteViewSortQueryFactory = ({
input,
}: PerformMetadataQueryParams<DeleteViewSortInput>) => ({
query: gql`
- mutation DeleteCoreViewSort($input: DeleteViewSortInput!) {
- deleteCoreViewSort(input: $input)
+ mutation DeleteViewSort($input: DeleteViewSortInput!) {
+ deleteViewSort(input: $input)
}
`,
variables: {
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-sort/utils/destroy-one-core-view-sort.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-sort/utils/destroy-one-view-sort.util.ts
similarity index 82%
rename from packages/twenty-server/test/integration/metadata/suites/view-sort/utils/destroy-one-core-view-sort.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-sort/utils/destroy-one-view-sort.util.ts
index 13b25224ede..e10fce7257a 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-sort/utils/destroy-one-core-view-sort.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-sort/utils/destroy-one-view-sort.util.ts
@@ -1,5 +1,5 @@
import { makeMetadataAPIRequest } from 'test/integration/metadata/suites/utils/make-metadata-api-request.util';
-import { destroyCoreViewSortQueryFactory } from 'test/integration/metadata/suites/view-sort/utils/destroy-core-view-sort-query-factory.util';
+import { destroyViewSortQueryFactory } from 'test/integration/metadata/suites/view-sort/utils/destroy-view-sort-query-factory.util';
import { type CommonResponseBody } from 'test/integration/metadata/types/common-response-body.type';
import { type PerformMetadataQueryParams } from 'test/integration/metadata/types/perform-metadata-query.type';
import { warnIfErrorButNotExpectedToFail } from 'test/integration/metadata/utils/warn-if-error-but-not-expected-to-fail.util';
@@ -7,13 +7,13 @@ import { warnIfNoErrorButExpectedToFail } from 'test/integration/metadata/utils/
import { type DestroyViewSortInput } from 'src/engine/metadata-modules/view-sort/dtos/inputs/destroy-view-sort.input';
-export const destroyOneCoreViewSort = async ({
+export const destroyOneViewSort = async ({
input,
expectToFail,
}: PerformMetadataQueryParams<DestroyViewSortInput>): CommonResponseBody<{
- destroyCoreViewSort: boolean;
+ destroyViewSort: boolean;
}> => {
- const graphqlOperation = destroyCoreViewSortQueryFactory({
+ const graphqlOperation = destroyViewSortQueryFactory({
input,
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-sort/utils/destroy-core-view-sort-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-sort/utils/destroy-view-sort-query-factory.util.ts
similarity index 71%
rename from packages/twenty-server/test/integration/metadata/suites/view-sort/utils/destroy-core-view-sort-query-factory.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-sort/utils/destroy-view-sort-query-factory.util.ts
index dc22cc783b0..6debefd8be6 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-sort/utils/destroy-core-view-sort-query-factory.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-sort/utils/destroy-view-sort-query-factory.util.ts
@@ -3,12 +3,12 @@ import { type PerformMetadataQueryParams } from 'test/integration/metadata/types
import { type DestroyViewSortInput } from 'src/engine/metadata-modules/view-sort/dtos/inputs/destroy-view-sort.input';
-export const destroyCoreViewSortQueryFactory = ({
+export const destroyViewSortQueryFactory = ({
input,
}: PerformMetadataQueryParams<DestroyViewSortInput>) => ({
query: gql`
- mutation DestroyCoreViewSort($input: DestroyViewSortInput!) {
- destroyCoreViewSort(input: $input)
+ mutation DestroyViewSort($input: DestroyViewSortInput!) {
+ destroyViewSort(input: $input)
}
`,
variables: {
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-sort/utils/find-core-view-sorts-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-sort/utils/find-view-sorts-query-factory.util.ts
similarity index 70%
rename from packages/twenty-server/test/integration/metadata/suites/view-sort/utils/find-core-view-sorts-query-factory.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-sort/utils/find-view-sorts-query-factory.util.ts
index 59ed1cf19df..36503983f10 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-sort/utils/find-core-view-sorts-query-factory.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-sort/utils/find-view-sorts-query-factory.util.ts
@@ -1,7 +1,7 @@
import gql from 'graphql-tag';
import { VIEW_SORT_GQL_FIELDS } from 'test/integration/constants/view-gql-fields.constants';
-export const findCoreViewSortsQueryFactory = ({
+export const findViewSortsQueryFactory = ({
gqlFields = VIEW_SORT_GQL_FIELDS,
viewId,
}: {
@@ -9,8 +9,8 @@ export const findCoreViewSortsQueryFactory = ({
viewId: string;
}) => ({
query: gql`
- query GetCoreViewSorts($viewId: UUID!) {
- getCoreViewSorts(viewId: $viewId) {
+ query GetViewSorts($viewId: UUID!) {
+ getViewSorts(viewId: $viewId) {
${gqlFields}
}
}
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-sort/utils/find-core-view-sorts.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-sort/utils/find-view-sorts.util.ts
similarity index 81%
rename from packages/twenty-server/test/integration/metadata/suites/view-sort/utils/find-core-view-sorts.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-sort/utils/find-view-sorts.util.ts
index 1e1e1e859d3..b9a85765d9d 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-sort/utils/find-core-view-sorts.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-sort/utils/find-view-sorts.util.ts
@@ -1,12 +1,12 @@
import { makeMetadataAPIRequest } from 'test/integration/metadata/suites/utils/make-metadata-api-request.util';
-import { findCoreViewSortsQueryFactory } from 'test/integration/metadata/suites/view-sort/utils/find-core-view-sorts-query-factory.util';
+import { findViewSortsQueryFactory } from 'test/integration/metadata/suites/view-sort/utils/find-view-sorts-query-factory.util';
import { type CommonResponseBody } from 'test/integration/metadata/types/common-response-body.type';
import { warnIfErrorButNotExpectedToFail } from 'test/integration/metadata/utils/warn-if-error-but-not-expected-to-fail.util';
import { warnIfNoErrorButExpectedToFail } from 'test/integration/metadata/utils/warn-if-no-error-but-expected-to-fail.util';
import { type ViewSortDTO } from 'src/engine/metadata-modules/view-sort/dtos/view-sort.dto';
-export const findCoreViewSorts = async ({
+export const findViewSorts = async ({
viewId,
gqlFields,
expectToFail,
@@ -15,9 +15,9 @@ export const findCoreViewSorts = async ({
gqlFields?: string;
expectToFail?: boolean;
}): CommonResponseBody<{
- getCoreViewSorts: ViewSortDTO[];
+ getViewSorts: ViewSortDTO[];
}> => {
- const graphqlOperation = findCoreViewSortsQueryFactory({
+ const graphqlOperation = findViewSortsQueryFactory({
viewId,
gqlFields,
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-sort/utils/update-one-core-view-sort.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-sort/utils/update-one-view-sort.util.ts
similarity index 83%
rename from packages/twenty-server/test/integration/metadata/suites/view-sort/utils/update-one-core-view-sort.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-sort/utils/update-one-view-sort.util.ts
index c658396b4e5..990ec392250 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-sort/utils/update-one-core-view-sort.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-sort/utils/update-one-view-sort.util.ts
@@ -1,5 +1,5 @@
import { makeMetadataAPIRequest } from 'test/integration/metadata/suites/utils/make-metadata-api-request.util';
-import { updateCoreViewSortQueryFactory } from 'test/integration/metadata/suites/view-sort/utils/update-core-view-sort-query-factory.util';
+import { updateViewSortQueryFactory } from 'test/integration/metadata/suites/view-sort/utils/update-view-sort-query-factory.util';
import { type CommonResponseBody } from 'test/integration/metadata/types/common-response-body.type';
import { type PerformMetadataQueryParams } from 'test/integration/metadata/types/perform-metadata-query.type';
import { warnIfErrorButNotExpectedToFail } from 'test/integration/metadata/utils/warn-if-error-but-not-expected-to-fail.util';
@@ -8,14 +8,14 @@ import { warnIfNoErrorButExpectedToFail } from 'test/integration/metadata/utils/
import { type UpdateViewSortInput } from 'src/engine/metadata-modules/view-sort/dtos/inputs/update-view-sort.input';
import { type ViewSortDTO } from 'src/engine/metadata-modules/view-sort/dtos/view-sort.dto';
-export const updateOneCoreViewSort = async ({
+export const updateOneViewSort = async ({
input,
gqlFields,
expectToFail,
}: PerformMetadataQueryParams<UpdateViewSortInput>): CommonResponseBody<{
- updateCoreViewSort: ViewSortDTO;
+ updateViewSort: ViewSortDTO;
}> => {
- const graphqlOperation = updateCoreViewSortQueryFactory({
+ const graphqlOperation = updateViewSortQueryFactory({
input,
gqlFields,
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view-sort/utils/update-core-view-sort-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/view-sort/utils/update-view-sort-query-factory.util.ts
similarity index 77%
rename from packages/twenty-server/test/integration/metadata/suites/view-sort/utils/update-core-view-sort-query-factory.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view-sort/utils/update-view-sort-query-factory.util.ts
index a85233ea7de..2d9c3d56b4f 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view-sort/utils/update-core-view-sort-query-factory.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view-sort/utils/update-view-sort-query-factory.util.ts
@@ -4,13 +4,13 @@ import { type PerformMetadataQueryParams } from 'test/integration/metadata/types
import { type UpdateViewSortInput } from 'src/engine/metadata-modules/view-sort/dtos/inputs/update-view-sort.input';
-export const updateCoreViewSortQueryFactory = ({
+export const updateViewSortQueryFactory = ({
gqlFields = VIEW_SORT_GQL_FIELDS,
input,
}: PerformMetadataQueryParams<UpdateViewSortInput>) => ({
query: gql`
- mutation UpdateCoreViewSort($input: UpdateViewSortInput!) {
- updateCoreViewSort(input: $input) {
+ mutation UpdateViewSort($input: UpdateViewSortInput!) {
+ updateViewSort(input: $input) {
${gqlFields}
}
}
diff --git a/packages/twenty-server/test/integration/metadata/suites/view/update-one-view-view-groups-side-effect-v2.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/view/update-one-view-view-groups-side-effect-v2.integration-spec.ts
index bfe769364b0..897f744a8d2 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view/update-one-view-view-groups-side-effect-v2.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view/update-one-view-view-groups-side-effect-v2.integration-spec.ts
@@ -4,9 +4,9 @@ import { createOneObjectMetadata } from 'test/integration/metadata/suites/object
import { deleteOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/delete-one-object-metadata.util';
import { getMockCreateObjectInput } from 'test/integration/metadata/suites/object-metadata/utils/generate-mock-create-object-metadata-input';
import { updateOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/update-one-object-metadata.util';
-import { findCoreViewGroups } from 'test/integration/metadata/suites/view-group/utils/find-core-view-groups.util';
-import { createOneCoreView } from 'test/integration/metadata/suites/view/utils/create-one-core-view.util';
-import { updateOneCoreView } from 'test/integration/metadata/suites/view/utils/update-one-core-view.util';
+import { findViewGroups } from 'test/integration/metadata/suites/view-group/utils/find-view-groups.util';
+import { createOneView } from 'test/integration/metadata/suites/view/utils/create-one-view.util';
+import { updateOneView } from 'test/integration/metadata/suites/view/utils/update-one-view.util';
import {
FieldMetadataType,
type EnumFieldMetadataType,
@@ -91,8 +91,8 @@ describe('update-one-view-view-groups-side-effect-v2', () => {
});
const {
- data: { createCoreView: view },
- } = await createOneCoreView({
+ data: { createView: view },
+ } = await createOneView({
input: {
id: faker.string.uuid(),
icon: 'IconKanban',
@@ -106,8 +106,8 @@ describe('update-one-view-view-groups-side-effect-v2', () => {
});
const {
- data: { createCoreView: groupedTableView },
- } = await createOneCoreView({
+ data: { createView: groupedTableView },
+ } = await createOneView({
input: {
id: faker.string.uuid(),
icon: 'IconKanban',
@@ -157,8 +157,8 @@ describe('update-one-view-view-groups-side-effect-v2', () => {
);
const {
- data: { getCoreViewGroups: initialViewGroups },
- } = await findCoreViewGroups({
+ data: { getViewGroups: initialViewGroups },
+ } = await findViewGroups({
viewId: groupedTableViewId,
gqlFields: 'id fieldValue',
expectToFail: false,
@@ -166,7 +166,7 @@ describe('update-one-view-view-groups-side-effect-v2', () => {
expect(initialViewGroups.length).toBe(4);
- await updateOneCoreView({
+ await updateOneView({
viewId: groupedTableViewId,
input: {
id: groupedTableViewId,
@@ -177,8 +177,8 @@ describe('update-one-view-view-groups-side-effect-v2', () => {
});
const {
- data: { getCoreViewGroups: updatedViewGroups },
- } = await findCoreViewGroups({
+ data: { getViewGroups: updatedViewGroups },
+ } = await findViewGroups({
viewId: groupedTableViewId,
gqlFields: 'id fieldValue',
expectToFail: false,
@@ -196,8 +196,8 @@ describe('update-one-view-view-groups-side-effect-v2', () => {
);
const {
- data: { getCoreViewGroups: initialViewGroups },
- } = await findCoreViewGroups({
+ data: { getViewGroups: initialViewGroups },
+ } = await findViewGroups({
viewId,
gqlFields: 'id fieldValue',
expectToFail: false,
@@ -205,7 +205,7 @@ describe('update-one-view-view-groups-side-effect-v2', () => {
expect(initialViewGroups.length).toBe(initialOptions.length + 1); // null option
- await updateOneCoreView({
+ await updateOneView({
viewId,
input: {
id: viewId,
@@ -216,8 +216,8 @@ describe('update-one-view-view-groups-side-effect-v2', () => {
});
const {
- data: { getCoreViewGroups: updatedViewGroups },
- } = await findCoreViewGroups({
+ data: { getViewGroups: updatedViewGroups },
+ } = await findViewGroups({
viewId,
gqlFields: 'id fieldValue',
expectToFail: false,
@@ -244,8 +244,8 @@ describe('update-one-view-view-groups-side-effect-v2', () => {
);
const {
- data: { getCoreViewGroups: initialViewGroups },
- } = await findCoreViewGroups({
+ data: { getViewGroups: initialViewGroups },
+ } = await findViewGroups({
viewId,
gqlFields: 'id fieldValue',
expectToFail: false,
@@ -253,7 +253,7 @@ describe('update-one-view-view-groups-side-effect-v2', () => {
expect(initialViewGroups.length).toBe(statusFieldOptions.length + 1);
- await updateOneCoreView({
+ await updateOneView({
viewId,
input: {
id: viewId,
@@ -264,8 +264,8 @@ describe('update-one-view-view-groups-side-effect-v2', () => {
});
const {
- data: { getCoreViewGroups: updatedViewGroups },
- } = await findCoreViewGroups({
+ data: { getViewGroups: updatedViewGroups },
+ } = await findViewGroups({
viewId,
gqlFields: 'id fieldValue',
expectToFail: false,
diff --git a/packages/twenty-server/test/integration/metadata/suites/view/utils/create-one-core-view.util.ts b/packages/twenty-server/test/integration/metadata/suites/view/utils/create-one-view.util.ts
similarity index 86%
rename from packages/twenty-server/test/integration/metadata/suites/view/utils/create-one-core-view.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view/utils/create-one-view.util.ts
index 26a7664bc28..e5bf7668d49 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view/utils/create-one-core-view.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view/utils/create-one-view.util.ts
@@ -7,16 +7,16 @@ import { warnIfNoErrorButExpectedToFail } from 'test/integration/metadata/utils/
import { type CreateViewInput } from 'src/engine/metadata-modules/view/dtos/inputs/create-view.input';
import { type ViewEntity } from 'src/engine/metadata-modules/view/entities/view.entity';
-import { createCoreViewQueryFactory } from './create-core-view-query-factory.util';
+import { createViewQueryFactory } from './create-view-query-factory.util';
-export const createOneCoreView = async ({
+export const createOneView = async ({
input,
gqlFields,
expectToFail,
}: PerformMetadataQueryParams<CreateViewInput>): CommonResponseBody<{
- createCoreView: ViewEntity;
+ createView: ViewEntity;
}> => {
- const graphqlOperation = createCoreViewQueryFactory({
+ const graphqlOperation = createViewQueryFactory({
input,
gqlFields,
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view/utils/create-core-view-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/view/utils/create-view-query-factory.util.ts
similarity index 78%
rename from packages/twenty-server/test/integration/metadata/suites/view/utils/create-core-view-query-factory.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view/utils/create-view-query-factory.util.ts
index 0d70315a345..3e75953d269 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view/utils/create-core-view-query-factory.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view/utils/create-view-query-factory.util.ts
@@ -4,13 +4,13 @@ import { type PerformMetadataQueryParams } from 'test/integration/metadata/types
import { type CreateViewInput } from 'src/engine/metadata-modules/view/dtos/inputs/create-view.input';
-export const createCoreViewQueryFactory = ({
+export const createViewQueryFactory = ({
gqlFields = VIEW_GQL_FIELDS,
input,
}: PerformMetadataQueryParams<CreateViewInput>) => ({
query: gql`
- mutation CreateCoreView($input: CreateViewInput!) {
- createCoreView(input: $input) {
+ mutation CreateView($input: CreateViewInput!) {
+ createView(input: $input) {
${gqlFields}
}
}
diff --git a/packages/twenty-server/test/integration/metadata/suites/view/utils/delete-core-view-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/view/utils/delete-core-view-query-factory.util.ts
deleted file mode 100644
index 2fa08e8b7ab..00000000000
--- a/packages/twenty-server/test/integration/metadata/suites/view/utils/delete-core-view-query-factory.util.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-import gql from 'graphql-tag';
-
-export const deleteCoreViewQueryFactory = ({ viewId }: { viewId: string }) => ({
- query: gql`
- mutation DeleteCoreView($id: String!) {
- deleteCoreView(id: $id)
- }
- `,
- variables: {
- id: viewId,
- },
-});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view/utils/delete-one-core-view.util.ts b/packages/twenty-server/test/integration/metadata/suites/view/utils/delete-one-view.util.ts
similarity index 80%
rename from packages/twenty-server/test/integration/metadata/suites/view/utils/delete-one-core-view.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view/utils/delete-one-view.util.ts
index 859d14bf760..43f1b20778c 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view/utils/delete-one-core-view.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view/utils/delete-one-view.util.ts
@@ -1,19 +1,19 @@
import { makeMetadataAPIRequest } from 'test/integration/metadata/suites/utils/make-metadata-api-request.util';
-import { deleteCoreViewQueryFactory } from 'test/integration/metadata/suites/view/utils/delete-core-view-query-factory.util';
+import { deleteViewQueryFactory } from 'test/integration/metadata/suites/view/utils/delete-view-query-factory.util';
import { type CommonResponseBody } from 'test/integration/metadata/types/common-response-body.type';
import { warnIfErrorButNotExpectedToFail } from 'test/integration/metadata/utils/warn-if-error-but-not-expected-to-fail.util';
import { warnIfNoErrorButExpectedToFail } from 'test/integration/metadata/utils/warn-if-no-error-but-expected-to-fail.util';
-export const deleteOneCoreView = async ({
+export const deleteOneView = async ({
viewId,
expectToFail,
}: {
viewId: string;
expectToFail?: boolean;
}): CommonResponseBody<{
- deleteCoreView: boolean;
+ deleteView: boolean;
}> => {
- const graphqlOperation = deleteCoreViewQueryFactory({
+ const graphqlOperation = deleteViewQueryFactory({
viewId,
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view/utils/delete-view-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/view/utils/delete-view-query-factory.util.ts
new file mode 100644
index 00000000000..7078d8a2203
--- /dev/null
+++ b/packages/twenty-server/test/integration/metadata/suites/view/utils/delete-view-query-factory.util.ts
@@ -0,0 +1,12 @@
+import gql from 'graphql-tag';
+
+export const deleteViewQueryFactory = ({ viewId }: { viewId: string }) => ({
+ query: gql`
+ mutation DeleteView($id: String!) {
+ deleteView(id: $id)
+ }
+ `,
+ variables: {
+ id: viewId,
+ },
+});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view/utils/destroy-one-core-view.util.ts b/packages/twenty-server/test/integration/metadata/suites/view/utils/destroy-one-view.util.ts
similarity index 80%
rename from packages/twenty-server/test/integration/metadata/suites/view/utils/destroy-one-core-view.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view/utils/destroy-one-view.util.ts
index b52239e04dd..0977f5b363e 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view/utils/destroy-one-core-view.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view/utils/destroy-one-view.util.ts
@@ -1,19 +1,19 @@
import { makeMetadataAPIRequest } from 'test/integration/metadata/suites/utils/make-metadata-api-request.util';
-import { destroyCoreViewQueryFactory } from 'test/integration/metadata/suites/view/utils/destroy-core-view-query-factory.util';
+import { destroyViewQueryFactory } from 'test/integration/metadata/suites/view/utils/destroy-view-query-factory.util';
import { type CommonResponseBody } from 'test/integration/metadata/types/common-response-body.type';
import { warnIfErrorButNotExpectedToFail } from 'test/integration/metadata/utils/warn-if-error-but-not-expected-to-fail.util';
import { warnIfNoErrorButExpectedToFail } from 'test/integration/metadata/utils/warn-if-no-error-but-expected-to-fail.util';
-export const destroyOneCoreView = async ({
+export const destroyOneView = async ({
viewId,
expectToFail,
}: {
viewId: string;
expectToFail?: boolean;
}): CommonResponseBody<{
- destroyCoreView: boolean;
+ destroyView: boolean;
}> => {
- const graphqlOperation = destroyCoreViewQueryFactory({
+ const graphqlOperation = destroyViewQueryFactory({
viewId,
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view/utils/destroy-core-view-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/view/utils/destroy-view-query-factory.util.ts
similarity index 53%
rename from packages/twenty-server/test/integration/metadata/suites/view/utils/destroy-core-view-query-factory.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view/utils/destroy-view-query-factory.util.ts
index 6026418d8f2..048fd1de970 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view/utils/destroy-core-view-query-factory.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view/utils/destroy-view-query-factory.util.ts
@@ -1,13 +1,13 @@
import gql from 'graphql-tag';
-export const destroyCoreViewQueryFactory = ({
+export const destroyViewQueryFactory = ({
viewId,
}: {
viewId: string;
}) => ({
query: gql`
- mutation DestroyCoreView($id: String!) {
- destroyCoreView(id: $id)
+ mutation DestroyView($id: String!) {
+ destroyView(id: $id)
}
`,
variables: {
diff --git a/packages/twenty-server/test/integration/metadata/suites/view/utils/find-one-core-view.util.ts b/packages/twenty-server/test/integration/metadata/suites/view/utils/find-one-view.util.ts
similarity index 83%
rename from packages/twenty-server/test/integration/metadata/suites/view/utils/find-one-core-view.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view/utils/find-one-view.util.ts
index 9c761102ae4..6fcdeec6c38 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view/utils/find-one-core-view.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view/utils/find-one-view.util.ts
@@ -1,12 +1,12 @@
import { makeMetadataAPIRequest } from 'test/integration/metadata/suites/utils/make-metadata-api-request.util';
-import { findCoreViewQueryFactory } from 'test/integration/metadata/suites/view/utils/find-core-view-query-factory.util';
+import { findViewQueryFactory } from 'test/integration/metadata/suites/view/utils/find-view-query-factory.util';
import { type CommonResponseBody } from 'test/integration/metadata/types/common-response-body.type';
import { warnIfErrorButNotExpectedToFail } from 'test/integration/metadata/utils/warn-if-error-but-not-expected-to-fail.util';
import { warnIfNoErrorButExpectedToFail } from 'test/integration/metadata/utils/warn-if-no-error-but-expected-to-fail.util';
import { type ViewDTO } from 'src/engine/metadata-modules/view/dtos/view.dto';
-export const findOneCoreView = async ({
+export const findOneView = async ({
viewId,
gqlFields,
expectToFail,
@@ -15,9 +15,9 @@ export const findOneCoreView = async ({
gqlFields?: string;
expectToFail?: boolean;
}): CommonResponseBody<{
- getCoreView: ViewDTO;
+ getView: ViewDTO;
}> => {
- const graphqlOperation = findCoreViewQueryFactory({
+ const graphqlOperation = findViewQueryFactory({
viewId,
gqlFields,
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view/utils/find-core-view-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/view/utils/find-view-query-factory.util.ts
similarity index 73%
rename from packages/twenty-server/test/integration/metadata/suites/view/utils/find-core-view-query-factory.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view/utils/find-view-query-factory.util.ts
index 2b56f530a36..994ccc36dd1 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view/utils/find-core-view-query-factory.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view/utils/find-view-query-factory.util.ts
@@ -1,7 +1,7 @@
import gql from 'graphql-tag';
import { VIEW_GQL_FIELDS } from 'test/integration/constants/view-gql-fields.constants';
-export const findCoreViewQueryFactory = ({
+export const findViewQueryFactory = ({
gqlFields = VIEW_GQL_FIELDS,
viewId,
}: {
@@ -9,8 +9,8 @@ export const findCoreViewQueryFactory = ({
viewId: string;
}) => ({
query: gql`
- query GetCoreView($id: String!) {
- getCoreView(id: $id) {
+ query GetView($id: String!) {
+ getView(id: $id) {
${gqlFields}
}
}
diff --git a/packages/twenty-server/test/integration/metadata/suites/view/utils/find-core-views-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/view/utils/find-views-query-factory.util.ts
similarity index 69%
rename from packages/twenty-server/test/integration/metadata/suites/view/utils/find-core-views-query-factory.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view/utils/find-views-query-factory.util.ts
index d0f8d7236de..e23f37c394b 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view/utils/find-core-views-query-factory.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view/utils/find-views-query-factory.util.ts
@@ -1,7 +1,7 @@
import gql from 'graphql-tag';
import { VIEW_GQL_FIELDS } from 'test/integration/constants/view-gql-fields.constants';
-export const findCoreViewsQueryFactory = ({
+export const findViewsQueryFactory = ({
gqlFields = VIEW_GQL_FIELDS,
objectMetadataId,
}: {
@@ -9,8 +9,8 @@ export const findCoreViewsQueryFactory = ({
objectMetadataId?: string;
}) => ({
query: gql`
- query GetCoreViews($objectMetadataId: String) {
- getCoreViews(objectMetadataId: $objectMetadataId) {
+ query GetViews($objectMetadataId: String) {
+ getViews(objectMetadataId: $objectMetadataId) {
${gqlFields}
}
}
diff --git a/packages/twenty-server/test/integration/metadata/suites/view/utils/find-core-views.util.ts b/packages/twenty-server/test/integration/metadata/suites/view/utils/find-views.util.ts
similarity index 83%
rename from packages/twenty-server/test/integration/metadata/suites/view/utils/find-core-views.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view/utils/find-views.util.ts
index 8c357c5d590..5072ce71cd7 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view/utils/find-core-views.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view/utils/find-views.util.ts
@@ -1,12 +1,12 @@
import { makeMetadataAPIRequest } from 'test/integration/metadata/suites/utils/make-metadata-api-request.util';
-import { findCoreViewsQueryFactory } from 'test/integration/metadata/suites/view/utils/find-core-views-query-factory.util';
+import { findViewsQueryFactory } from 'test/integration/metadata/suites/view/utils/find-views-query-factory.util';
import { type CommonResponseBody } from 'test/integration/metadata/types/common-response-body.type';
import { warnIfErrorButNotExpectedToFail } from 'test/integration/metadata/utils/warn-if-error-but-not-expected-to-fail.util';
import { warnIfNoErrorButExpectedToFail } from 'test/integration/metadata/utils/warn-if-no-error-but-expected-to-fail.util';
import { type ViewEntity } from 'src/engine/metadata-modules/view/entities/view.entity';
-export const findCoreViews = async ({
+export const findViews = async ({
objectMetadataId,
gqlFields,
expectToFail,
@@ -15,9 +15,9 @@ export const findCoreViews = async ({
gqlFields?: string;
expectToFail?: boolean;
}): CommonResponseBody<{
- getCoreViews: ViewEntity[];
+ getViews: ViewEntity[];
}> => {
- const graphqlOperation = findCoreViewsQueryFactory({
+ const graphqlOperation = findViewsQueryFactory({
objectMetadataId,
gqlFields,
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/view/utils/update-one-core-view.util.ts b/packages/twenty-server/test/integration/metadata/suites/view/utils/update-one-view.util.ts
similarity index 84%
rename from packages/twenty-server/test/integration/metadata/suites/view/utils/update-one-core-view.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view/utils/update-one-view.util.ts
index 104b8859264..d940819cd09 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view/utils/update-one-core-view.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view/utils/update-one-view.util.ts
@@ -1,5 +1,5 @@
import { makeMetadataAPIRequest } from 'test/integration/metadata/suites/utils/make-metadata-api-request.util';
-import { updateCoreViewQueryFactory } from 'test/integration/metadata/suites/view/utils/update-core-view-query-factory.util';
+import { updateViewQueryFactory } from 'test/integration/metadata/suites/view/utils/update-view-query-factory.util';
import { type CommonResponseBody } from 'test/integration/metadata/types/common-response-body.type';
import { warnIfErrorButNotExpectedToFail } from 'test/integration/metadata/utils/warn-if-error-but-not-expected-to-fail.util';
import { warnIfNoErrorButExpectedToFail } from 'test/integration/metadata/utils/warn-if-no-error-but-expected-to-fail.util';
@@ -7,7 +7,7 @@ import { warnIfNoErrorButExpectedToFail } from 'test/integration/metadata/utils/
import { type ViewDTO } from 'src/engine/metadata-modules/view/dtos/view.dto';
import { type UpdateViewInput } from 'src/engine/metadata-modules/view/dtos/inputs/update-view.input';
-export const updateOneCoreView = async ({
+export const updateOneView = async ({
viewId,
input,
gqlFields,
@@ -18,9 +18,9 @@ export const updateOneCoreView = async ({
gqlFields?: string;
expectToFail?: boolean;
}): CommonResponseBody<{
- updateCoreView: ViewDTO;
+ updateView: ViewDTO;
}> => {
- const graphqlOperation = updateCoreViewQueryFactory({
+ const graphqlOperation = updateViewQueryFactory({
viewId,
input,
gqlFields,
diff --git a/packages/twenty-server/test/integration/metadata/suites/view/utils/update-core-view-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/view/utils/update-view-query-factory.util.ts
similarity index 73%
rename from packages/twenty-server/test/integration/metadata/suites/view/utils/update-core-view-query-factory.util.ts
rename to packages/twenty-server/test/integration/metadata/suites/view/utils/update-view-query-factory.util.ts
index 7341115cc1c..55728086771 100644
--- a/packages/twenty-server/test/integration/metadata/suites/view/utils/update-core-view-query-factory.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/view/utils/update-view-query-factory.util.ts
@@ -3,7 +3,7 @@ import { VIEW_GQL_FIELDS } from 'test/integration/constants/view-gql-fields.cons
import { type UpdateViewInput } from 'src/engine/metadata-modules/view/dtos/inputs/update-view.input';
-export const updateCoreViewQueryFactory = ({
+export const updateViewQueryFactory = ({
gqlFields = VIEW_GQL_FIELDS,
viewId,
input,
@@ -13,8 +13,8 @@ export const updateCoreViewQueryFactory = ({
input: UpdateViewInput;
}) => ({
query: gql`
- mutation UpdateCoreView($id: String!, $input: UpdateViewInput!) {
- updateCoreView(id: $id, input: $input) {
+ mutation UpdateView($id: String!, $input: UpdateViewInput!) {
+ updateView(id: $id, input: $input) {
${gqlFields}
}
}
diff --git a/packages/twenty-server/test/integration/rest/suites/view-field.integration-spec.ts b/packages/twenty-server/test/integration/rest/suites/view-field.integration-spec.ts
index 2df93136224..9e38c54f58d 100644
--- a/packages/twenty-server/test/integration/rest/suites/view-field.integration-spec.ts
+++ b/packages/twenty-server/test/integration/rest/suites/view-field.integration-spec.ts
@@ -15,7 +15,7 @@ import {
import { assertViewFieldStructure } from 'test/integration/utils/view-test.util';
import { jestExpectToBeDefined } from 'test/utils/jest-expect-to-be-defined.util.test';
import { FieldMetadataType } from 'twenty-shared/types';
-import { destroyOneCoreViewField } from 'test/integration/metadata/suites/view-field/utils/destroy-one-core-view-field.util';
+import { destroyOneViewField } from 'test/integration/metadata/suites/view-field/utils/destroy-one-view-field.util';
import { type ViewFieldDTO } from 'src/engine/metadata-modules/view-field/dtos/view-field.dto';
import {
@@ -99,7 +99,7 @@ describe('View Field REST API', () => {
afterEach(async () => {
if (!testViewFieldId) return;
- await destroyOneCoreViewField({
+ await destroyOneViewField({
expectToFail: false,
input: {
id: testViewFieldId,
diff --git a/packages/twenty-server/test/integration/rest/suites/view-filter.integration-spec.ts b/packages/twenty-server/test/integration/rest/suites/view-filter.integration-spec.ts
index 08269be415c..06d14e718ad 100644
--- a/packages/twenty-server/test/integration/rest/suites/view-filter.integration-spec.ts
+++ b/packages/twenty-server/test/integration/rest/suites/view-filter.integration-spec.ts
@@ -2,7 +2,7 @@ import { createOneFieldMetadata } from 'test/integration/metadata/suites/field-m
import { createOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/create-one-object-metadata.util';
import { deleteOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/delete-one-object-metadata.util';
import { updateOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/update-one-object-metadata.util';
-import { destroyOneCoreViewFilter } from 'test/integration/metadata/suites/view-filter/utils/destroy-one-core-view-filter.util';
+import { destroyOneViewFilter } from 'test/integration/metadata/suites/view-filter/utils/destroy-one-view-filter.util';
import { makeRestAPIRequest } from 'test/integration/rest/utils/make-rest-api-request.util';
import {
assertRestApiErrorNotFoundResponse,
@@ -91,7 +91,7 @@ describe('View Filter REST API', () => {
afterEach(async () => {
if (!testViewFilterId) return;
- await destroyOneCoreViewFilter({
+ await destroyOneViewFilter({
input: {
id: testViewFilterId,
},
diff --git a/packages/twenty-server/test/integration/rest/suites/view-group.integration-spec.ts b/packages/twenty-server/test/integration/rest/suites/view-group.integration-spec.ts
index 78c43a88051..53d0263fb68 100644
--- a/packages/twenty-server/test/integration/rest/suites/view-group.integration-spec.ts
+++ b/packages/twenty-server/test/integration/rest/suites/view-group.integration-spec.ts
@@ -2,7 +2,7 @@ import { createOneFieldMetadata } from 'test/integration/metadata/suites/field-m
import { createOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/create-one-object-metadata.util';
import { deleteOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/delete-one-object-metadata.util';
import { updateOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/update-one-object-metadata.util';
-import { destroyOneCoreViewGroup } from 'test/integration/metadata/suites/view-group/utils/destroy-one-core-view-group.util';
+import { destroyOneViewGroup } from 'test/integration/metadata/suites/view-group/utils/destroy-one-view-group.util';
import { makeRestAPIRequest } from 'test/integration/rest/utils/make-rest-api-request.util';
import {
assertRestApiErrorNotFoundResponse,
@@ -98,7 +98,7 @@ describe('View Group REST API', () => {
afterEach(async () => {
if (!testViewGroupId) return;
- await destroyOneCoreViewGroup({
+ await destroyOneViewGroup({
input: {
id: testViewGroupId,
},
diff --git a/packages/twenty-server/test/integration/rest/suites/view.integration-spec.ts b/packages/twenty-server/test/integration/rest/suites/view.integration-spec.ts
index d4cfda902a1..639a2a28aa5 100644
--- a/packages/twenty-server/test/integration/rest/suites/view.integration-spec.ts
+++ b/packages/twenty-server/test/integration/rest/suites/view.integration-spec.ts
@@ -2,7 +2,7 @@ import { createOneSelectFieldMetadataForIntegrationTests } from 'test/integratio
import { createOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/create-one-object-metadata.util';
import { deleteOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/delete-one-object-metadata.util';
import { updateOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/update-one-object-metadata.util';
-import { destroyOneCoreView } from 'test/integration/metadata/suites/view/utils/destroy-one-core-view.util';
+import { destroyOneView } from 'test/integration/metadata/suites/view/utils/destroy-one-view.util';
import { makeRestAPIRequest } from 'test/integration/rest/utils/make-rest-api-request.util';
import {
assertRestApiErrorNotFoundResponse,
@@ -65,7 +65,7 @@ describe('View REST API', () => {
afterEach(async () => {
if (!testViewId) return;
- await destroyOneCoreView({
+ await destroyOneView({
viewId: testViewId,
expectToFail: false,
});