@graphql-codegen/kotlin 2.2.8 → 2.2.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/config.d.ts CHANGED
@@ -4,7 +4,7 @@ export interface KotlinResolversPluginRawConfig extends RawConfig {
4
4
  * @description Customize the Java package name. The default package name will be generated according to the output file path.
5
5
  *
6
6
  * @exampleMarkdown
7
- * ```yml
7
+ * ```yaml
8
8
  * generates:
9
9
  * src/main/kotlin/my-org/my-app/Resolvers.kt:
10
10
  * plugins:
@@ -18,7 +18,7 @@ export interface KotlinResolversPluginRawConfig extends RawConfig {
18
18
  * @description Overrides the default value of enum values declared in your GraphQL schema.
19
19
  *
20
20
  * @exampleMarkdown
21
- * ```yml
21
+ * ```yaml
22
22
  * config:
23
23
  * enumValues:
24
24
  * MyEnum:
@@ -31,7 +31,7 @@ export interface KotlinResolversPluginRawConfig extends RawConfig {
31
31
  * @description Allow you to customize the list type
32
32
  *
33
33
  * @exampleMarkdown
34
- * ```yml
34
+ * ```yaml
35
35
  * generates:
36
36
  * src/main/kotlin/my-org/my-app/Types.kt:
37
37
  * plugins:
@@ -46,7 +46,7 @@ export interface KotlinResolversPluginRawConfig extends RawConfig {
46
46
  * @description Allow you to enable generation for the types
47
47
  *
48
48
  * @exampleMarkdown
49
- * ```yml
49
+ * ```yaml
50
50
  * generates:
51
51
  * src/main/kotlin/my-org/my-app/Types.kt:
52
52
  * plugins:
@@ -61,7 +61,7 @@ export interface KotlinResolversPluginRawConfig extends RawConfig {
61
61
  * @description Allow you to omit JvmStatic annotation
62
62
  *
63
63
  * @exampleMarkdoWn
64
- * ```yml
64
+ * ```yaml
65
65
  * generates:
66
66
  * src/main/kotlin/my-org/my-app/Types.kt:
67
67
  * plugins:
package/index.js CHANGED
@@ -72,11 +72,11 @@ ${enumValues}
72
72
  typeName: this.scalars[schemaType.name],
73
73
  isScalar: true,
74
74
  isArray,
75
- nullable: nullable,
75
+ nullable,
76
76
  };
77
77
  }
78
78
  else {
79
- result = { isArray, baseType: 'Any', typeName: 'Any', isScalar: true, nullable: nullable };
79
+ result = { isArray, baseType: 'Any', typeName: 'Any', isScalar: true, nullable };
80
80
  }
81
81
  }
82
82
  else if (graphql.isInputObjectType(schemaType)) {
@@ -84,10 +84,10 @@ ${enumValues}
84
84
  const typeName = convertedName.endsWith('Input') ? convertedName : `${convertedName}Input`;
85
85
  result = {
86
86
  baseType: typeName,
87
- typeName: typeName,
87
+ typeName,
88
88
  isScalar: false,
89
89
  isArray,
90
- nullable: nullable,
90
+ nullable,
91
91
  };
92
92
  }
93
93
  else if (graphql.isEnumType(schemaType) || graphql.isObjectType(schemaType)) {
@@ -96,11 +96,11 @@ ${enumValues}
96
96
  baseType: this.convertName(schemaType.name),
97
97
  typeName: this.convertName(schemaType.name),
98
98
  isScalar: true,
99
- nullable: nullable,
99
+ nullable,
100
100
  };
101
101
  }
102
102
  else {
103
- result = { isArray, baseType: 'Any', typeName: 'Any', isScalar: true, nullable: nullable };
103
+ result = { isArray, baseType: 'Any', typeName: 'Any', isScalar: true, nullable };
104
104
  }
105
105
  if (result) {
106
106
  result.typeName = javaCommon.wrapTypeWithModifiers(result.typeName, typeNode, this.config.listType);
package/index.mjs CHANGED
@@ -68,11 +68,11 @@ ${enumValues}
68
68
  typeName: this.scalars[schemaType.name],
69
69
  isScalar: true,
70
70
  isArray,
71
- nullable: nullable,
71
+ nullable,
72
72
  };
73
73
  }
74
74
  else {
75
- result = { isArray, baseType: 'Any', typeName: 'Any', isScalar: true, nullable: nullable };
75
+ result = { isArray, baseType: 'Any', typeName: 'Any', isScalar: true, nullable };
76
76
  }
77
77
  }
78
78
  else if (isInputObjectType(schemaType)) {
@@ -80,10 +80,10 @@ ${enumValues}
80
80
  const typeName = convertedName.endsWith('Input') ? convertedName : `${convertedName}Input`;
81
81
  result = {
82
82
  baseType: typeName,
83
- typeName: typeName,
83
+ typeName,
84
84
  isScalar: false,
85
85
  isArray,
86
- nullable: nullable,
86
+ nullable,
87
87
  };
88
88
  }
89
89
  else if (isEnumType(schemaType) || isObjectType(schemaType)) {
@@ -92,11 +92,11 @@ ${enumValues}
92
92
  baseType: this.convertName(schemaType.name),
93
93
  typeName: this.convertName(schemaType.name),
94
94
  isScalar: true,
95
- nullable: nullable,
95
+ nullable,
96
96
  };
97
97
  }
98
98
  else {
99
- result = { isArray, baseType: 'Any', typeName: 'Any', isScalar: true, nullable: nullable };
99
+ result = { isArray, baseType: 'Any', typeName: 'Any', isScalar: true, nullable };
100
100
  }
101
101
  if (result) {
102
102
  result.typeName = wrapTypeWithModifiers(result.typeName, typeNode, this.config.listType);
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@graphql-codegen/kotlin",
3
- "version": "2.2.8",
3
+ "version": "2.2.11",
4
4
  "description": "GraphQL Code Generator plugin for generating Kotlin code based on a GraphQL schema",
5
5
  "peerDependencies": {
6
6
  "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"
7
7
  },
8
8
  "dependencies": {
9
- "@graphql-codegen/java-common": "^2.1.14",
9
+ "@graphql-codegen/java-common": "^2.1.17",
10
10
  "@graphql-codegen/plugin-helpers": "^2.4.0",
11
- "@graphql-codegen/visitor-plugin-common": "2.7.3",
12
- "tslib": "~2.3.0"
11
+ "@graphql-codegen/visitor-plugin-common": "2.7.6",
12
+ "tslib": "~2.4.0"
13
13
  },
14
14
  "repository": {
15
15
  "type": "git",