|
@@ -34,6 +34,13 @@ type AccessTokenResponse
|
|
|
scope: [String!]!
|
|
|
}
|
|
|
|
|
|
+type Country
|
|
|
+ @join__type(graph: SPORTS, key: "name")
|
|
|
+{
|
|
|
+ name: String!
|
|
|
+ image: String
|
|
|
+}
|
|
|
+
|
|
|
input Credentials
|
|
|
@join__type(graph: AUTH)
|
|
|
{
|
|
@@ -43,6 +50,7 @@ input Credentials
|
|
|
|
|
|
scalar DateTime
|
|
|
@join__type(graph: AUTH)
|
|
|
+ @join__type(graph: SPORTS)
|
|
|
|
|
|
enum ErrorAuth
|
|
|
@join__type(graph: AUTH)
|
|
@@ -56,6 +64,20 @@ scalar join__FieldSet
|
|
|
|
|
|
enum join__Graph {
|
|
|
AUTH @join__graph(name: "auth", url: "https://auth.craft.beejay.kim")
|
|
|
+ SPORTS @join__graph(name: "sports", url: "https://sports.craft.beejay.kim")
|
|
|
+}
|
|
|
+
|
|
|
+scalar JSON
|
|
|
+ @join__type(graph: SPORTS)
|
|
|
+
|
|
|
+type League implements Node
|
|
|
+ @join__implements(graph: SPORTS, interface: "Node")
|
|
|
+ @join__type(graph: SPORTS, key: "id")
|
|
|
+{
|
|
|
+ id: ID!
|
|
|
+ name: String!
|
|
|
+ image: String
|
|
|
+ country: Country
|
|
|
}
|
|
|
|
|
|
scalar link__Import
|
|
@@ -72,6 +94,38 @@ enum link__Purpose {
|
|
|
EXECUTION
|
|
|
}
|
|
|
|
|
|
+type Match implements Node
|
|
|
+ @join__implements(graph: SPORTS, interface: "Node")
|
|
|
+ @join__type(graph: SPORTS, key: "id")
|
|
|
+{
|
|
|
+ id: ID!
|
|
|
+ status: Int!
|
|
|
+ period: Int!
|
|
|
+ league: League!
|
|
|
+ home_team: Team!
|
|
|
+ away_team: Team!
|
|
|
+ time: DateTime!
|
|
|
+ timer: String
|
|
|
+ score: JSON
|
|
|
+ updated_at: DateTime!
|
|
|
+}
|
|
|
+
|
|
|
+input MatchCriteria
|
|
|
+ @join__type(graph: SPORTS)
|
|
|
+{
|
|
|
+ type: MatchType!
|
|
|
+ sport: Sport
|
|
|
+ league: Int
|
|
|
+}
|
|
|
+
|
|
|
+enum MatchType
|
|
|
+ @join__type(graph: SPORTS)
|
|
|
+{
|
|
|
+ Basic @join__enumValue(graph: SPORTS)
|
|
|
+ Special @join__enumValue(graph: SPORTS)
|
|
|
+ Live @join__enumValue(graph: SPORTS)
|
|
|
+}
|
|
|
+
|
|
|
type Mutation
|
|
|
@join__type(graph: AUTH)
|
|
|
{
|
|
@@ -82,14 +136,40 @@ type Mutation
|
|
|
|
|
|
interface Node
|
|
|
@join__type(graph: AUTH)
|
|
|
+ @join__type(graph: SPORTS)
|
|
|
{
|
|
|
id: ID!
|
|
|
}
|
|
|
|
|
|
type Query
|
|
|
@join__type(graph: AUTH)
|
|
|
+ @join__type(graph: SPORTS)
|
|
|
+{
|
|
|
+ User(id: ID!): User @join__field(graph: AUTH)
|
|
|
+ MatchList(after: String, before: String, first: Int, last: Int, reverse: Boolean = false, criteria: MatchCriteria!): [Match!]! @join__field(graph: SPORTS)
|
|
|
+}
|
|
|
+
|
|
|
+enum Sport
|
|
|
+ @join__type(graph: SPORTS)
|
|
|
+{
|
|
|
+ soccer @join__enumValue(graph: SPORTS)
|
|
|
+ basketball @join__enumValue(graph: SPORTS)
|
|
|
+ baseball @join__enumValue(graph: SPORTS)
|
|
|
+ volleyball @join__enumValue(graph: SPORTS)
|
|
|
+ icehockey @join__enumValue(graph: SPORTS)
|
|
|
+ tennis @join__enumValue(graph: SPORTS)
|
|
|
+ esports @join__enumValue(graph: SPORTS)
|
|
|
+ tabletennis @join__enumValue(graph: SPORTS)
|
|
|
+ handball @join__enumValue(graph: SPORTS)
|
|
|
+}
|
|
|
+
|
|
|
+type Team implements Node
|
|
|
+ @join__implements(graph: SPORTS, interface: "Node")
|
|
|
+ @join__type(graph: SPORTS, key: "id")
|
|
|
{
|
|
|
- User(id: ID!): User
|
|
|
+ id: ID!
|
|
|
+ name: String
|
|
|
+ image: String
|
|
|
}
|
|
|
|
|
|
type User implements Node
|