@graphql-codegen/typescript-jit-sdk 2.1.3-alpha-0814e49cc.0 → 2.1.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 +4 -4
- package/typings/config.d.cts +6 -0
- package/typings/index.d.cts +6 -0
- package/typings/visitor.d.cts +11 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/typescript-jit-sdk",
|
|
3
|
-
"version": "2.1.3
|
|
3
|
+
"version": "2.1.3",
|
|
4
4
|
"description": "GraphQL Code Generator plugin for generating a ready-to-use SDK that uses GraphQL JIT",
|
|
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",
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"@graphql-tools/utils": "^8.8.0"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@graphql-codegen/plugin-helpers": "^2.6.
|
|
13
|
-
"@graphql-codegen/visitor-plugin-common": "2.12.1
|
|
12
|
+
"@graphql-codegen/plugin-helpers": "^2.6.2",
|
|
13
|
+
"@graphql-codegen/visitor-plugin-common": "2.12.1",
|
|
14
14
|
"auto-bind": "~4.0.0",
|
|
15
15
|
"tslib": "~2.4.0"
|
|
16
16
|
},
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"exports": {
|
|
31
31
|
".": {
|
|
32
32
|
"require": {
|
|
33
|
-
"types": "./typings/index.d.
|
|
33
|
+
"types": "./typings/index.d.cts",
|
|
34
34
|
"default": "./cjs/index.js"
|
|
35
35
|
},
|
|
36
36
|
"import": {
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PluginFunction, PluginValidateFn } from '@graphql-codegen/plugin-helpers';
|
|
2
|
+
import { RawJitSdkPluginConfig } from './config.cjs';
|
|
3
|
+
import { JitSdkVisitor } from './visitor.cjs';
|
|
4
|
+
export declare const plugin: PluginFunction<RawJitSdkPluginConfig>;
|
|
5
|
+
export declare const validate: PluginValidateFn<any>;
|
|
6
|
+
export { JitSdkVisitor };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ClientSideBasePluginConfig, ClientSideBaseVisitor, LoadedFragment } from '@graphql-codegen/visitor-plugin-common';
|
|
2
|
+
import { GraphQLSchema, OperationDefinitionNode } from 'graphql';
|
|
3
|
+
import { RawJitSdkPluginConfig } from './config.cjs';
|
|
4
|
+
export interface JitSdkPluginConfig extends ClientSideBasePluginConfig {
|
|
5
|
+
}
|
|
6
|
+
export declare class JitSdkVisitor extends ClientSideBaseVisitor<RawJitSdkPluginConfig, JitSdkPluginConfig> {
|
|
7
|
+
private _operationsToInclude;
|
|
8
|
+
constructor(schema: GraphQLSchema, fragments: LoadedFragment[], rawConfig: RawJitSdkPluginConfig);
|
|
9
|
+
protected buildOperation(node: OperationDefinitionNode, documentVariableName: string, operationType: string, operationResultType: string, operationVariablesTypes: string): string;
|
|
10
|
+
get sdkContent(): string;
|
|
11
|
+
}
|