-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.gql
93 lines (86 loc) · 1.55 KB
/
schema.gql
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
type Query {
program(shortname: String!): Program,
episode(id: String!): Episode,
programs(
search_param: String,
limit_to: Int,
deep: Boolean = false,
no_cache: Boolean = false
): [Program]
},
type Mutation {
new_program(input: NewProgram): Program,
edit_program(shortname: String!, data: UpdateProgram): Program
}
input NewProgram {
name: String,
author: String,
owners: [String]
}
input UpdateProgram {
active: Boolean,
author: String,
copyright: String,
cover_image: String,
description: String,
explicit: Boolean,
image: String,
itunes_categories: [String],
language: String,
name: String,
organizations: [String],
owners: [String],
redirect_url: [String],
scheduled_time: String,
shortname: String,
stream: String,
subtitle: String,
tags: String,
id: String,
}
type Program {
active: Boolean,
author: String,
copyright: String,
cover_image: String,
description: String,
explicit: Boolean,
image: String,
itunes_categories: [String],
language: String,
name: String,
organizations: [String],
owners: [String],
redirect_url: [String],
scheduled_time: String,
shortname: String,
stream: String,
subtitle: String,
tags: String,
id: String,
episodes: [Episode]
},
type Episode {
audio_url: String,
delay: Int,
description: String,
end_time: String,
explicit: Boolean,
guid: String,
hits: Int,
image: String,
length: Int,
name: String,
pubdate: String,
start_time: String,
type: String,
id: String,
tracks: [Track]
},
type Track {
artist: String,
log_time: String,
mbid: String,
title: String,
id: String
}