diff --git a/LICENSE-HEADER.txt b/LICENSE-HEADER.txt deleted file mode 100644 index 732a2da66..000000000 --- a/LICENSE-HEADER.txt +++ /dev/null @@ -1,13 +0,0 @@ -Copyright (C) 2022 Expedia, Inc. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. \ No newline at end of file diff --git a/expediagroup-sdk-graphql/build.gradle b/expediagroup-sdk-graphql/build.gradle index 9dff5b728..b7636126d 100644 --- a/expediagroup-sdk-graphql/build.gradle +++ b/expediagroup-sdk-graphql/build.gradle @@ -38,7 +38,6 @@ apollo { service("testservice") { srcDir("src/test/graphql") packageName.set("testservice") - outputDir.set(file("src/test/graphql/generated")) generateDataBuilders.set(true) } } diff --git a/expediagroup-sdk-graphql/src/test/graphql/generated/testservice/TestMutation.kt b/expediagroup-sdk-graphql/src/test/graphql/generated/testservice/TestMutation.kt deleted file mode 100644 index 11aa588d5..000000000 --- a/expediagroup-sdk-graphql/src/test/graphql/generated/testservice/TestMutation.kt +++ /dev/null @@ -1,98 +0,0 @@ -// -// AUTO-GENERATED FILE. DO NOT MODIFY. -// -// This class was automatically generated by Apollo GraphQL version '4.3.1'. -// -package testservice - -import com.apollographql.apollo.annotations.ApolloAdaptableWith -import com.apollographql.apollo.api.Adapter -import com.apollographql.apollo.api.CompiledField -import com.apollographql.apollo.api.CustomScalarAdapters -import com.apollographql.apollo.api.DefaultFakeResolver -import com.apollographql.apollo.api.FakeResolver -import com.apollographql.apollo.api.Mutation -import com.apollographql.apollo.api.buildData -import com.apollographql.apollo.api.json.JsonWriter -import com.apollographql.apollo.api.obj -import kotlin.Any -import kotlin.Boolean -import kotlin.Int -import kotlin.String -import kotlin.Unit -import testservice.adapter.TestMutation_ResponseAdapter -import testservice.schema.__Schema -import testservice.selections.TestMutationSelections -import testservice.type.MutationBuilder -import testservice.type.__CustomScalarAdapters -import testservice.type.Mutation as CompiledMutation - -public class TestMutation() : Mutation { - override fun equals(other: Any?): Boolean = other != null && other::class == this::class - - override fun hashCode(): Int = this::class.hashCode() - - override fun id(): String = OPERATION_ID - - override fun document(): String = OPERATION_DOCUMENT - - override fun name(): String = OPERATION_NAME - - override fun serializeVariables( - writer: JsonWriter, - customScalarAdapters: CustomScalarAdapters, - withDefaultValues: Boolean, - ) { - // This operation doesn't have any variable - } - - override fun adapter(): Adapter = TestMutation_ResponseAdapter.Data.obj() - - override fun rootField(): CompiledField = CompiledField.Builder( - name = "data", - type = CompiledMutation.type - ) - .selections(selections = TestMutationSelections.__root) - .build() - - @ApolloAdaptableWith(TestMutation_ResponseAdapter.Data::class) - public data class Data( - public val testMutation: TestMutation, - ) : Mutation.Data - - public data class TestMutation( - public val id: String, - ) - - public companion object { - public const val OPERATION_ID: String = - "4a3cf8d814f5d3c49da7398a55dc7a47d4028bcd4af9fdd7c8b56ddcca4a1b7c" - - /** - * The minimized GraphQL document being sent to the server to save a few bytes. - * The un-minimized version is: - * - * ``` - * mutation TestMutation { - * testMutation { - * id - * } - * } - * ``` - */ - public val OPERATION_DOCUMENT: String - get() = "mutation TestMutation { testMutation { id } }" - - public const val OPERATION_NAME: String = "TestMutation" - - public fun Data(resolver: FakeResolver = DefaultFakeResolver(__Schema.all), block: MutationBuilder.() -> Unit = {}): Data = buildData( - CompiledMutation, - block, - TestMutation_ResponseAdapter.Data, - TestMutationSelections.__root, - "Mutation", - resolver, - __CustomScalarAdapters, - ) - } -} diff --git a/expediagroup-sdk-graphql/src/test/graphql/generated/testservice/TestQuery.kt b/expediagroup-sdk-graphql/src/test/graphql/generated/testservice/TestQuery.kt deleted file mode 100644 index 0c80f481f..000000000 --- a/expediagroup-sdk-graphql/src/test/graphql/generated/testservice/TestQuery.kt +++ /dev/null @@ -1,98 +0,0 @@ -// -// AUTO-GENERATED FILE. DO NOT MODIFY. -// -// This class was automatically generated by Apollo GraphQL version '4.3.1'. -// -package testservice - -import com.apollographql.apollo.annotations.ApolloAdaptableWith -import com.apollographql.apollo.api.Adapter -import com.apollographql.apollo.api.CompiledField -import com.apollographql.apollo.api.CustomScalarAdapters -import com.apollographql.apollo.api.DefaultFakeResolver -import com.apollographql.apollo.api.FakeResolver -import com.apollographql.apollo.api.Query -import com.apollographql.apollo.api.buildData -import com.apollographql.apollo.api.json.JsonWriter -import com.apollographql.apollo.api.obj -import kotlin.Any -import kotlin.Boolean -import kotlin.Int -import kotlin.String -import kotlin.Unit -import testservice.adapter.TestQuery_ResponseAdapter -import testservice.schema.__Schema -import testservice.selections.TestQuerySelections -import testservice.type.QueryBuilder -import testservice.type.__CustomScalarAdapters -import testservice.type.Query as CompiledQuery - -public class TestQuery() : Query { - override fun equals(other: Any?): Boolean = other != null && other::class == this::class - - override fun hashCode(): Int = this::class.hashCode() - - override fun id(): String = OPERATION_ID - - override fun document(): String = OPERATION_DOCUMENT - - override fun name(): String = OPERATION_NAME - - override fun serializeVariables( - writer: JsonWriter, - customScalarAdapters: CustomScalarAdapters, - withDefaultValues: Boolean, - ) { - // This operation doesn't have any variable - } - - override fun adapter(): Adapter = TestQuery_ResponseAdapter.Data.obj() - - override fun rootField(): CompiledField = CompiledField.Builder( - name = "data", - type = CompiledQuery.type - ) - .selections(selections = TestQuerySelections.__root) - .build() - - @ApolloAdaptableWith(TestQuery_ResponseAdapter.Data::class) - public data class Data( - public val testQuery: TestQuery, - ) : Query.Data - - public data class TestQuery( - public val id: String, - ) - - public companion object { - public const val OPERATION_ID: String = - "04f6482a6f0bcdf00ac7c7b62d5df9a82cfa06e094fd295105cf38e082e695be" - - /** - * The minimized GraphQL document being sent to the server to save a few bytes. - * The un-minimized version is: - * - * ``` - * query TestQuery { - * testQuery { - * id - * } - * } - * ``` - */ - public val OPERATION_DOCUMENT: String - get() = "query TestQuery { testQuery { id } }" - - public const val OPERATION_NAME: String = "TestQuery" - - public fun Data(resolver: FakeResolver = DefaultFakeResolver(__Schema.all), block: QueryBuilder.() -> Unit = {}): Data = buildData( - CompiledQuery, - block, - TestQuery_ResponseAdapter.Data, - TestQuerySelections.__root, - "Query", - resolver, - __CustomScalarAdapters, - ) - } -} diff --git a/expediagroup-sdk-graphql/src/test/graphql/generated/testservice/adapter/TestMutation_ResponseAdapter.kt b/expediagroup-sdk-graphql/src/test/graphql/generated/testservice/adapter/TestMutation_ResponseAdapter.kt deleted file mode 100644 index 3b3be5591..000000000 --- a/expediagroup-sdk-graphql/src/test/graphql/generated/testservice/adapter/TestMutation_ResponseAdapter.kt +++ /dev/null @@ -1,74 +0,0 @@ -// -// AUTO-GENERATED FILE. DO NOT MODIFY. -// -// This class was automatically generated by Apollo GraphQL version '4.3.1'. -// -package testservice.adapter - -import com.apollographql.apollo.api.Adapter -import com.apollographql.apollo.api.CustomScalarAdapters -import com.apollographql.apollo.api.StringAdapter -import com.apollographql.apollo.api.json.JsonReader -import com.apollographql.apollo.api.json.JsonWriter -import com.apollographql.apollo.api.missingField -import com.apollographql.apollo.api.obj -import kotlin.String -import kotlin.collections.List - -public object TestMutation_ResponseAdapter { - public object Data : Adapter { - public val RESPONSE_NAMES: List = listOf("testMutation") - - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): testservice.TestMutation.Data { - var _testMutation: testservice.TestMutation.TestMutation? = null - - while (true) { - when (reader.selectName(RESPONSE_NAMES)) { - 0 -> _testMutation = TestMutation.obj().fromJson(reader, customScalarAdapters) - else -> break - } - } - - return testservice.TestMutation.Data( - testMutation = _testMutation ?: missingField(reader, "testMutation") - ) - } - - override fun toJson( - writer: JsonWriter, - customScalarAdapters: CustomScalarAdapters, - `value`: testservice.TestMutation.Data, - ) { - writer.name("testMutation") - TestMutation.obj().toJson(writer, customScalarAdapters, value.testMutation) - } - } - - public object TestMutation : Adapter { - public val RESPONSE_NAMES: List = listOf("id") - - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): testservice.TestMutation.TestMutation { - var _id: String? = null - - while (true) { - when (reader.selectName(RESPONSE_NAMES)) { - 0 -> _id = StringAdapter.fromJson(reader, customScalarAdapters) - else -> break - } - } - - return testservice.TestMutation.TestMutation( - id = _id ?: missingField(reader, "id") - ) - } - - override fun toJson( - writer: JsonWriter, - customScalarAdapters: CustomScalarAdapters, - `value`: testservice.TestMutation.TestMutation, - ) { - writer.name("id") - StringAdapter.toJson(writer, customScalarAdapters, value.id) - } - } -} diff --git a/expediagroup-sdk-graphql/src/test/graphql/generated/testservice/adapter/TestQuery_ResponseAdapter.kt b/expediagroup-sdk-graphql/src/test/graphql/generated/testservice/adapter/TestQuery_ResponseAdapter.kt deleted file mode 100644 index 87e101460..000000000 --- a/expediagroup-sdk-graphql/src/test/graphql/generated/testservice/adapter/TestQuery_ResponseAdapter.kt +++ /dev/null @@ -1,74 +0,0 @@ -// -// AUTO-GENERATED FILE. DO NOT MODIFY. -// -// This class was automatically generated by Apollo GraphQL version '4.3.1'. -// -package testservice.adapter - -import com.apollographql.apollo.api.Adapter -import com.apollographql.apollo.api.CustomScalarAdapters -import com.apollographql.apollo.api.StringAdapter -import com.apollographql.apollo.api.json.JsonReader -import com.apollographql.apollo.api.json.JsonWriter -import com.apollographql.apollo.api.missingField -import com.apollographql.apollo.api.obj -import kotlin.String -import kotlin.collections.List - -public object TestQuery_ResponseAdapter { - public object Data : Adapter { - public val RESPONSE_NAMES: List = listOf("testQuery") - - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): testservice.TestQuery.Data { - var _testQuery: testservice.TestQuery.TestQuery? = null - - while (true) { - when (reader.selectName(RESPONSE_NAMES)) { - 0 -> _testQuery = TestQuery.obj().fromJson(reader, customScalarAdapters) - else -> break - } - } - - return testservice.TestQuery.Data( - testQuery = _testQuery ?: missingField(reader, "testQuery") - ) - } - - override fun toJson( - writer: JsonWriter, - customScalarAdapters: CustomScalarAdapters, - `value`: testservice.TestQuery.Data, - ) { - writer.name("testQuery") - TestQuery.obj().toJson(writer, customScalarAdapters, value.testQuery) - } - } - - public object TestQuery : Adapter { - public val RESPONSE_NAMES: List = listOf("id") - - override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): testservice.TestQuery.TestQuery { - var _id: String? = null - - while (true) { - when (reader.selectName(RESPONSE_NAMES)) { - 0 -> _id = StringAdapter.fromJson(reader, customScalarAdapters) - else -> break - } - } - - return testservice.TestQuery.TestQuery( - id = _id ?: missingField(reader, "id") - ) - } - - override fun toJson( - writer: JsonWriter, - customScalarAdapters: CustomScalarAdapters, - `value`: testservice.TestQuery.TestQuery, - ) { - writer.name("id") - StringAdapter.toJson(writer, customScalarAdapters, value.id) - } - } -} diff --git a/expediagroup-sdk-graphql/src/test/graphql/generated/testservice/schema/__Schema.kt b/expediagroup-sdk-graphql/src/test/graphql/generated/testservice/schema/__Schema.kt deleted file mode 100644 index cf80836a8..000000000 --- a/expediagroup-sdk-graphql/src/test/graphql/generated/testservice/schema/__Schema.kt +++ /dev/null @@ -1,20 +0,0 @@ -// -// AUTO-GENERATED FILE. DO NOT MODIFY. -// -// This class was automatically generated by Apollo GraphQL version '4.3.1'. -// -package testservice.schema - -import com.apollographql.apollo.api.CompiledNamedType -import com.apollographql.apollo.api.ObjectType -import kotlin.collections.List - -/** - * A __Schema object containing all the composite types and a possibleTypes helper function - */ -public object __Schema { - public val all: List = listOf( - testservice.type.Mutation.type, testservice.type.Query.type, testservice.type.TestData.type) - - public fun possibleTypes(type: CompiledNamedType): List = com.apollographql.apollo.api.possibleTypes(all, type) -} diff --git a/expediagroup-sdk-graphql/src/test/graphql/generated/testservice/selections/TestMutationSelections.kt b/expediagroup-sdk-graphql/src/test/graphql/generated/testservice/selections/TestMutationSelections.kt deleted file mode 100644 index d77bc4cf4..000000000 --- a/expediagroup-sdk-graphql/src/test/graphql/generated/testservice/selections/TestMutationSelections.kt +++ /dev/null @@ -1,30 +0,0 @@ -// -// AUTO-GENERATED FILE. DO NOT MODIFY. -// -// This class was automatically generated by Apollo GraphQL version '4.3.1'. -// -package testservice.selections - -import com.apollographql.apollo.api.CompiledField -import com.apollographql.apollo.api.CompiledSelection -import com.apollographql.apollo.api.notNull -import kotlin.collections.List -import testservice.type.GraphQLString -import testservice.type.TestData - -public object TestMutationSelections { - private val __testMutation: List = listOf( - CompiledField.Builder( - name = "id", - type = GraphQLString.type.notNull() - ).build() - ) - - public val __root: List = listOf( - CompiledField.Builder( - name = "testMutation", - type = TestData.type.notNull() - ).selections(__testMutation) - .build() - ) -} diff --git a/expediagroup-sdk-graphql/src/test/graphql/generated/testservice/selections/TestQuerySelections.kt b/expediagroup-sdk-graphql/src/test/graphql/generated/testservice/selections/TestQuerySelections.kt deleted file mode 100644 index a54368894..000000000 --- a/expediagroup-sdk-graphql/src/test/graphql/generated/testservice/selections/TestQuerySelections.kt +++ /dev/null @@ -1,30 +0,0 @@ -// -// AUTO-GENERATED FILE. DO NOT MODIFY. -// -// This class was automatically generated by Apollo GraphQL version '4.3.1'. -// -package testservice.selections - -import com.apollographql.apollo.api.CompiledField -import com.apollographql.apollo.api.CompiledSelection -import com.apollographql.apollo.api.notNull -import kotlin.collections.List -import testservice.type.GraphQLString -import testservice.type.TestData - -public object TestQuerySelections { - private val __testQuery: List = listOf( - CompiledField.Builder( - name = "id", - type = GraphQLString.type.notNull() - ).build() - ) - - public val __root: List = listOf( - CompiledField.Builder( - name = "testQuery", - type = TestData.type.notNull() - ).selections(__testQuery) - .build() - ) -} diff --git a/expediagroup-sdk-graphql/src/test/graphql/generated/testservice/type/GraphQLBoolean.kt b/expediagroup-sdk-graphql/src/test/graphql/generated/testservice/type/GraphQLBoolean.kt deleted file mode 100644 index f52fc3a98..000000000 --- a/expediagroup-sdk-graphql/src/test/graphql/generated/testservice/type/GraphQLBoolean.kt +++ /dev/null @@ -1,17 +0,0 @@ -// -// AUTO-GENERATED FILE. DO NOT MODIFY. -// -// This class was automatically generated by Apollo GraphQL version '4.3.1'. -// -package testservice.type - -import com.apollographql.apollo.api.CustomScalarType - -/** - * The `Boolean` scalar type represents `true` or `false`. - */ -public class GraphQLBoolean { - public companion object { - public val type: CustomScalarType = CustomScalarType("Boolean", "kotlin.Boolean") - } -} diff --git a/expediagroup-sdk-graphql/src/test/graphql/generated/testservice/type/GraphQLFloat.kt b/expediagroup-sdk-graphql/src/test/graphql/generated/testservice/type/GraphQLFloat.kt deleted file mode 100644 index 5bd56b46c..000000000 --- a/expediagroup-sdk-graphql/src/test/graphql/generated/testservice/type/GraphQLFloat.kt +++ /dev/null @@ -1,18 +0,0 @@ -// -// AUTO-GENERATED FILE. DO NOT MODIFY. -// -// This class was automatically generated by Apollo GraphQL version '4.3.1'. -// -package testservice.type - -import com.apollographql.apollo.api.CustomScalarType - -/** - * The `Float` scalar type represents signed double-precision fractional values as specified by - * [IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point). - */ -public class GraphQLFloat { - public companion object { - public val type: CustomScalarType = CustomScalarType("Float", "kotlin.Double") - } -} diff --git a/expediagroup-sdk-graphql/src/test/graphql/generated/testservice/type/GraphQLID.kt b/expediagroup-sdk-graphql/src/test/graphql/generated/testservice/type/GraphQLID.kt deleted file mode 100644 index a7dfa39a5..000000000 --- a/expediagroup-sdk-graphql/src/test/graphql/generated/testservice/type/GraphQLID.kt +++ /dev/null @@ -1,20 +0,0 @@ -// -// AUTO-GENERATED FILE. DO NOT MODIFY. -// -// This class was automatically generated by Apollo GraphQL version '4.3.1'. -// -package testservice.type - -import com.apollographql.apollo.api.CustomScalarType - -/** - * The `ID` scalar type represents a unique identifier, often used to refetch an object or as key - * for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be - * human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) - * input value will be accepted as an ID. - */ -public class GraphQLID { - public companion object { - public val type: CustomScalarType = CustomScalarType("ID", "kotlin.String") - } -} diff --git a/expediagroup-sdk-graphql/src/test/graphql/generated/testservice/type/GraphQLInt.kt b/expediagroup-sdk-graphql/src/test/graphql/generated/testservice/type/GraphQLInt.kt deleted file mode 100644 index 3641af099..000000000 --- a/expediagroup-sdk-graphql/src/test/graphql/generated/testservice/type/GraphQLInt.kt +++ /dev/null @@ -1,18 +0,0 @@ -// -// AUTO-GENERATED FILE. DO NOT MODIFY. -// -// This class was automatically generated by Apollo GraphQL version '4.3.1'. -// -package testservice.type - -import com.apollographql.apollo.api.CustomScalarType - -/** - * The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent - * values between -(2^31) and 2^31 - 1. - */ -public class GraphQLInt { - public companion object { - public val type: CustomScalarType = CustomScalarType("Int", "kotlin.Int") - } -} diff --git a/expediagroup-sdk-graphql/src/test/graphql/generated/testservice/type/GraphQLString.kt b/expediagroup-sdk-graphql/src/test/graphql/generated/testservice/type/GraphQLString.kt deleted file mode 100644 index 3f3ef9d85..000000000 --- a/expediagroup-sdk-graphql/src/test/graphql/generated/testservice/type/GraphQLString.kt +++ /dev/null @@ -1,18 +0,0 @@ -// -// AUTO-GENERATED FILE. DO NOT MODIFY. -// -// This class was automatically generated by Apollo GraphQL version '4.3.1'. -// -package testservice.type - -import com.apollographql.apollo.api.CustomScalarType - -/** - * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The - * String type is most often used by GraphQL to represent free-form human-readable text. - */ -public class GraphQLString { - public companion object { - public val type: CustomScalarType = CustomScalarType("String", "kotlin.String") - } -} diff --git a/expediagroup-sdk-graphql/src/test/graphql/generated/testservice/type/Mutation.kt b/expediagroup-sdk-graphql/src/test/graphql/generated/testservice/type/Mutation.kt deleted file mode 100644 index f4f1d8bd2..000000000 --- a/expediagroup-sdk-graphql/src/test/graphql/generated/testservice/type/Mutation.kt +++ /dev/null @@ -1,43 +0,0 @@ -// -// AUTO-GENERATED FILE. DO NOT MODIFY. -// -// This class was automatically generated by Apollo GraphQL version '4.3.1'. -// -package testservice.type - -import com.apollographql.apollo.api.BuilderFactory -import com.apollographql.apollo.api.BuilderScope -import com.apollographql.apollo.api.CustomScalarAdapters -import com.apollographql.apollo.api.DataBuilderDsl -import com.apollographql.apollo.api.ObjectBuilder -import com.apollographql.apollo.api.ObjectType -import kotlin.Any -import kotlin.String -import kotlin.Unit -import kotlin.collections.Map - -public class Mutation { - public companion object : BuilderFactory { - public val type: ObjectType = ObjectType.Builder(name = "Mutation").build() - - override fun newBuilder(customScalarAdapters: CustomScalarAdapters): MutationBuilder = MutationBuilder(customScalarAdapters) - } -} - -@DataBuilderDsl -public class MutationBuilder( - customScalarAdapters: CustomScalarAdapters, -) : ObjectBuilder(customScalarAdapters) { - public var testMutation: TestDataMap by __fields - - init { - __typename = "Mutation"} - - override fun build(): MutationMap = MutationMap(__fields) -} - -public class MutationMap( - __fields: Map, -) : Map by __fields - -public fun BuilderScope.buildMutation(block: MutationBuilder.() -> Unit): MutationMap = MutationBuilder(customScalarAdapters).apply(block).build() diff --git a/expediagroup-sdk-graphql/src/test/graphql/generated/testservice/type/Query.kt b/expediagroup-sdk-graphql/src/test/graphql/generated/testservice/type/Query.kt deleted file mode 100644 index d86a0a410..000000000 --- a/expediagroup-sdk-graphql/src/test/graphql/generated/testservice/type/Query.kt +++ /dev/null @@ -1,43 +0,0 @@ -// -// AUTO-GENERATED FILE. DO NOT MODIFY. -// -// This class was automatically generated by Apollo GraphQL version '4.3.1'. -// -package testservice.type - -import com.apollographql.apollo.api.BuilderFactory -import com.apollographql.apollo.api.BuilderScope -import com.apollographql.apollo.api.CustomScalarAdapters -import com.apollographql.apollo.api.DataBuilderDsl -import com.apollographql.apollo.api.ObjectBuilder -import com.apollographql.apollo.api.ObjectType -import kotlin.Any -import kotlin.String -import kotlin.Unit -import kotlin.collections.Map - -public class Query { - public companion object : BuilderFactory { - public val type: ObjectType = ObjectType.Builder(name = "Query").build() - - override fun newBuilder(customScalarAdapters: CustomScalarAdapters): QueryBuilder = QueryBuilder(customScalarAdapters) - } -} - -@DataBuilderDsl -public class QueryBuilder( - customScalarAdapters: CustomScalarAdapters, -) : ObjectBuilder(customScalarAdapters) { - public var testQuery: TestDataMap by __fields - - init { - __typename = "Query"} - - override fun build(): QueryMap = QueryMap(__fields) -} - -public class QueryMap( - __fields: Map, -) : Map by __fields - -public fun BuilderScope.buildQuery(block: QueryBuilder.() -> Unit): QueryMap = QueryBuilder(customScalarAdapters).apply(block).build() diff --git a/expediagroup-sdk-graphql/src/test/graphql/generated/testservice/type/TestData.kt b/expediagroup-sdk-graphql/src/test/graphql/generated/testservice/type/TestData.kt deleted file mode 100644 index 3008dad9b..000000000 --- a/expediagroup-sdk-graphql/src/test/graphql/generated/testservice/type/TestData.kt +++ /dev/null @@ -1,43 +0,0 @@ -// -// AUTO-GENERATED FILE. DO NOT MODIFY. -// -// This class was automatically generated by Apollo GraphQL version '4.3.1'. -// -package testservice.type - -import com.apollographql.apollo.api.BuilderFactory -import com.apollographql.apollo.api.BuilderScope -import com.apollographql.apollo.api.CustomScalarAdapters -import com.apollographql.apollo.api.DataBuilderDsl -import com.apollographql.apollo.api.ObjectBuilder -import com.apollographql.apollo.api.ObjectType -import kotlin.Any -import kotlin.String -import kotlin.Unit -import kotlin.collections.Map - -public class TestData { - public companion object : BuilderFactory { - public val type: ObjectType = ObjectType.Builder(name = "TestData").build() - - override fun newBuilder(customScalarAdapters: CustomScalarAdapters): TestDataBuilder = TestDataBuilder(customScalarAdapters) - } -} - -@DataBuilderDsl -public class TestDataBuilder( - customScalarAdapters: CustomScalarAdapters, -) : ObjectBuilder(customScalarAdapters) { - public var id: String by __fields - - init { - __typename = "TestData"} - - override fun build(): TestDataMap = TestDataMap(__fields) -} - -public class TestDataMap( - __fields: Map, -) : Map by __fields - -public fun BuilderScope.buildTestData(block: TestDataBuilder.() -> Unit): TestDataMap = TestDataBuilder(customScalarAdapters).apply(block).build() diff --git a/expediagroup-sdk-graphql/src/test/graphql/generated/testservice/type/__CustomScalarAdapters.kt b/expediagroup-sdk-graphql/src/test/graphql/generated/testservice/type/__CustomScalarAdapters.kt deleted file mode 100644 index a1c0e425b..000000000 --- a/expediagroup-sdk-graphql/src/test/graphql/generated/testservice/type/__CustomScalarAdapters.kt +++ /dev/null @@ -1,14 +0,0 @@ -// -// AUTO-GENERATED FILE. DO NOT MODIFY. -// -// This class was automatically generated by Apollo GraphQL version '4.3.1'. -// -package testservice.type - -import com.apollographql.apollo.api.CustomScalarAdapters - -/** - * A [CustomScalarAdapters] instance containing all the adapters known at build time - */ -public val __CustomScalarAdapters: CustomScalarAdapters = CustomScalarAdapters.Builder() - .build()