Initial commit: Extract base Zabbix GraphQl - API functionality from VCR Project and add dynamic schema samples
This commit is contained in:
commit
92ffe71684
42 changed files with 4234 additions and 0 deletions
23
codegen.ts
Normal file
23
codegen.ts
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
import type {CodegenConfig} from '@graphql-codegen/cli';
|
||||
|
||||
const config: CodegenConfig = {
|
||||
overwrite: true,
|
||||
schema: './schema.graphql',
|
||||
generates: {
|
||||
"src/generated/graphql.ts": {
|
||||
plugins: ["typescript", "typescript-resolvers"],
|
||||
config: {
|
||||
enumValues: {
|
||||
DeviceCommunicationType: "../model/model_enum_values.js#DeviceCommunicationType",
|
||||
StorageItemType: "../model/model_enum_values.js#StorageItemType",
|
||||
DeviceStatus: "../model/model_enum_values.js#DeviceStatus",
|
||||
Permission: "../model/model_enum_values.js#Permission",
|
||||
},
|
||||
declarationKind: 'interface'
|
||||
}
|
||||
}
|
||||
},
|
||||
watch: true
|
||||
};
|
||||
|
||||
export default config;
|
||||
Loading…
Add table
Add a link
Reference in a new issue