Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exported Import all of Apollo API in generated operations #2600

Merged
merged 1 commit into from
Oct 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// @generated
// This file was automatically generated and should not be edited.

import ApolloAPI
@_exported import enum ApolloAPI.GraphQLEnum
@_exported import enum ApolloAPI.GraphQLNullable
@_exported import ApolloAPI

public struct ClassroomPetDetails: AnimalKingdomAPI.SelectionSet, Fragment {
public static var fragmentDefinition: StaticString { """
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// @generated
// This file was automatically generated and should not be edited.

import ApolloAPI
@_exported import enum ApolloAPI.GraphQLEnum
@_exported import enum ApolloAPI.GraphQLNullable
@_exported import ApolloAPI

public struct ClassroomPetDetailsCCN: AnimalKingdomAPI.SelectionSet, Fragment {
public static var fragmentDefinition: StaticString { """
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// @generated
// This file was automatically generated and should not be edited.

import ApolloAPI
@_exported import enum ApolloAPI.GraphQLEnum
@_exported import enum ApolloAPI.GraphQLNullable
@_exported import ApolloAPI

public struct DogFragment: AnimalKingdomAPI.SelectionSet, Fragment {
public static var fragmentDefinition: StaticString { """
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// @generated
// This file was automatically generated and should not be edited.

import ApolloAPI
@_exported import enum ApolloAPI.GraphQLEnum
@_exported import enum ApolloAPI.GraphQLNullable
@_exported import ApolloAPI

public struct HeightInMeters: AnimalKingdomAPI.SelectionSet, Fragment {
public static var fragmentDefinition: StaticString { """
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// @generated
// This file was automatically generated and should not be edited.

import ApolloAPI
@_exported import enum ApolloAPI.GraphQLEnum
@_exported import enum ApolloAPI.GraphQLNullable
@_exported import ApolloAPI

public struct PetDetails: AnimalKingdomAPI.SelectionSet, Fragment {
public static var fragmentDefinition: StaticString { """
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// @generated
// This file was automatically generated and should not be edited.

import ApolloAPI
@_exported import enum ApolloAPI.GraphQLEnum
@_exported import enum ApolloAPI.GraphQLNullable
@_exported import ApolloAPI

public struct WarmBloodedDetails: AnimalKingdomAPI.SelectionSet, Fragment {
public static var fragmentDefinition: StaticString { """
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// @generated
// This file was automatically generated and should not be edited.

import ApolloAPI
@_exported import enum ApolloAPI.GraphQLEnum
@_exported import enum ApolloAPI.GraphQLNullable
@_exported import ApolloAPI

public class AllAnimalsLocalCacheMutation: LocalCacheMutation {
public static let operationType: GraphQLOperationType = .query
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// @generated
// This file was automatically generated and should not be edited.

import ApolloAPI
@_exported import enum ApolloAPI.GraphQLEnum
@_exported import enum ApolloAPI.GraphQLNullable
@_exported import ApolloAPI

public struct PetDetailsMutation: AnimalKingdomAPI.MutableSelectionSet, Fragment {
public static var fragmentDefinition: StaticString { """
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// @generated
// This file was automatically generated and should not be edited.

import ApolloAPI
@_exported import enum ApolloAPI.GraphQLEnum
@_exported import enum ApolloAPI.GraphQLNullable
@_exported import ApolloAPI

public class PetAdoptionMutation: GraphQLMutation {
public static let operationName: String = "PetAdoptionMutation"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// @generated
// This file was automatically generated and should not be edited.

import ApolloAPI
@_exported import enum ApolloAPI.GraphQLEnum
@_exported import enum ApolloAPI.GraphQLNullable
@_exported import ApolloAPI

public class AllAnimalsCCNQuery: GraphQLQuery {
public static let operationName: String = "AllAnimalsCCN"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// @generated
// This file was automatically generated and should not be edited.

import ApolloAPI
@_exported import enum ApolloAPI.GraphQLEnum
@_exported import enum ApolloAPI.GraphQLNullable
@_exported import ApolloAPI

public class AllAnimalsIncludeSkipQuery: GraphQLQuery {
public static let operationName: String = "AllAnimalsIncludeSkipQuery"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// @generated
// This file was automatically generated and should not be edited.

import ApolloAPI
@_exported import enum ApolloAPI.GraphQLEnum
@_exported import enum ApolloAPI.GraphQLNullable
@_exported import ApolloAPI

public class AllAnimalsQuery: GraphQLQuery {
public static let operationName: String = "AllAnimalsQuery"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// @generated
// This file was automatically generated and should not be edited.

import ApolloAPI
@_exported import enum ApolloAPI.GraphQLEnum
@_exported import enum ApolloAPI.GraphQLNullable
@_exported import ApolloAPI

public class ClassroomPetsCCNQuery: GraphQLQuery {
public static let operationName: String = "ClassroomPetsCCN"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// @generated
// This file was automatically generated and should not be edited.

import ApolloAPI
@_exported import enum ApolloAPI.GraphQLEnum
@_exported import enum ApolloAPI.GraphQLNullable
@_exported import ApolloAPI

public class ClassroomPetsQuery: GraphQLQuery {
public static let operationName: String = "ClassroomPets"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// @generated
// This file was automatically generated and should not be edited.

import ApolloAPI
@_exported import enum ApolloAPI.GraphQLEnum
@_exported import enum ApolloAPI.GraphQLNullable
@_exported import ApolloAPI

public class DogQuery: GraphQLQuery {
public static let operationName: String = "DogQuery"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// @generated
// This file was automatically generated and should not be edited.

import ApolloAPI
@_exported import enum ApolloAPI.GraphQLEnum
@_exported import enum ApolloAPI.GraphQLNullable
@_exported import ApolloAPI

public class PetSearchQuery: GraphQLQuery {
public static let operationName: String = "PetSearch"
Expand Down
4 changes: 1 addition & 3 deletions Sources/ApolloCodegenLib/Templates/TemplateRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,7 @@ struct ImportStatementTemplate {
) -> TemplateString {
let apolloAPITargetName = config.ApolloAPITargetName
return """
import \(apolloAPITargetName)
@_exported import enum \(apolloAPITargetName).GraphQLEnum
@_exported import enum \(apolloAPITargetName).GraphQLNullable
@_exported import \(apolloAPITargetName)
\(if: config.output.operations != .inSchemaModule, "import \(config.schemaModuleName)")
"""
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// @generated
// This file was automatically generated and should not be edited.

import ApolloAPI
@_exported import enum ApolloAPI.GraphQLEnum
@_exported import enum ApolloAPI.GraphQLNullable
@_exported import ApolloAPI

public struct AuthorDetails: GitHubAPI.SelectionSet, Fragment {
public static var fragmentDefinition: StaticString { """
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// @generated
// This file was automatically generated and should not be edited.

import ApolloAPI
@_exported import enum ApolloAPI.GraphQLEnum
@_exported import enum ApolloAPI.GraphQLNullable
@_exported import ApolloAPI

public class IssuesAndCommentsForRepositoryQuery: GraphQLQuery {
public static let operationName: String = "IssuesAndCommentsForRepository"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// @generated
// This file was automatically generated and should not be edited.

import ApolloAPI
@_exported import enum ApolloAPI.GraphQLEnum
@_exported import enum ApolloAPI.GraphQLNullable
@_exported import ApolloAPI

public class RepoURLQuery: GraphQLQuery {
public static let operationName: String = "RepoURL"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// @generated
// This file was automatically generated and should not be edited.

import ApolloAPI
@_exported import enum ApolloAPI.GraphQLEnum
@_exported import enum ApolloAPI.GraphQLNullable
@_exported import ApolloAPI

public class RepositoryQuery: GraphQLQuery {
public static let operationName: String = "Repository"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// @generated
// This file was automatically generated and should not be edited.

import ApolloAPI
@_exported import enum ApolloAPI.GraphQLEnum
@_exported import enum ApolloAPI.GraphQLNullable
@_exported import ApolloAPI

public struct CharacterAppearsIn: StarWarsAPI.SelectionSet, Fragment {
public static var fragmentDefinition: StaticString { """
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// @generated
// This file was automatically generated and should not be edited.

import ApolloAPI
@_exported import enum ApolloAPI.GraphQLEnum
@_exported import enum ApolloAPI.GraphQLNullable
@_exported import ApolloAPI

public struct CharacterName: StarWarsAPI.SelectionSet, Fragment {
public static var fragmentDefinition: StaticString { """
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// @generated
// This file was automatically generated and should not be edited.

import ApolloAPI
@_exported import enum ApolloAPI.GraphQLEnum
@_exported import enum ApolloAPI.GraphQLNullable
@_exported import ApolloAPI

public struct CharacterNameAndAppearsIn: StarWarsAPI.SelectionSet, Fragment {
public static var fragmentDefinition: StaticString { """
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// @generated
// This file was automatically generated and should not be edited.

import ApolloAPI
@_exported import enum ApolloAPI.GraphQLEnum
@_exported import enum ApolloAPI.GraphQLNullable
@_exported import ApolloAPI

public struct CharacterNameAndAppearsInWithNestedFragments: StarWarsAPI.SelectionSet, Fragment {
public static var fragmentDefinition: StaticString { """
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// @generated
// This file was automatically generated and should not be edited.

import ApolloAPI
@_exported import enum ApolloAPI.GraphQLEnum
@_exported import enum ApolloAPI.GraphQLNullable
@_exported import ApolloAPI

public struct CharacterNameAndDroidAppearsIn: StarWarsAPI.SelectionSet, Fragment {
public static var fragmentDefinition: StaticString { """
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// @generated
// This file was automatically generated and should not be edited.

import ApolloAPI
@_exported import enum ApolloAPI.GraphQLEnum
@_exported import enum ApolloAPI.GraphQLNullable
@_exported import ApolloAPI

public struct CharacterNameAndDroidPrimaryFunction: StarWarsAPI.SelectionSet, Fragment {
public static var fragmentDefinition: StaticString { """
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// @generated
// This file was automatically generated and should not be edited.

import ApolloAPI
@_exported import enum ApolloAPI.GraphQLEnum
@_exported import enum ApolloAPI.GraphQLNullable
@_exported import ApolloAPI

public struct CharacterNameWithInlineFragment: StarWarsAPI.SelectionSet, Fragment {
public static var fragmentDefinition: StaticString { """
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// @generated
// This file was automatically generated and should not be edited.

import ApolloAPI
@_exported import enum ApolloAPI.GraphQLEnum
@_exported import enum ApolloAPI.GraphQLNullable
@_exported import ApolloAPI

public struct CharacterNameWithNestedAppearsInFragment: StarWarsAPI.SelectionSet, Fragment {
public static var fragmentDefinition: StaticString { """
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// @generated
// This file was automatically generated and should not be edited.

import ApolloAPI
@_exported import enum ApolloAPI.GraphQLEnum
@_exported import enum ApolloAPI.GraphQLNullable
@_exported import ApolloAPI

public struct DroidDetails: StarWarsAPI.SelectionSet, Fragment {
public static var fragmentDefinition: StaticString { """
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// @generated
// This file was automatically generated and should not be edited.

import ApolloAPI
@_exported import enum ApolloAPI.GraphQLEnum
@_exported import enum ApolloAPI.GraphQLNullable
@_exported import ApolloAPI

public struct DroidName: StarWarsAPI.SelectionSet, Fragment {
public static var fragmentDefinition: StaticString { """
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// @generated
// This file was automatically generated and should not be edited.

import ApolloAPI
@_exported import enum ApolloAPI.GraphQLEnum
@_exported import enum ApolloAPI.GraphQLNullable
@_exported import ApolloAPI

public struct DroidNameAndPrimaryFunction: StarWarsAPI.SelectionSet, Fragment {
public static var fragmentDefinition: StaticString { """
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// @generated
// This file was automatically generated and should not be edited.

import ApolloAPI
@_exported import enum ApolloAPI.GraphQLEnum
@_exported import enum ApolloAPI.GraphQLNullable
@_exported import ApolloAPI

public struct DroidPrimaryFunction: StarWarsAPI.SelectionSet, Fragment {
public static var fragmentDefinition: StaticString { """
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// @generated
// This file was automatically generated and should not be edited.

import ApolloAPI
@_exported import enum ApolloAPI.GraphQLEnum
@_exported import enum ApolloAPI.GraphQLNullable
@_exported import ApolloAPI

public struct FriendsNames: StarWarsAPI.SelectionSet, Fragment {
public static var fragmentDefinition: StaticString { """
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// @generated
// This file was automatically generated and should not be edited.

import ApolloAPI
@_exported import enum ApolloAPI.GraphQLEnum
@_exported import enum ApolloAPI.GraphQLNullable
@_exported import ApolloAPI

public struct HeroDetails: StarWarsAPI.SelectionSet, Fragment {
public static var fragmentDefinition: StaticString { """
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// @generated
// This file was automatically generated and should not be edited.

import ApolloAPI
@_exported import enum ApolloAPI.GraphQLEnum
@_exported import enum ApolloAPI.GraphQLNullable
@_exported import ApolloAPI

public struct HumanHeightWithVariable: StarWarsAPI.SelectionSet, Fragment {
public static var fragmentDefinition: StaticString { """
Expand Down
Loading