mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-24 20:42:05 +03:00
9f6a6c3282
- add sync email onboarding step - refactor calendar and email visibility enums - add a new table `keyValuePair` in `core` schema - add a new resolved boolean field `skipSyncEmail` in current user https://github.com/twentyhq/twenty/assets/29927851/de791475-5bfe-47f9-8e90-76c349fba56f
35 lines
866 B
TypeScript
35 lines
866 B
TypeScript
import { CodegenConfig } from '@graphql-codegen/cli';
|
|
|
|
const config: CodegenConfig = {
|
|
schema: [
|
|
{
|
|
[`${import.meta.env.VITE_SERVER_BASE_URL}/graphql`]: {
|
|
// some of the mutations and queries require authorization (people or companies)
|
|
// so to regenerate the schema with types we need to pass an auth token
|
|
headers: {
|
|
Authorization: `Bearer ${import.meta.env.AUTH_TOKEN}`,
|
|
},
|
|
},
|
|
},
|
|
],
|
|
overwrite: true,
|
|
documents: ['./src/**/*.ts', '!src/generated/**/*.*'],
|
|
generates: {
|
|
'./src/generated/graphql.tsx': {
|
|
plugins: [
|
|
'typescript',
|
|
'typescript-operations',
|
|
'typescript-react-apollo',
|
|
],
|
|
config: {
|
|
skipTypename: true,
|
|
withHooks: true,
|
|
withHOC: false,
|
|
withComponent: false,
|
|
},
|
|
},
|
|
},
|
|
};
|
|
|
|
export default config;
|