This repository has been archived by the owner on Feb 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
consumat-io.graphql
135 lines (122 loc) · 2.88 KB
/
consumat-io.graphql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
type Query {
movie(code: Int): Movie!
tv(code: Int): TV!
season(code: Int, seasonNumber: Int): Season!
episode(code: Int, seasonNumber: Int, episodeNumber: Int): Episode!
search(keyword: String, page: Int): MediaPage
popular(type: String, page: Int): MediaPage
byRating(type: String, tmdbRating: Float, minVotes: Int, releasedFrom: String, page: Int): MediaPage
discover(type: String, person: Int, similarTo: Int, page: Int): MediaPage
list(type: String, watchStatus: String, favorite: Boolean): [Media]
tvSeasons(code: Int): [Season]
seasonEpisodes(code: Int, seasonNumber: Int): [Episode]
watchCount(type: String): Int
watchTime(type: String): Int
user: i18n
}
type Mutation {
rating(code: Int!, type: String!, rating: Int) : Payload!
favorite(code: Int!, type: String!, favorite: Boolean!, seasonNumber: Int, episodeNumber: Int) : Payload!
watchStatus(code: Int!, type: String!, watchStatus: String) : Payload!
numberOfWatchedEpisodes(code: Int!,seasonNumber: Int!, numberOfWatchedEpisodes: Int): Payload!
country(country: String!): Payload!
language(language: String!): Payload!
}
union Media = Movie | TV
type i18n {
country: String
language: String
}
type Payload {
status: Boolean!
}
type MediaPage {
totalPages: Int
results: [Media]
}
type Movie {
code: Int
title: String
genres: [Genre]
overview: String
popularity: Float
ratingAverage: Float
ratingCount: Int
releaseInitial: String
runtime: Int
status: String
backdropPath: String
posterPath: String
providers: [Provider]
cast: [Cast]
directors: [Director]
tmdbUrl: String
watchStatus: String
ratingUser: Int
favorite: Boolean
}
type Provider {
name: String
}
type Genre {
name: String
}
type Director {
code: Int
name: String
imagePath: String
}
type Cast {
code: Int
name: String
role: String
imagePath: String
job: String
}
type TV {
code: Int
title: String
genres: [Genre]
overview: String
popularity: Float
ratingAverage: Float
ratingCount: Int
releaseInitial: String
releaseFinal: String
status: String
backdropPath: String
posterPath: String
providers: [Provider]
directors: [Director]
cast: [Cast]
numberOfEpisodes: Int
numberOfSeasons: Int
tmdbUrl: String
watchStatus: String
ratingUser: Int
favorite: Boolean
runtime: Int
}
type Season {
code: Int
tvCode: Int
seasonNumber: Int
title: String
overview: String
posterPath: String
favorite: Boolean
numberOfEpisodes: Int
airDate: String
numberOfWatchedEpisodes: Int
}
type Episode {
code: Int
title: String
episodeNumber: Int
seasonNumber: Int
overview: String
airDate: String
ratingAverage: Float
stillPath: String
favorite: Boolean
}