mirror of
https://github.com/unraid/api.git
synced 2025-12-31 05:29:48 -06:00
<!-- 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 -->
42 lines
835 B
TypeScript
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;
|