@depup/graphql-codegen__typescript-operations 5.0.9-depup.0
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/README.md +33 -0
- package/changes.json +18 -0
- package/cjs/config.js +0 -0
- package/cjs/index.js +83 -0
- package/cjs/package.json +1 -0
- package/cjs/ts-operation-variables-to-object.js +10 -0
- package/cjs/ts-selection-set-processor.js +80 -0
- package/cjs/visitor.js +77 -0
- package/esm/config.js +0 -0
- package/esm/index.js +56 -0
- package/esm/ts-operation-variables-to-object.js +6 -0
- package/esm/ts-selection-set-processor.js +76 -0
- package/esm/visitor.js +72 -0
- package/package.json +81 -0
- package/typings/config.d.cts +333 -0
- package/typings/config.d.ts +333 -0
- package/typings/index.d.cts +6 -0
- package/typings/index.d.ts +6 -0
- package/typings/ts-operation-variables-to-object.d.cts +4 -0
- package/typings/ts-operation-variables-to-object.d.ts +4 -0
- package/typings/ts-selection-set-processor.d.cts +8 -0
- package/typings/ts-selection-set-processor.d.ts +8 -0
- package/typings/visitor.d.cts +17 -0
- package/typings/visitor.d.ts +17 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseSelectionSetProcessor, LinkField, PrimitiveAliasedFields, PrimitiveField, ProcessResult, SelectionSetProcessorConfig } from '@graphql-codegen/visitor-plugin-common';
|
|
2
|
+
import { GraphQLInterfaceType, GraphQLObjectType } from 'graphql';
|
|
3
|
+
export declare class TypeScriptSelectionSetProcessor extends BaseSelectionSetProcessor<SelectionSetProcessorConfig> {
|
|
4
|
+
transformPrimitiveFields(schemaType: GraphQLObjectType | GraphQLInterfaceType, fields: PrimitiveField[], unsetTypes?: boolean): ProcessResult;
|
|
5
|
+
transformTypenameField(type: string, name: string): ProcessResult;
|
|
6
|
+
transformAliasesPrimitiveFields(schemaType: GraphQLObjectType | GraphQLInterfaceType, fields: PrimitiveAliasedFields[]): ProcessResult;
|
|
7
|
+
transformLinkFields(fields: LinkField[]): ProcessResult;
|
|
8
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseDocumentsVisitor, DeclarationKind, LoadedFragment, NormalizedAvoidOptionalsConfig, ParsedDocumentsConfig } from '@graphql-codegen/visitor-plugin-common';
|
|
2
|
+
import { GraphQLSchema } from 'graphql';
|
|
3
|
+
import { TypeScriptDocumentsPluginConfig } from './config.cjs';
|
|
4
|
+
export interface TypeScriptDocumentsParsedConfig extends ParsedDocumentsConfig {
|
|
5
|
+
arrayInputCoercion: boolean;
|
|
6
|
+
avoidOptionals: NormalizedAvoidOptionalsConfig;
|
|
7
|
+
immutableTypes: boolean;
|
|
8
|
+
noExport: boolean;
|
|
9
|
+
maybeValue: string;
|
|
10
|
+
allowUndefinedQueryVariables: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare class TypeScriptDocumentsVisitor extends BaseDocumentsVisitor<TypeScriptDocumentsPluginConfig, TypeScriptDocumentsParsedConfig> {
|
|
13
|
+
constructor(schema: GraphQLSchema, config: TypeScriptDocumentsPluginConfig, allFragments: LoadedFragment[]);
|
|
14
|
+
getImports(): Array<string>;
|
|
15
|
+
protected getPunctuation(_declarationKind: DeclarationKind): string;
|
|
16
|
+
protected applyVariablesWrapper(variablesBlock: string, operationType: string): string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseDocumentsVisitor, DeclarationKind, LoadedFragment, NormalizedAvoidOptionalsConfig, ParsedDocumentsConfig } from '@graphql-codegen/visitor-plugin-common';
|
|
2
|
+
import { GraphQLSchema } from 'graphql';
|
|
3
|
+
import { TypeScriptDocumentsPluginConfig } from './config.js';
|
|
4
|
+
export interface TypeScriptDocumentsParsedConfig extends ParsedDocumentsConfig {
|
|
5
|
+
arrayInputCoercion: boolean;
|
|
6
|
+
avoidOptionals: NormalizedAvoidOptionalsConfig;
|
|
7
|
+
immutableTypes: boolean;
|
|
8
|
+
noExport: boolean;
|
|
9
|
+
maybeValue: string;
|
|
10
|
+
allowUndefinedQueryVariables: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare class TypeScriptDocumentsVisitor extends BaseDocumentsVisitor<TypeScriptDocumentsPluginConfig, TypeScriptDocumentsParsedConfig> {
|
|
13
|
+
constructor(schema: GraphQLSchema, config: TypeScriptDocumentsPluginConfig, allFragments: LoadedFragment[]);
|
|
14
|
+
getImports(): Array<string>;
|
|
15
|
+
protected getPunctuation(_declarationKind: DeclarationKind): string;
|
|
16
|
+
protected applyVariablesWrapper(variablesBlock: string, operationType: string): string;
|
|
17
|
+
}
|