Separate system operations from core objects in GraphQL endpoints (#12977)
Moves system-level operations (auth, billing, admin) to use the /metadata endpoint instead of /graphql. This cleans up the endpoint separation so /graphql is purely for core objects (Company, People, etc.) and /metadata handles all system operations. Part of prep work for webhook/API key core migration.
This commit is contained in:
@ -17,7 +17,7 @@ import { useIsMobile } from 'twenty-ui/utilities';
|
||||
import {
|
||||
OnboardingStatus,
|
||||
useSkipBookOnboardingStepMutation,
|
||||
} from '~/generated/graphql';
|
||||
} from '~/generated-metadata/graphql';
|
||||
|
||||
const StyledModalFooter = styled(Modal.Footer)`
|
||||
height: auto;
|
||||
|
||||
@ -7,7 +7,7 @@ import styled from '@emotion/styled';
|
||||
import { Trans, useLingui } from '@lingui/react/macro';
|
||||
import { Link } from 'react-router-dom';
|
||||
import { LightButton, MainButton } from 'twenty-ui/input';
|
||||
import { useSkipBookOnboardingStepMutation } from '~/generated/graphql';
|
||||
import { useSkipBookOnboardingStepMutation } from '~/generated-metadata/graphql';
|
||||
|
||||
const StyledCoverImage = styled.img`
|
||||
border-radius: ${({ theme }) => theme.border.radius.sm};
|
||||
|
||||
@ -27,7 +27,7 @@ import {
|
||||
BillingPlanKey,
|
||||
BillingPriceLicensedDto,
|
||||
useBillingBaseProductPricesQuery,
|
||||
} from '~/generated/graphql';
|
||||
} from '~/generated-metadata/graphql';
|
||||
|
||||
const StyledSubscriptionContainer = styled.div<{
|
||||
withLongerMarginBottom: boolean;
|
||||
|
||||
@ -25,7 +25,7 @@ import { isDefined } from 'twenty-shared/utils';
|
||||
import { H2Title } from 'twenty-ui/display';
|
||||
import { Loader } from 'twenty-ui/feedback';
|
||||
import { MainButton } from 'twenty-ui/input';
|
||||
import { useActivateWorkspaceMutation } from '~/generated/graphql';
|
||||
import { useActivateWorkspaceMutation } from '~/generated-metadata/graphql';
|
||||
|
||||
const StyledContentContainer = styled.div`
|
||||
width: 100%;
|
||||
|
||||
@ -13,7 +13,7 @@ import { IconCheck } from 'twenty-ui/display';
|
||||
import { Loader } from 'twenty-ui/feedback';
|
||||
import { MainButton } from 'twenty-ui/input';
|
||||
import { AnimatedEaseIn } from 'twenty-ui/utilities';
|
||||
import { useGetCurrentUserLazyQuery } from '~/generated/graphql';
|
||||
import { useGetCurrentUserLazyQuery } from '~/generated-metadata/graphql';
|
||||
import { useNavigateApp } from '~/hooks/useNavigateApp';
|
||||
|
||||
const StyledModalContent = styled(Modal.Content)`
|
||||
|
||||
@ -26,7 +26,7 @@ import {
|
||||
CalendarChannelVisibility,
|
||||
MessageChannelVisibility,
|
||||
useSkipSyncEmailOnboardingStepMutation,
|
||||
} from '~/generated/graphql';
|
||||
} from '~/generated-metadata/graphql';
|
||||
|
||||
const StyledSyncEmailsContainer = styled.div`
|
||||
display: flex;
|
||||
|
||||
Reference in New Issue
Block a user