1 | import { TypeNode, VariableNode, NameNode, ValueNode } from 'graphql';
|
2 | import { NormalizedScalarsMap, ConvertNameFn, ParsedEnumValuesMap } from './types';
|
3 | import { BaseVisitorConvertOptions } from './base-visitor';
|
4 | export interface InterfaceOrVariable {
|
5 | name?: NameNode;
|
6 | variable?: VariableNode;
|
7 | type: TypeNode;
|
8 | defaultValue?: ValueNode;
|
9 | }
|
10 | export declare class OperationVariablesToObject {
|
11 | protected _scalars: NormalizedScalarsMap;
|
12 | protected _convertName: ConvertNameFn<BaseVisitorConvertOptions>;
|
13 | protected _namespacedImportName: string | null;
|
14 | protected _enumNames: string[];
|
15 | protected _enumPrefix: boolean;
|
16 | protected _enumValues: ParsedEnumValuesMap;
|
17 | protected _applyCoercion: Boolean;
|
18 | constructor(_scalars: NormalizedScalarsMap, _convertName: ConvertNameFn<BaseVisitorConvertOptions>, _namespacedImportName?: string | null, _enumNames?: string[], _enumPrefix?: boolean, _enumValues?: ParsedEnumValuesMap, _applyCoercion?: Boolean);
|
19 | getName<TDefinitionType extends InterfaceOrVariable>(node: TDefinitionType): string;
|
20 | transform<TDefinitionType extends InterfaceOrVariable>(variablesNode: ReadonlyArray<TDefinitionType>): string;
|
21 | protected getScalar(name: string): string;
|
22 | protected transformVariable<TDefinitionType extends InterfaceOrVariable>(variable: TDefinitionType): string;
|
23 | wrapAstTypeWithModifiers(_baseType: string, _typeNode: TypeNode, _applyCoercion?: Boolean): string;
|
24 | protected formatFieldString(fieldName: string, isNonNullType: boolean, _hasDefaultValue: boolean): string;
|
25 | protected formatTypeString(fieldType: string, isNonNullType: boolean, hasDefaultValue: boolean): string;
|
26 | protected getPunctuation(): string;
|
27 | }
|