@valoranchi/riot-client 0.8.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/dist/cli.d.ts +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +9 -0
- package/dist/cli.js.map +1 -1
- package/dist/client/AccountService.d.ts +4 -1
- package/dist/client/AccountService.d.ts.map +1 -1
- package/dist/client/AccountService.js +40 -1
- package/dist/client/AccountService.js.map +1 -1
- package/dist/client/AccountValidator.d.ts +1 -0
- package/dist/client/AccountValidator.d.ts.map +1 -1
- package/dist/client/AccountValidator.js +9 -0
- package/dist/client/AccountValidator.js.map +1 -1
- package/dist/client/api.d.ts +4 -1
- package/dist/client/api.d.ts.map +1 -1
- package/dist/collection/AccountProgressionBuilder.d.ts +12 -2
- package/dist/collection/AccountProgressionBuilder.d.ts.map +1 -1
- package/dist/collection/AccountProgressionBuilder.js +117 -0
- package/dist/collection/AccountProgressionBuilder.js.map +1 -1
- package/dist/collection/MatchBuilder.d.ts +1 -0
- package/dist/collection/MatchBuilder.d.ts.map +1 -1
- package/dist/collection/MatchBuilder.js +44 -0
- package/dist/collection/MatchBuilder.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/model/index.d.ts +111 -0
- package/dist/model/index.d.ts.map +1 -1
- package/dist/riot/RiotApi.d.ts +6 -1
- package/dist/riot/RiotApi.d.ts.map +1 -1
- package/dist/riot/RiotApi.js +15 -0
- package/dist/riot/RiotApi.js.map +1 -1
- package/dist/riot/types.d.ts +193 -1
- package/dist/riot/types.d.ts.map +1 -1
- package/dist/serve/routes.d.ts.map +1 -1
- package/dist/serve/routes.js +38 -0
- package/dist/serve/routes.js.map +1 -1
- package/package.json +1 -1
- package/schema/AgentMastery.json +58 -0
- package/schema/DailyCheckpoints.json +63 -0
- package/schema/Match.json +100 -2
- package/schema/MatchProgress.json +234 -0
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$ref": "#/definitions/MatchProgress",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"MatchProgress": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"matchId": {
|
|
9
|
+
"type": "string"
|
|
10
|
+
},
|
|
11
|
+
"agentMastery": {
|
|
12
|
+
"anyOf": [
|
|
13
|
+
{
|
|
14
|
+
"$ref": "#/definitions/MatchAgentMastery"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"type": "null"
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
"contracts": {
|
|
22
|
+
"anyOf": [
|
|
23
|
+
{
|
|
24
|
+
"$ref": "#/definitions/MatchContractProgress"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"type": "null"
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"daily": {
|
|
32
|
+
"anyOf": [
|
|
33
|
+
{
|
|
34
|
+
"$ref": "#/definitions/MatchDailyProgress"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"type": "null"
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"required": ["matchId", "agentMastery", "contracts", "daily"],
|
|
43
|
+
"additionalProperties": false
|
|
44
|
+
},
|
|
45
|
+
"MatchAgentMastery": {
|
|
46
|
+
"type": "object",
|
|
47
|
+
"properties": {
|
|
48
|
+
"agentId": {
|
|
49
|
+
"type": "string"
|
|
50
|
+
},
|
|
51
|
+
"agentName": {
|
|
52
|
+
"type": "string"
|
|
53
|
+
},
|
|
54
|
+
"agentIcon": {
|
|
55
|
+
"$ref": "#/definitions/Image"
|
|
56
|
+
},
|
|
57
|
+
"pointsBefore": {
|
|
58
|
+
"type": ["number", "null"]
|
|
59
|
+
},
|
|
60
|
+
"pointsAfter": {
|
|
61
|
+
"type": "number"
|
|
62
|
+
},
|
|
63
|
+
"earned": {
|
|
64
|
+
"type": "number"
|
|
65
|
+
},
|
|
66
|
+
"breakdown": {
|
|
67
|
+
"type": "object",
|
|
68
|
+
"properties": {
|
|
69
|
+
"secondsPlayed": {
|
|
70
|
+
"type": "number"
|
|
71
|
+
},
|
|
72
|
+
"timePlayed": {
|
|
73
|
+
"type": "number"
|
|
74
|
+
},
|
|
75
|
+
"winBonus": {
|
|
76
|
+
"type": "number"
|
|
77
|
+
},
|
|
78
|
+
"performanceBonus": {
|
|
79
|
+
"type": "number"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"required": ["secondsPlayed", "timePlayed", "winBonus", "performanceBonus"],
|
|
83
|
+
"additionalProperties": false
|
|
84
|
+
},
|
|
85
|
+
"longLevelBefore": {
|
|
86
|
+
"type": ["number", "null"]
|
|
87
|
+
},
|
|
88
|
+
"longLevelAfter": {
|
|
89
|
+
"type": "number"
|
|
90
|
+
},
|
|
91
|
+
"shortLevelBefore": {
|
|
92
|
+
"type": ["number", "null"]
|
|
93
|
+
},
|
|
94
|
+
"shortLevelAfter": {
|
|
95
|
+
"type": "number"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"required": [
|
|
99
|
+
"agentId",
|
|
100
|
+
"agentName",
|
|
101
|
+
"agentIcon",
|
|
102
|
+
"pointsBefore",
|
|
103
|
+
"pointsAfter",
|
|
104
|
+
"earned",
|
|
105
|
+
"breakdown",
|
|
106
|
+
"longLevelBefore",
|
|
107
|
+
"longLevelAfter",
|
|
108
|
+
"shortLevelBefore",
|
|
109
|
+
"shortLevelAfter"
|
|
110
|
+
],
|
|
111
|
+
"additionalProperties": false
|
|
112
|
+
},
|
|
113
|
+
"Image": {
|
|
114
|
+
"type": ["string", "null"]
|
|
115
|
+
},
|
|
116
|
+
"MatchContractProgress": {
|
|
117
|
+
"type": "object",
|
|
118
|
+
"properties": {
|
|
119
|
+
"xp": {
|
|
120
|
+
"type": "object",
|
|
121
|
+
"properties": {
|
|
122
|
+
"roundsPlayed": {
|
|
123
|
+
"type": "number"
|
|
124
|
+
},
|
|
125
|
+
"roundsWon": {
|
|
126
|
+
"type": "number"
|
|
127
|
+
},
|
|
128
|
+
"gamePlayed": {
|
|
129
|
+
"type": "number"
|
|
130
|
+
},
|
|
131
|
+
"gameWon": {
|
|
132
|
+
"type": "number"
|
|
133
|
+
},
|
|
134
|
+
"total": {
|
|
135
|
+
"type": "number"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"required": ["roundsPlayed", "roundsWon", "gamePlayed", "gameWon", "total"],
|
|
139
|
+
"additionalProperties": false
|
|
140
|
+
},
|
|
141
|
+
"kingdomCredits": {
|
|
142
|
+
"type": "object",
|
|
143
|
+
"properties": {
|
|
144
|
+
"roundsPlayed": {
|
|
145
|
+
"type": "number"
|
|
146
|
+
},
|
|
147
|
+
"roundsWon": {
|
|
148
|
+
"type": "number"
|
|
149
|
+
},
|
|
150
|
+
"gamePlayed": {
|
|
151
|
+
"type": "number"
|
|
152
|
+
},
|
|
153
|
+
"total": {
|
|
154
|
+
"type": "number"
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
"required": ["roundsPlayed", "roundsWon", "gamePlayed", "total"],
|
|
158
|
+
"additionalProperties": false
|
|
159
|
+
},
|
|
160
|
+
"contractXp": {
|
|
161
|
+
"type": "array",
|
|
162
|
+
"items": {
|
|
163
|
+
"type": "object",
|
|
164
|
+
"properties": {
|
|
165
|
+
"contractId": {
|
|
166
|
+
"type": "string"
|
|
167
|
+
},
|
|
168
|
+
"name": {
|
|
169
|
+
"type": "string"
|
|
170
|
+
},
|
|
171
|
+
"before": {
|
|
172
|
+
"type": "number"
|
|
173
|
+
},
|
|
174
|
+
"after": {
|
|
175
|
+
"type": "number"
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
"required": ["contractId", "name", "before", "after"],
|
|
179
|
+
"additionalProperties": false
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
"rewards": {
|
|
183
|
+
"type": "array",
|
|
184
|
+
"items": {
|
|
185
|
+
"type": "object",
|
|
186
|
+
"properties": {
|
|
187
|
+
"contractId": {
|
|
188
|
+
"type": "string"
|
|
189
|
+
},
|
|
190
|
+
"type": {
|
|
191
|
+
"type": "string"
|
|
192
|
+
},
|
|
193
|
+
"uuid": {
|
|
194
|
+
"type": "string"
|
|
195
|
+
},
|
|
196
|
+
"name": {
|
|
197
|
+
"type": "string"
|
|
198
|
+
},
|
|
199
|
+
"icon": {
|
|
200
|
+
"$ref": "#/definitions/Image"
|
|
201
|
+
},
|
|
202
|
+
"amount": {
|
|
203
|
+
"type": "number"
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
"required": ["contractId", "type", "uuid", "name", "icon", "amount"],
|
|
207
|
+
"additionalProperties": false
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
"required": ["xp", "kingdomCredits", "contractXp", "rewards"],
|
|
212
|
+
"additionalProperties": false
|
|
213
|
+
},
|
|
214
|
+
"MatchDailyProgress": {
|
|
215
|
+
"type": "object",
|
|
216
|
+
"properties": {
|
|
217
|
+
"progressBefore": {
|
|
218
|
+
"type": "number"
|
|
219
|
+
},
|
|
220
|
+
"progressAfter": {
|
|
221
|
+
"type": "number"
|
|
222
|
+
},
|
|
223
|
+
"xp": {
|
|
224
|
+
"type": "number"
|
|
225
|
+
},
|
|
226
|
+
"kingdomCredits": {
|
|
227
|
+
"type": "number"
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
"required": ["progressBefore", "progressAfter", "xp", "kingdomCredits"],
|
|
231
|
+
"additionalProperties": false
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|