1 | import { GraphQLType, GraphQLScalarType, GraphQLInputField } from "graphql";
|
2 | import { Property, Struct, SwiftSource } from "./language";
|
3 | import { CompilerOptions, SelectionSet, Field, FragmentSpread, Argument } from "apollo-codegen-core/lib/compiler";
|
4 | import { Variant } from "apollo-codegen-core/lib/compiler/visitors/typeCase";
|
5 | export declare class Helpers {
|
6 | options: CompilerOptions;
|
7 | constructor(options: CompilerOptions);
|
8 | typeNameFromGraphQLType(type: GraphQLType, unmodifiedTypeName?: string, isOptional?: boolean): string;
|
9 | typeNameForScalarType(type: GraphQLScalarType): string;
|
10 | fieldTypeEnum(type: GraphQLType, structName: string): SwiftSource;
|
11 | enumCaseName(name: string): string;
|
12 | enumDotCaseName(name: string): SwiftSource;
|
13 | operationClassName(name: string): string;
|
14 | structNameForPropertyName(propertyName: string): string;
|
15 | structNameForFragmentName(fragmentName: string): string;
|
16 | structNameForVariant(variant: SelectionSet): string;
|
17 | internalParameterName(propertyName: string, properties: {
|
18 | propertyName: string;
|
19 | }[]): string;
|
20 | propertyFromField(field: Field, namespace?: string): Field & Property & Struct;
|
21 | propertyFromVariant(variant: Variant): Variant & Property & Struct;
|
22 | propertyFromFragmentSpread(fragmentSpread: FragmentSpread, isConditional: boolean): FragmentSpread & Property & Struct;
|
23 | propertyFromInputField(field: GraphQLInputField): GraphQLInputField & {
|
24 | propertyName: string;
|
25 | typeName: string;
|
26 | isOptional: boolean;
|
27 | };
|
28 | propertiesForSelectionSet(selectionSet: SelectionSet, namespace?: string): (Field & Property & Struct)[] | undefined;
|
29 | dictionaryLiteralForFieldArguments(args: Argument[]): SwiftSource;
|
30 | mapExpressionForType(type: GraphQLType, isConditional: boolean | undefined, makeExpression: (expression: SwiftSource) => SwiftSource, expression: SwiftSource, inputTypeName: string, outputTypeName: string): SwiftSource;
|
31 | }
|
32 |
|
\ | No newline at end of file |