Skip to content

Commit

Permalink
Exported Import all of Apollo API in generated operations (#2600)
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyMDev authored Oct 21, 2022
1 parent 398b01a commit 2a4c1c6
Show file tree
Hide file tree
Showing 178 changed files with 195 additions and 597 deletions.
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

0 comments on commit 2a4c1c6

Please sign in to comment.