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** - Introduced new GraphQL operations for comprehensive virtual machine control (start, stop, pause, resume, force stop, reboot, reset). - Enhanced API authentication and authorization with standardized roles and permission checks. - Added a configuration template that streamlines server setup and improves remote access and parity management. - New functionality for managing parity checks within the array service, including state validation and conditional command execution. - New types and mutations for array and virtual machine management in the GraphQL schema. - Added a new directive for authorization control within the GraphQL schema. - Introduced a new utility for generating authentication enum type definitions. - Added a new configuration file template for server access and authentication details. - Updated the configuration file version to reflect the latest changes. - **Improvements** - Upgraded core dependencies for better stability and performance. - Refined notification handling and error feedback for a more responsive user experience. - Improved error handling and logging for API key management and validation processes. - Updated configuration versioning for enhanced compatibility. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
39 lines
739 B
TypeScript
39 lines
739 B
TypeScript
import type { CodegenConfig } from '@graphql-codegen/cli';
|
|
|
|
const config: CodegenConfig = {
|
|
overwrite: true,
|
|
documents: ['./**/**/*.ts'],
|
|
ignoreNoDocuments: false,
|
|
config: {
|
|
namingConvention: {
|
|
typeNames: './fix-array-type.js',
|
|
},
|
|
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;
|