chore: Use types from the web package

This commit is contained in:
Faruk AYDIN
2024-01-15 13:30:48 +01:00
parent 7831f2925b
commit 159931a6ea
77 changed files with 934 additions and 378 deletions

View File

@@ -3,7 +3,7 @@ import Grid from '@mui/material/Grid';
import CircularProgress from '@mui/material/CircularProgress';
import Divider from '@mui/material/Divider';
import { useQuery } from '@apollo/client';
import { IApp } from '@automatisch/types';
import { IApp } from 'types';
import PageTitle from 'components/PageTitle';
import Container from 'components/Container';

View File

@@ -6,7 +6,7 @@ import Grid from '@mui/material/Grid';
import Divider from '@mui/material/Divider';
import CircularProgress from '@mui/material/CircularProgress';
import AddIcon from '@mui/icons-material/Add';
import type { IApp } from '@automatisch/types';
import type { IApp } from 'types';
import Can from 'components/Can';
import NoResultFound from 'components/NoResultFound';

View File

@@ -1,5 +1,5 @@
import { useMutation } from '@apollo/client';
import { TSamlAuthProvider, TSamlAuthProviderRole } from '@automatisch/types';
import { TSamlAuthProvider, TSamlAuthProviderRole } from 'types';
import LoadingButton from '@mui/lab/LoadingButton';
import Divider from '@mui/material/Divider';
import Stack from '@mui/material/Stack';
@@ -65,8 +65,8 @@ function RoleMappings({ provider, providerLoading }: RoleMappingsProps) {
enqueueSnackbar(formatMessage('roleMappingsForm.successfullySaved'), {
variant: 'success',
SnackbarProps: {
'data-test': 'snackbar-update-role-mappings-success'
}
'data-test': 'snackbar-update-role-mappings-success',
},
});
}
} catch (error) {

View File

@@ -1,5 +1,5 @@
import { useFieldArray, useFormContext } from 'react-hook-form';
import { IRole } from '@automatisch/types';
import { IRole } from 'types';
import MuiTextField from '@mui/material/TextField';
import Stack from '@mui/material/Stack';
import DeleteIcon from '@mui/icons-material/Delete';

View File

@@ -1,5 +1,5 @@
import { QueryResult, useMutation } from '@apollo/client';
import { IRole, TSamlAuthProvider } from '@automatisch/types';
import { IRole, TSamlAuthProvider } from 'types';
import LoadingButton from '@mui/lab/LoadingButton';
import Stack from '@mui/material/Stack';
import MuiTextField from '@mui/material/TextField';
@@ -94,8 +94,8 @@ function SamlConfiguration({
enqueueSnackbar(formatMessage('authenticationForm.successfullySaved'), {
variant: 'success',
SnackbarProps: {
'data-test': 'snackbar-save-saml-provider-success'
}
'data-test': 'snackbar-save-saml-provider-success',
},
});
} catch (error) {
throw new Error('Failed while saving!');

View File

@@ -1,5 +1,5 @@
import { useMutation } from '@apollo/client';
import { IRole, IUser } from '@automatisch/types';
import { IRole, IUser } from 'types';
import LoadingButton from '@mui/lab/LoadingButton';
import Grid from '@mui/material/Grid';
import Stack from '@mui/material/Stack';

View File

@@ -1,5 +1,5 @@
import { useMutation } from '@apollo/client';
import { IRole, IUser } from '@automatisch/types';
import { IRole, IUser } from 'types';
import LoadingButton from '@mui/lab/LoadingButton';
import Grid from '@mui/material/Grid';
import Skeleton from '@mui/material/Skeleton';

View File

@@ -5,7 +5,7 @@ import Grid from '@mui/material/Grid';
import Box from '@mui/material/Box';
import AlertTitle from '@mui/material/AlertTitle';
import Alert from '@mui/material/Alert';
import type { IExecutionStep } from '@automatisch/types';
import type { IExecutionStep } from 'types';
import useFormatMessage from 'hooks/useFormatMessage';
import ExecutionHeader from 'components/ExecutionHeader';

View File

@@ -7,7 +7,7 @@ import CircularProgress from '@mui/material/CircularProgress';
import Divider from '@mui/material/Divider';
import Pagination from '@mui/material/Pagination';
import PaginationItem from '@mui/material/PaginationItem';
import type { IExecution } from '@automatisch/types';
import type { IExecution } from 'types';
import NoResultFound from 'components/NoResultFound';
import ExecutionRow from 'components/ExecutionRow';

View File

@@ -9,7 +9,7 @@ import CircularProgress from '@mui/material/CircularProgress';
import Divider from '@mui/material/Divider';
import Pagination from '@mui/material/Pagination';
import PaginationItem from '@mui/material/PaginationItem';
import type { IFlow } from '@automatisch/types';
import type { IFlow } from 'types';
import Can from 'components/Can';
import FlowRow from 'components/FlowRow';