Files
api/web/codegen.ts
Eli Bosley 9714b21c5c fix: no sizeRootFs unless queried (#1710)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
  - sizeRootFs now reported in bytes as BigInt.
- Container listings include size only when requested; caching
distinguishes size vs no-size.
- New Docker-related fields: per-container update statuses,
rebuild/update indicators, spinning state, and a mutation to refresh
docker digests.
- **Tests**
- Added unit tests for GraphQL field inspection and container size/cache
behavior.
- **Chores**
  - Version bumped to 4.22.2.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-09-16 12:01:49 -04:00

42 lines
835 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',
PrefixedID: 'string',
BigInt: 'number',
},
},
generates: {
'src/composables/gql/': {
preset: 'client',
config: {
useTypeImports: true,
},
schema: '../api/generated-schema.graphql',
plugins: [
{
add: {
content: '/* eslint-disable */',
},
},
],
},
},
};
export default config;