-
Notifications
You must be signed in to change notification settings - Fork 193
Expand file tree
/
Copy pathconfig.ts
More file actions
91 lines (89 loc) · 2.02 KB
/
config.ts
File metadata and controls
91 lines (89 loc) · 2.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
import { EnumValuesMap, RawConfig } from '@graphql-codegen/visitor-plugin-common';
export interface KotlinResolversPluginRawConfig extends RawConfig {
/**
* @description Customize the Java package name. The default package name will be generated according to the output file path.
*
* @exampleMarkdown
* ```yaml
* generates:
* src/main/kotlin/my-org/my-app/Resolvers.kt:
* plugins:
* - kotlin
* config:
* package: custom.package.name
* ```
*/
package?: string;
/**
* @description Overrides the default value of enum values declared in your GraphQL schema.
*
* @exampleMarkdown
* ```yaml
* config:
* enumValues:
* MyEnum:
* A: 'foo'
* ```
*/
enumValues?: EnumValuesMap;
/**
* @default Iterable
* @description Allow you to customize the list type
*
* @exampleMarkdown
* ```yaml
* generates:
* src/main/kotlin/my-org/my-app/Types.kt:
* plugins:
* - kotlin
* config:
* listType: Map
* ```
*/
listType?: string;
/**
* @default false
* @description Allow you to enable generation for the types
*
* @exampleMarkdown
* ```yaml
* generates:
* src/main/kotlin/my-org/my-app/Types.kt:
* plugins:
* - kotlin
* config:
* withTypes: true
* ```
*/
withTypes?: boolean;
/**
* @default false
* @description Allow you to omit JvmStatic annotation
*
* @exampleMarkdoWn
* ```yaml
* generates:
* src/main/kotlin/my-org/my-app/Types.kt:
* plugins:
* - kotlin
* config:
* omitJvmStatic: true
* ```
*/
omitJvmStatic?: boolean;
/**
* @default false
* @description Enable Jakarta Validation annotations from GraphQL directives
*
* @exampleMarkdown
* ```yaml
* generates:
* src/main/kotlin/my-org/my-app/Types.kt:
* plugins:
* - kotlin
* config:
* validationAnnotations: true
* ```
*/
validationAnnotations?: boolean;
}