UNPKG

1.63 kBTypeScriptView Raw
1import { RawConfig, EnumValuesMap } from '@graphql-codegen/visitor-plugin-common';
2/**
3 * @description This plugin generates C# `class` identifier for your schema types.
4 */
5export interface CSharpResolversPluginRawConfig extends RawConfig {
6 /**
7 * @description Overrides the default value of enum values declared in your GraphQL schema.
8 * @exampleMarkdown
9 * ## With Custom Values
10 * ```yml
11 * config:
12 * enumValues:
13 * MyEnum:
14 * A: 'foo'
15 * ```
16 */
17 enumValues?: EnumValuesMap;
18 /**
19 * @default GraphQLCodeGen
20 * @description Allow you to customize the namespace name.
21 *
22 * @exampleMarkdown
23 * ```yml
24 * generates:
25 * src/main/c-sharp/my-org/my-app/MyTypes.cs:
26 * plugins:
27 * - c-sharp
28 * config:
29 * namespaceName: MyCompany.MyNamespace
30 * ```
31 */
32 namespaceName?: string;
33 /**
34 * @default Types
35 * @description Allow you to customize the parent class name.
36 *
37 * @exampleMarkdown
38 * ```yml
39 * generates:
40 * src/main/c-sharp/my-org/my-app/MyGeneratedTypes.cs:
41 * plugins:
42 * - c-sharp
43 * config:
44 * className: MyGeneratedTypes
45 * ```
46 */
47 className?: string;
48 /**
49 * @default IEnumberable
50 * @description Allow you to customize the list type
51 *
52 * @exampleMarkdown
53 * ```yml
54 * generates:
55 * src/main/c-sharp/my-org/my-app/Types.cs:
56 * plugins:
57 * - c-sharp
58 * config:
59 * listType: Map
60 * ```
61 */
62 listType?: string;
63}