-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathschema.gql
More file actions
134 lines (116 loc) · 2.96 KB
/
schema.gql
File metadata and controls
134 lines (116 loc) · 2.96 KB
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
schema {
query: Query
}
type Query {
"""
Returns information about a Chrome extension based on it's ID and language (defaults to "en").
"""
chromeExtension(id: String!): ChromeExtension
"""
Returns information about a list of Chrome extension ids.
"""
chromeExtensions(ids: [String!]!): [ChromeExtension]!
"""
Returns information about a Firefox addon based on it's ID/GUID/slug.
"""
firefoxAddon(id: String!): FirefoxAddon
"""
Returns information about a list of Firefox addon ID/GUID/slugs.
"""
firefoxAddons(ids: [String!]!): [FirefoxAddon]!
"""
Returns information about an Edge addon based on it's CRX ID.
"""
edgeAddon(id: String!): EdgeAddon
"""
Returns information about a list of Edge addon IDs.
"""
edgeAddons(ids: [String!]!): [EdgeAddon]!
}
interface Extension {
id: String!
name: String!
iconUrl: String!
storeUrl: String!
shortDescription: String!
longDescription: String!
"""
Different extension stores report users in different units (e.g., weekly active users, daily active users).
This field is meant to be used as a generic representation of the number of users. Each type that extends this one has individual fields denoting the unit (`ChromeExtension.weeklyActiveUsers`, `FirefoxAddon.dailyActiveUsers`, etc).
"""
users: Int!
version: String!
lastUpdated: String!
rating: Float
reviewCount: Int
screenshots: [Screenshot!]!
}
type ChromeExtension implements Extension {
# Extension fields
id: String!
name: String!
iconUrl: String!
storeUrl: String!
shortDescription: String!
longDescription: String!
"Same as weeklyActiveUsers"
users: Int!
version: String!
lastUpdated: String!
rating: Float
reviewCount: Int
screenshots: [Screenshot!]!
# Additional fields
weeklyActiveUsers: Int!
}
type FirefoxAddon implements Extension {
# Extension fields
id: String!
name: String!
iconUrl: String!
storeUrl: String!
shortDescription: String!
longDescription: String!
"Same as dailyActiveUsers"
users: Int!
version: String!
lastUpdated: String!
rating: Float
reviewCount: Int
screenshots: [Screenshot!]!
# Additional fields
dailyActiveUsers: Int!
}
type EdgeAddon implements Extension {
# Extension fields
id: String!
name: String!
iconUrl: String!
storeUrl: String!
shortDescription: String!
longDescription: String!
"Same as activeInstallCount"
users: Int!
version: String!
lastUpdated: String!
rating: Float
reviewCount: Int
screenshots: [Screenshot!]!
# Additional fields
"Number of users shown on `microsoftedge.microsoft.com`"
activeInstallCount: Int!
}
type Screenshot {
"""
The screenshot's order.
"""
index: Int!
"""
The image's raw URL provided by the service. When screenshots are updated, this URL changes.
"""
rawUrl: String!
"""
URL to the image based on the index. If the raw URL changes, the `indexUrl` will remain constant, good for links in README.md files.
"""
indexUrl: String!
}