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