-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4e46136
commit acc1385
Showing
10 changed files
with
269 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
99 changes: 99 additions & 0 deletions
99
src/main/kotlin/com/example/demo/generated/DgsConstants.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
package com.example.demo.generated | ||
|
||
import kotlin.String | ||
|
||
public object DgsConstants { | ||
public const val QUERY_TYPE: String = "Query" | ||
|
||
public const val Mutation_TYPE: String = "Mutation" | ||
|
||
public const val Subscription_TYPE: String = "Subscription" | ||
|
||
public object QUERY { | ||
public const val TYPE_NAME: String = "Query" | ||
|
||
public const val Shows: String = "shows" | ||
|
||
public object SHOWS_INPUT_ARGUMENT { | ||
public const val TitleFilter: String = "titleFilter" | ||
} | ||
} | ||
|
||
public object MUTATION { | ||
public const val TYPE_NAME: String = "Mutation" | ||
|
||
public const val AddReview: String = "addReview" | ||
|
||
public const val AddArtwork: String = "addArtwork" | ||
|
||
public object ADDREVIEW_INPUT_ARGUMENT { | ||
public const val Review: String = "review" | ||
} | ||
|
||
public object ADDARTWORK_INPUT_ARGUMENT { | ||
public const val ShowId: String = "showId" | ||
|
||
public const val Upload: String = "upload" | ||
} | ||
} | ||
|
||
public object SUBSCRIPTION { | ||
public const val TYPE_NAME: String = "Subscription" | ||
|
||
public const val ReviewAdded: String = "reviewAdded" | ||
|
||
public object REVIEWADDED_INPUT_ARGUMENT { | ||
public const val ShowId: String = "showId" | ||
} | ||
} | ||
|
||
public object SHOW { | ||
public const val TYPE_NAME: String = "Show" | ||
|
||
public const val Id: String = "id" | ||
|
||
public const val Title: String = "title" | ||
|
||
public const val ReleaseYear: String = "releaseYear" | ||
|
||
public const val Reviews: String = "reviews" | ||
|
||
public const val Artwork: String = "artwork" | ||
|
||
public object TITLE_INPUT_ARGUMENT { | ||
public const val Format: String = "format" | ||
} | ||
} | ||
|
||
public object REVIEW { | ||
public const val TYPE_NAME: String = "Review" | ||
|
||
public const val Username: String = "username" | ||
|
||
public const val StarScore: String = "starScore" | ||
|
||
public const val SubmittedDate: String = "submittedDate" | ||
} | ||
|
||
public object IMAGE { | ||
public const val TYPE_NAME: String = "Image" | ||
|
||
public const val Url: String = "url" | ||
} | ||
|
||
public object TITLEFORMAT { | ||
public const val TYPE_NAME: String = "TitleFormat" | ||
|
||
public const val Uppercase: String = "uppercase" | ||
} | ||
|
||
public object SUBMITTEDREVIEW { | ||
public const val TYPE_NAME: String = "SubmittedReview" | ||
|
||
public const val ShowId: String = "showId" | ||
|
||
public const val Username: String = "username" | ||
|
||
public const val StarScore: String = "starScore" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.example.demo.generated.types | ||
|
||
import com.fasterxml.jackson.`annotation`.JsonProperty | ||
import kotlin.String | ||
|
||
public data class Image( | ||
@JsonProperty("url") | ||
public val url: String? = null, | ||
) { | ||
public companion object | ||
} |
17 changes: 17 additions & 0 deletions
17
src/main/kotlin/com/example/demo/generated/types/Review.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.example.demo.generated.types | ||
|
||
import com.fasterxml.jackson.`annotation`.JsonProperty | ||
import java.time.OffsetDateTime | ||
import kotlin.Int | ||
import kotlin.String | ||
|
||
public data class Review( | ||
@JsonProperty("username") | ||
public val username: String? = null, | ||
@JsonProperty("starScore") | ||
public val starScore: Int? = null, | ||
@JsonProperty("submittedDate") | ||
public val submittedDate: OffsetDateTime? = null, | ||
) { | ||
public companion object | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.example.demo.generated.types | ||
|
||
import com.fasterxml.jackson.`annotation`.JsonProperty | ||
import kotlin.Int | ||
import kotlin.String | ||
import kotlin.collections.List | ||
|
||
public data class Show( | ||
@JsonProperty("id") | ||
public val id: Int, | ||
@JsonProperty("title") | ||
public val title: String, | ||
@JsonProperty("releaseYear") | ||
public val releaseYear: Int? = null, | ||
@JsonProperty("reviews") | ||
public val reviews: List<Review?>? = null, | ||
@JsonProperty("artwork") | ||
public val artwork: List<Image?>? = null, | ||
) { | ||
public companion object | ||
} |
16 changes: 16 additions & 0 deletions
16
src/main/kotlin/com/example/demo/generated/types/SubmittedReview.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.example.demo.generated.types | ||
|
||
import com.fasterxml.jackson.`annotation`.JsonProperty | ||
import kotlin.Int | ||
import kotlin.String | ||
|
||
public data class SubmittedReview( | ||
@JsonProperty("showId") | ||
public val showId: Int, | ||
@JsonProperty("username") | ||
public val username: String, | ||
@JsonProperty("starScore") | ||
public val starScore: Int, | ||
) { | ||
public companion object | ||
} |
10 changes: 10 additions & 0 deletions
10
src/main/kotlin/com/example/demo/generated/types/Subscription.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.example.demo.generated.types | ||
|
||
import com.fasterxml.jackson.`annotation`.JsonProperty | ||
|
||
public data class Subscription( | ||
@JsonProperty("reviewAdded") | ||
public val reviewAdded: Review? = null, | ||
) { | ||
public companion object | ||
} |
11 changes: 11 additions & 0 deletions
11
src/main/kotlin/com/example/demo/generated/types/TitleFormat.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.example.demo.generated.types | ||
|
||
import com.fasterxml.jackson.`annotation`.JsonProperty | ||
import kotlin.Boolean | ||
|
||
public data class TitleFormat( | ||
@JsonProperty("uppercase") | ||
public val uppercase: Boolean? = null, | ||
) { | ||
public companion object | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.