@graphql-codegen/typescript-oclif 2.3.3-alpha-0814e49cc.0 → 2.3.3

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/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@graphql-codegen/typescript-oclif",
3
- "version": "2.3.3-alpha-0814e49cc.0",
3
+ "version": "2.3.3",
4
4
  "description": "GraphQL Code Generator plugin for generating a CLI tool with oclif",
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
  "graphql-tag": "^2.0.0"
8
8
  },
9
9
  "dependencies": {
10
- "@graphql-codegen/plugin-helpers": "^2.6.1-alpha-0814e49cc.0",
11
- "@graphql-codegen/visitor-plugin-common": "2.12.1-alpha-0814e49cc.0",
10
+ "@graphql-codegen/plugin-helpers": "^2.6.2",
11
+ "@graphql-codegen/visitor-plugin-common": "2.12.1",
12
12
  "auto-bind": "~4.0.0",
13
13
  "tslib": "~2.4.0"
14
14
  },
@@ -29,7 +29,7 @@
29
29
  "exports": {
30
30
  ".": {
31
31
  "require": {
32
- "types": "./typings/index.d.ts",
32
+ "types": "./typings/index.d.cts",
33
33
  "default": "./cjs/index.js"
34
34
  },
35
35
  "import": {
@@ -0,0 +1,13 @@
1
+ import { PluginValidateFn, PluginFunction } from '@graphql-codegen/plugin-helpers';
2
+ import { RawClientSideBasePluginConfig } from '@graphql-codegen/visitor-plugin-common';
3
+ import { GraphQLRequestVisitor } from './visitor.cjs';
4
+ export interface Config extends RawClientSideBasePluginConfig {
5
+ handlerPath?: string;
6
+ }
7
+ export interface Info {
8
+ outputFile: string;
9
+ allPlugins: any[];
10
+ }
11
+ export declare const plugin: PluginFunction;
12
+ export declare const validate: PluginValidateFn<any>;
13
+ export { GraphQLRequestVisitor };
@@ -0,0 +1,5 @@
1
+ import { OperationDefinitionNode, VariableDefinitionNode } from 'graphql';
2
+ export declare const getFlagConfigForVariableDefinition: (definition: VariableDefinitionNode) => string;
3
+ export declare const omitOclifDirectives: (node: OperationDefinitionNode) => OperationDefinitionNode & {
4
+ directives: import("graphql").DirectiveNode[];
5
+ };
@@ -0,0 +1,11 @@
1
+ import { ClientSideBaseVisitor, ClientSideBasePluginConfig, LoadedFragment } from '@graphql-codegen/visitor-plugin-common';
2
+ import { GraphQLSchema, OperationDefinitionNode } from 'graphql';
3
+ import { Config, Info } from './index.cjs';
4
+ export declare class GraphQLRequestVisitor extends ClientSideBaseVisitor<Config, ClientSideBasePluginConfig> {
5
+ private _operationsToInclude;
6
+ private _info;
7
+ constructor(schema: GraphQLSchema, fragments: LoadedFragment[], rawConfig: Config, info: Info);
8
+ protected buildOperation(node: OperationDefinitionNode, documentVariableName: string, operationType: string, operationResultType: string, operationVariablesTypes: string): string;
9
+ get definition(): string;
10
+ get cliContent(): string;
11
+ }