Files
api/web/codegen.ts
Eli Bosley f5724abffb feat: code first graphql (#1347)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Enhanced API capabilities with improved GraphQL interfaces for remote
access, parity checks, notifications, and virtual machine controls.
- Introduction of dynamic remote access settings and refined online
status and service monitoring.
- New `ParityCheckMutationsResolver` for managing parity check
operations through GraphQL.

- **Refactor**
- Consolidated and renamed internal types and schema definitions to
improve consistency and performance.
  - Removed deprecated legacy schemas to streamline the API.
- Updated import paths for various types to reflect new module
structures.

- **Chore**
- Updated environment configurations and test setups to support the new
logging and configuration mechanisms.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-04-11 15:03:01 -04:00

43 lines
782 B
TypeScript

import type { CodegenConfig } from '@graphql-codegen/cli';
const config: CodegenConfig = {
overwrite: true,
documents: ['./**/**/*.ts'],
ignoreNoDocuments: false,
config: {
namingConvention: {
enumValues: 'change-case-all#upperCase',
transformUnderscore: true,
},
scalars: {
DateTime: 'string',
Long: 'number',
JSON: 'any',
URL: 'URL',
Port: 'number',
UUID: 'string',
},
},
generates: {
'composables/gql/': {
preset: 'client',
config: {
useTypeImports: true,
},
schema: '../api/generated-schema.graphql',
plugins: [
{
add: {
content: '/* eslint-disable */',
},
},
],
},
},
};
export default config;