@graphql-codegen/typescript-operations 4.0.0-alpha-20230522172441-e282e8469 → 4.0.0-alpha-20230523175136-9810ec665

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/cjs/visitor.js CHANGED
@@ -41,6 +41,7 @@ class TypeScriptDocumentsVisitor extends visitor_plugin_common_1.BaseDocumentsVi
41
41
  namespacedImportName: this.config.namespacedImportName,
42
42
  convertName: this.convertName.bind(this),
43
43
  enumPrefix: this.config.enumPrefix,
44
+ enumSuffix: this.config.enumSuffix,
44
45
  scalars: this.scalars,
45
46
  formatNamedField,
46
47
  wrapTypeWithModifiers(baseType, type) {
@@ -51,7 +52,7 @@ class TypeScriptDocumentsVisitor extends visitor_plugin_common_1.BaseDocumentsVi
51
52
  const processor = new (preResolveTypes ? visitor_plugin_common_1.PreResolveTypesProcessor : ts_selection_set_processor_js_1.TypeScriptSelectionSetProcessor)(processorConfig);
52
53
  this.setSelectionSetHandler(new visitor_plugin_common_1.SelectionSetToObject(processor, this.scalars, this.schema, this.convertName.bind(this), this.getFragmentSuffix.bind(this), allFragments, this.config));
53
54
  const enumsNames = Object.keys(schema.getTypeMap()).filter(typeName => (0, graphql_1.isEnumType)(schema.getType(typeName)));
54
- this.setVariablesTransformer(new ts_operation_variables_to_object_js_1.TypeScriptOperationVariablesToObject(this.scalars, this.convertName.bind(this), this.config.avoidOptionals.object, this.config.immutableTypes, this.config.namespacedImportName, enumsNames, this.config.enumPrefix, this.config.enumValues, this.config.arrayInputCoercion, undefined, 'InputMaybe'));
55
+ this.setVariablesTransformer(new ts_operation_variables_to_object_js_1.TypeScriptOperationVariablesToObject(this.scalars, this.convertName.bind(this), this.config.avoidOptionals.object, this.config.immutableTypes, this.config.namespacedImportName, enumsNames, this.config.enumPrefix, this.config.enumSuffix, this.config.enumValues, this.config.arrayInputCoercion, undefined, 'InputMaybe'));
55
56
  this._declarationBlockConfig = {
56
57
  ignoreExport: this.config.noExport,
57
58
  };
package/esm/visitor.js CHANGED
@@ -37,6 +37,7 @@ export class TypeScriptDocumentsVisitor extends BaseDocumentsVisitor {
37
37
  namespacedImportName: this.config.namespacedImportName,
38
38
  convertName: this.convertName.bind(this),
39
39
  enumPrefix: this.config.enumPrefix,
40
+ enumSuffix: this.config.enumSuffix,
40
41
  scalars: this.scalars,
41
42
  formatNamedField,
42
43
  wrapTypeWithModifiers(baseType, type) {
@@ -47,7 +48,7 @@ export class TypeScriptDocumentsVisitor extends BaseDocumentsVisitor {
47
48
  const processor = new (preResolveTypes ? PreResolveTypesProcessor : TypeScriptSelectionSetProcessor)(processorConfig);
48
49
  this.setSelectionSetHandler(new SelectionSetToObject(processor, this.scalars, this.schema, this.convertName.bind(this), this.getFragmentSuffix.bind(this), allFragments, this.config));
49
50
  const enumsNames = Object.keys(schema.getTypeMap()).filter(typeName => isEnumType(schema.getType(typeName)));
50
- this.setVariablesTransformer(new TypeScriptOperationVariablesToObject(this.scalars, this.convertName.bind(this), this.config.avoidOptionals.object, this.config.immutableTypes, this.config.namespacedImportName, enumsNames, this.config.enumPrefix, this.config.enumValues, this.config.arrayInputCoercion, undefined, 'InputMaybe'));
51
+ this.setVariablesTransformer(new TypeScriptOperationVariablesToObject(this.scalars, this.convertName.bind(this), this.config.avoidOptionals.object, this.config.immutableTypes, this.config.namespacedImportName, enumsNames, this.config.enumPrefix, this.config.enumSuffix, this.config.enumValues, this.config.arrayInputCoercion, undefined, 'InputMaybe'));
51
52
  this._declarationBlockConfig = {
52
53
  ignoreExport: this.config.noExport,
53
54
  };
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@graphql-codegen/typescript-operations",
3
- "version": "4.0.0-alpha-20230522172441-e282e8469",
3
+ "version": "4.0.0-alpha-20230523175136-9810ec665",
4
4
  "description": "GraphQL Code Generator plugin for generating TypeScript types for GraphQL queries, mutations, subscriptions and fragments",
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/plugin-helpers": "4.2.1-alpha-20230522172441-e282e8469",
10
- "@graphql-codegen/typescript": "4.0.0-alpha-20230522172441-e282e8469",
11
- "@graphql-codegen/visitor-plugin-common": "4.0.0-alpha-20230522172441-e282e8469",
9
+ "@graphql-codegen/plugin-helpers": "4.2.1-alpha-20230523175136-9810ec665",
10
+ "@graphql-codegen/typescript": "4.0.0-alpha-20230523175136-9810ec665",
11
+ "@graphql-codegen/visitor-plugin-common": "4.0.0-alpha-20230523175136-9810ec665",
12
12
  "auto-bind": "~4.0.0",
13
13
  "tslib": "~2.5.0"
14
14
  },