@valoranchi/riot-client 0.6.0 → 0.7.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.
Files changed (49) hide show
  1. package/README.md +1 -0
  2. package/dist/analysis/session.d.ts +10 -0
  3. package/dist/analysis/session.d.ts.map +1 -0
  4. package/dist/analysis/session.js +209 -0
  5. package/dist/analysis/session.js.map +1 -0
  6. package/dist/cli.d.ts +6 -2
  7. package/dist/cli.d.ts.map +1 -1
  8. package/dist/cli.js +71 -5
  9. package/dist/cli.js.map +1 -1
  10. package/dist/client/MatchService.d.ts +6 -1
  11. package/dist/client/MatchService.d.ts.map +1 -1
  12. package/dist/client/MatchService.js +37 -0
  13. package/dist/client/MatchService.js.map +1 -1
  14. package/dist/client/api.d.ts +6 -1
  15. package/dist/client/api.d.ts.map +1 -1
  16. package/dist/index.d.ts +3 -2
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/index.js +2 -1
  19. package/dist/index.js.map +1 -1
  20. package/dist/model/index.d.ts +22 -0
  21. package/dist/model/index.d.ts.map +1 -1
  22. package/dist/riot/RiotApi.d.ts.map +1 -1
  23. package/dist/riot/RiotApi.js +2 -2
  24. package/dist/riot/RiotApi.js.map +1 -1
  25. package/dist/serve/routes.d.ts.map +1 -1
  26. package/dist/serve/routes.js +19 -0
  27. package/dist/serve/routes.js.map +1 -1
  28. package/dist/watch/Instalock.d.ts +68 -0
  29. package/dist/watch/Instalock.d.ts.map +1 -0
  30. package/dist/watch/Instalock.js +147 -0
  31. package/dist/watch/Instalock.js.map +1 -0
  32. package/dist/watch/MatchRecap.d.ts +21 -0
  33. package/dist/watch/MatchRecap.d.ts.map +1 -0
  34. package/dist/watch/MatchRecap.js +80 -0
  35. package/dist/watch/MatchRecap.js.map +1 -0
  36. package/dist/watch/MatchWatcher.d.ts +4 -0
  37. package/dist/watch/MatchWatcher.d.ts.map +1 -1
  38. package/dist/watch/MatchWatcher.js +42 -0
  39. package/dist/watch/MatchWatcher.js.map +1 -1
  40. package/dist/watch/WebhookNotifier.d.ts +3 -2
  41. package/dist/watch/WebhookNotifier.d.ts.map +1 -1
  42. package/dist/watch/WebhookNotifier.js +28 -4
  43. package/dist/watch/WebhookNotifier.js.map +1 -1
  44. package/dist/watch/index.d.ts +2 -0
  45. package/dist/watch/index.d.ts.map +1 -1
  46. package/dist/watch/index.js +2 -0
  47. package/dist/watch/index.js.map +1 -1
  48. package/package.json +5 -3
  49. package/schema/Session.json +155 -0
@@ -0,0 +1,155 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/Session",
4
+ "definitions": {
5
+ "Session": {
6
+ "type": "object",
7
+ "properties": {
8
+ "since": {
9
+ "type": "string"
10
+ },
11
+ "matches": {
12
+ "type": "number"
13
+ },
14
+ "wins": {
15
+ "type": "number"
16
+ },
17
+ "losses": {
18
+ "type": "number"
19
+ },
20
+ "draws": {
21
+ "type": "number"
22
+ },
23
+ "rrNet": {
24
+ "type": "number"
25
+ },
26
+ "rrPerGame": {
27
+ "type": "number"
28
+ },
29
+ "streak": {
30
+ "$ref": "#/definitions/RatingStreak"
31
+ },
32
+ "rankStart": {
33
+ "anyOf": [
34
+ {
35
+ "$ref": "#/definitions/Rank"
36
+ },
37
+ {
38
+ "type": "null"
39
+ }
40
+ ]
41
+ },
42
+ "rankNow": {
43
+ "anyOf": [
44
+ {
45
+ "$ref": "#/definitions/Rank"
46
+ },
47
+ {
48
+ "type": "null"
49
+ }
50
+ ]
51
+ },
52
+ "bestMatch": {
53
+ "anyOf": [
54
+ {
55
+ "$ref": "#/definitions/SessionMatchAcs"
56
+ },
57
+ {
58
+ "type": "null"
59
+ }
60
+ ]
61
+ },
62
+ "worstMatch": {
63
+ "anyOf": [
64
+ {
65
+ "$ref": "#/definitions/SessionMatchAcs"
66
+ },
67
+ {
68
+ "type": "null"
69
+ }
70
+ ]
71
+ },
72
+ "tilt": {
73
+ "type": "boolean"
74
+ }
75
+ },
76
+ "required": [
77
+ "since",
78
+ "matches",
79
+ "wins",
80
+ "losses",
81
+ "draws",
82
+ "rrNet",
83
+ "rrPerGame",
84
+ "streak",
85
+ "rankStart",
86
+ "rankNow",
87
+ "bestMatch",
88
+ "worstMatch",
89
+ "tilt"
90
+ ],
91
+ "additionalProperties": false
92
+ },
93
+ "RatingStreak": {
94
+ "type": "object",
95
+ "properties": {
96
+ "kind": {
97
+ "type": ["string", "null"],
98
+ "enum": ["win", "loss", null]
99
+ },
100
+ "length": {
101
+ "type": "number"
102
+ }
103
+ },
104
+ "required": ["kind", "length"],
105
+ "additionalProperties": false
106
+ },
107
+ "Rank": {
108
+ "type": "object",
109
+ "properties": {
110
+ "tier": {
111
+ "type": "number"
112
+ },
113
+ "name": {
114
+ "type": "string"
115
+ },
116
+ "division": {
117
+ "type": ["string", "null"]
118
+ },
119
+ "icon": {
120
+ "$ref": "#/definitions/Image"
121
+ },
122
+ "rating": {
123
+ "type": ["number", "null"]
124
+ }
125
+ },
126
+ "required": ["tier", "name", "division", "icon", "rating"],
127
+ "additionalProperties": false
128
+ },
129
+ "Image": {
130
+ "type": ["string", "null"]
131
+ },
132
+ "SessionMatchAcs": {
133
+ "type": "object",
134
+ "properties": {
135
+ "id": {
136
+ "type": "string"
137
+ },
138
+ "matchId": {
139
+ "type": "string"
140
+ },
141
+ "acs": {
142
+ "type": "number"
143
+ },
144
+ "map": {
145
+ "type": ["string", "null"]
146
+ },
147
+ "agent": {
148
+ "type": ["string", "null"]
149
+ }
150
+ },
151
+ "required": ["id", "matchId", "acs", "map", "agent"],
152
+ "additionalProperties": false
153
+ }
154
+ }
155
+ }