@valoranchi/riot-client 0.3.0 → 0.4.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 -1
- package/dist/RiotClient.d.ts +4 -0
- package/dist/RiotClient.d.ts.map +1 -1
- package/dist/RiotClient.js +12 -3
- package/dist/RiotClient.js.map +1 -1
- package/dist/analysis/collectionValue.d.ts +4 -0
- package/dist/analysis/collectionValue.d.ts.map +1 -0
- package/dist/analysis/collectionValue.js +119 -0
- package/dist/analysis/collectionValue.js.map +1 -0
- package/dist/analysis/loadoutDiff.d.ts +6 -0
- package/dist/analysis/loadoutDiff.d.ts.map +1 -0
- package/dist/analysis/loadoutDiff.js +258 -0
- package/dist/analysis/loadoutDiff.js.map +1 -0
- package/dist/analysis/matchSync.d.ts +8 -0
- package/dist/analysis/matchSync.d.ts.map +1 -0
- package/dist/analysis/matchSync.js +66 -0
- package/dist/analysis/matchSync.js.map +1 -0
- package/dist/analysis/performanceSummary.d.ts +4 -0
- package/dist/analysis/performanceSummary.d.ts.map +1 -0
- package/dist/analysis/performanceSummary.js +184 -0
- package/dist/analysis/performanceSummary.js.map +1 -0
- package/dist/analysis/playerAssessment.d.ts +10 -0
- package/dist/analysis/playerAssessment.d.ts.map +1 -0
- package/dist/analysis/playerAssessment.js +47 -0
- package/dist/analysis/playerAssessment.js.map +1 -0
- package/dist/analysis/ratingTrend.d.ts +5 -0
- package/dist/analysis/ratingTrend.d.ts.map +1 -0
- package/dist/analysis/ratingTrend.js +70 -0
- package/dist/analysis/ratingTrend.js.map +1 -0
- package/dist/analysis/storeHistory.d.ts +6 -0
- package/dist/analysis/storeHistory.d.ts.map +1 -0
- package/dist/analysis/storeHistory.js +74 -0
- package/dist/analysis/storeHistory.js.map +1 -0
- package/dist/bin.js +3 -1
- package/dist/bin.js.map +1 -1
- package/dist/catalogue/Catalogue.d.ts.map +1 -1
- package/dist/catalogue/Catalogue.js.map +1 -1
- package/dist/catalogue/ValorantApi.d.ts.map +1 -1
- package/dist/catalogue/ValorantApi.js +1 -1
- package/dist/catalogue/ValorantApi.js.map +1 -1
- package/dist/cli.d.ts +8 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +192 -19
- package/dist/cli.js.map +1 -1
- package/dist/client/AccountService.d.ts +6 -1
- package/dist/client/AccountService.d.ts.map +1 -1
- package/dist/client/AccountService.js +39 -4
- package/dist/client/AccountService.js.map +1 -1
- package/dist/client/AccountValidator.d.ts.map +1 -1
- package/dist/client/AccountValidator.js +9 -3
- package/dist/client/AccountValidator.js.map +1 -1
- package/dist/client/ChatValidator.d.ts.map +1 -1
- package/dist/client/ChatValidator.js +2 -4
- package/dist/client/ChatValidator.js.map +1 -1
- package/dist/client/ClientContext.d.ts +1 -0
- package/dist/client/ClientContext.d.ts.map +1 -1
- package/dist/client/ClientContext.js.map +1 -1
- package/dist/client/LiveMatchService.d.ts +1 -1
- package/dist/client/LiveMatchService.d.ts.map +1 -1
- package/dist/client/LiveMatchService.js +30 -20
- package/dist/client/LiveMatchService.js.map +1 -1
- package/dist/client/LoadoutValidator.d.ts.map +1 -1
- package/dist/client/LoadoutValidator.js +1 -3
- package/dist/client/LoadoutValidator.js.map +1 -1
- package/dist/client/MatchService.d.ts +17 -1
- package/dist/client/MatchService.d.ts.map +1 -1
- package/dist/client/MatchService.js +123 -2
- package/dist/client/MatchService.js.map +1 -1
- package/dist/client/MatchValidator.d.ts.map +1 -1
- package/dist/client/MatchValidator.js.map +1 -1
- package/dist/client/PartyService.d.ts.map +1 -1
- package/dist/client/PartyService.js +3 -1
- package/dist/client/PartyService.js.map +1 -1
- package/dist/client/PartyValidator.d.ts.map +1 -1
- package/dist/client/PartyValidator.js +1 -2
- package/dist/client/PartyValidator.js.map +1 -1
- package/dist/client/SocialService.d.ts.map +1 -1
- package/dist/client/SocialService.js +4 -5
- package/dist/client/SocialService.js.map +1 -1
- package/dist/client/StoreService.d.ts +5 -1
- package/dist/client/StoreService.d.ts.map +1 -1
- package/dist/client/StoreService.js +36 -2
- package/dist/client/StoreService.js.map +1 -1
- package/dist/client/StoreValidator.d.ts.map +1 -1
- package/dist/client/StoreValidator.js +4 -2
- package/dist/client/StoreValidator.js.map +1 -1
- package/dist/client/api.d.ts +25 -1
- package/dist/client/api.d.ts.map +1 -1
- package/dist/collection/CustomGameConfigsBuilder.d.ts.map +1 -1
- package/dist/collection/CustomGameConfigsBuilder.js.map +1 -1
- package/dist/collection/LiveMatchBuilder.d.ts +2 -2
- package/dist/collection/LiveMatchBuilder.d.ts.map +1 -1
- package/dist/collection/LiveMatchBuilder.js +10 -8
- package/dist/collection/LiveMatchBuilder.js.map +1 -1
- package/dist/collection/LoadoutBuilder.d.ts.map +1 -1
- package/dist/collection/LoadoutBuilder.js +1 -1
- package/dist/collection/LoadoutBuilder.js.map +1 -1
- package/dist/collection/LoadoutWriter.d.ts.map +1 -1
- package/dist/collection/LoadoutWriter.js +0 -1
- package/dist/collection/LoadoutWriter.js.map +1 -1
- package/dist/collection/MmrBuilder.d.ts +1 -1
- package/dist/collection/MmrBuilder.d.ts.map +1 -1
- package/dist/collection/MmrBuilder.js +5 -2
- package/dist/collection/MmrBuilder.js.map +1 -1
- package/dist/collection/PlayerSettingsBuilder.d.ts.map +1 -1
- package/dist/collection/PlayerSettingsBuilder.js +1 -3
- package/dist/collection/PlayerSettingsBuilder.js.map +1 -1
- package/dist/collection/RankFit.d.ts +11 -0
- package/dist/collection/RankFit.d.ts.map +1 -0
- package/dist/collection/RankFit.js +56 -0
- package/dist/collection/RankFit.js.map +1 -0
- package/dist/index.d.ts +11 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -1
- package/dist/index.js.map +1 -1
- package/dist/local/ChatApi.d.ts.map +1 -1
- package/dist/local/ChatApi.js +3 -1
- package/dist/local/ChatApi.js.map +1 -1
- package/dist/model/index.d.ts +163 -0
- package/dist/model/index.d.ts.map +1 -1
- package/dist/riot/ResponseCache.d.ts.map +1 -1
- package/dist/riot/ResponseCache.js +1 -3
- package/dist/riot/ResponseCache.js.map +1 -1
- package/dist/riot/RiotApi.d.ts.map +1 -1
- package/dist/riot/RiotApi.js.map +1 -1
- package/dist/riot/types.d.ts.map +1 -1
- package/dist/serve/index.d.ts +7 -0
- package/dist/serve/index.d.ts.map +1 -0
- package/dist/serve/index.js +6 -0
- package/dist/serve/index.js.map +1 -0
- package/dist/serve/indexHtml.d.ts +2 -0
- package/dist/serve/indexHtml.d.ts.map +1 -0
- package/dist/serve/indexHtml.js +36 -0
- package/dist/serve/indexHtml.js.map +1 -0
- package/dist/serve/openapi.d.ts +2 -0
- package/dist/serve/openapi.d.ts.map +1 -0
- package/dist/serve/openapi.js +114 -0
- package/dist/serve/openapi.js.map +1 -0
- package/dist/serve/routes.d.ts +7 -0
- package/dist/serve/routes.d.ts.map +1 -0
- package/dist/serve/routes.js +1207 -0
- package/dist/serve/routes.js.map +1 -0
- package/dist/serve/server.d.ts +6 -0
- package/dist/serve/server.d.ts.map +1 -0
- package/dist/serve/server.js +149 -0
- package/dist/serve/server.js.map +1 -0
- package/dist/serve/sse.d.ts +4 -0
- package/dist/serve/sse.d.ts.map +1 -0
- package/dist/serve/sse.js +89 -0
- package/dist/serve/sse.js.map +1 -0
- package/dist/serve/types.d.ts +24 -0
- package/dist/serve/types.d.ts.map +1 -0
- package/dist/serve/types.js +2 -0
- package/dist/serve/types.js.map +1 -0
- package/dist/watch/AsyncQueue.d.ts +13 -0
- package/dist/watch/AsyncQueue.d.ts.map +1 -0
- package/dist/watch/AsyncQueue.js +50 -0
- package/dist/watch/AsyncQueue.js.map +1 -0
- package/dist/watch/FriendsWatcher.d.ts +26 -0
- package/dist/watch/FriendsWatcher.d.ts.map +1 -0
- package/dist/watch/FriendsWatcher.js +152 -0
- package/dist/watch/FriendsWatcher.js.map +1 -0
- package/dist/watch/MatchWatcher.d.ts +44 -0
- package/dist/watch/MatchWatcher.d.ts.map +1 -0
- package/dist/watch/MatchWatcher.js +272 -0
- package/dist/watch/MatchWatcher.js.map +1 -0
- package/dist/watch/index.d.ts +20 -0
- package/dist/watch/index.d.ts.map +1 -0
- package/dist/watch/index.js +20 -0
- package/dist/watch/index.js.map +1 -0
- package/dist/watch/types.d.ts +98 -0
- package/dist/watch/types.d.ts.map +1 -0
- package/dist/watch/types.js +2 -0
- package/dist/watch/types.js.map +1 -0
- package/package.json +17 -5
- package/schema/CollectionValue.json +153 -0
- package/schema/LiveMatch.json +8 -1
- package/schema/LoadoutDiff.json +73 -0
- package/schema/MatchSyncResult.json +54 -0
- package/schema/Mmr.json +38 -1
- package/schema/PerformanceSummary.json +284 -0
- package/schema/PlayerAssessment.json +48 -0
- package/schema/RatingTrend.json +107 -0
- package/schema/StoreHistory.json +61 -0
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$ref": "#/definitions/RatingTrend",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"RatingTrend": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"streak": {
|
|
9
|
+
"$ref": "#/definitions/RatingStreak"
|
|
10
|
+
},
|
|
11
|
+
"net": {
|
|
12
|
+
"$ref": "#/definitions/RatingNet"
|
|
13
|
+
},
|
|
14
|
+
"winRate": {
|
|
15
|
+
"type": "number"
|
|
16
|
+
},
|
|
17
|
+
"perGame": {
|
|
18
|
+
"$ref": "#/definitions/RatingAverages"
|
|
19
|
+
},
|
|
20
|
+
"toNextRank": {
|
|
21
|
+
"$ref": "#/definitions/RatingTarget"
|
|
22
|
+
},
|
|
23
|
+
"toDemotion": {
|
|
24
|
+
"$ref": "#/definitions/DemotionTarget"
|
|
25
|
+
},
|
|
26
|
+
"pace": {
|
|
27
|
+
"$ref": "#/definitions/RatingPace"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"required": ["streak", "net", "winRate", "perGame", "toNextRank", "toDemotion", "pace"],
|
|
31
|
+
"additionalProperties": false
|
|
32
|
+
},
|
|
33
|
+
"RatingStreak": {
|
|
34
|
+
"type": "object",
|
|
35
|
+
"properties": {
|
|
36
|
+
"kind": {
|
|
37
|
+
"type": ["string", "null"],
|
|
38
|
+
"enum": ["win", "loss", null]
|
|
39
|
+
},
|
|
40
|
+
"length": {
|
|
41
|
+
"type": "number"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"required": ["kind", "length"],
|
|
45
|
+
"additionalProperties": false
|
|
46
|
+
},
|
|
47
|
+
"RatingNet": {
|
|
48
|
+
"type": "object",
|
|
49
|
+
"properties": {
|
|
50
|
+
"last5": {
|
|
51
|
+
"type": "number"
|
|
52
|
+
},
|
|
53
|
+
"last10": {
|
|
54
|
+
"type": "number"
|
|
55
|
+
},
|
|
56
|
+
"last20": {
|
|
57
|
+
"type": "number"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"required": ["last5", "last10", "last20"],
|
|
61
|
+
"additionalProperties": false
|
|
62
|
+
},
|
|
63
|
+
"RatingAverages": {
|
|
64
|
+
"type": "object",
|
|
65
|
+
"properties": {
|
|
66
|
+
"averageGain": {
|
|
67
|
+
"type": ["number", "null"]
|
|
68
|
+
},
|
|
69
|
+
"averageLoss": {
|
|
70
|
+
"type": ["number", "null"]
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"required": ["averageGain", "averageLoss"],
|
|
74
|
+
"additionalProperties": false
|
|
75
|
+
},
|
|
76
|
+
"RatingTarget": {
|
|
77
|
+
"type": "object",
|
|
78
|
+
"properties": {
|
|
79
|
+
"rating": {
|
|
80
|
+
"type": "number"
|
|
81
|
+
},
|
|
82
|
+
"winsAtCurrentPace": {
|
|
83
|
+
"type": ["number", "null"]
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"required": ["rating", "winsAtCurrentPace"],
|
|
87
|
+
"additionalProperties": false
|
|
88
|
+
},
|
|
89
|
+
"DemotionTarget": {
|
|
90
|
+
"type": "object",
|
|
91
|
+
"properties": {
|
|
92
|
+
"rating": {
|
|
93
|
+
"type": "number"
|
|
94
|
+
},
|
|
95
|
+
"lossesAtCurrentPace": {
|
|
96
|
+
"type": ["number", "null"]
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"required": ["rating", "lossesAtCurrentPace"],
|
|
100
|
+
"additionalProperties": false
|
|
101
|
+
},
|
|
102
|
+
"RatingPace": {
|
|
103
|
+
"type": "string",
|
|
104
|
+
"enum": ["climbing", "holding", "falling"]
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$ref": "#/definitions/StoreHistory",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"StoreHistory": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"days": {
|
|
9
|
+
"type": "array",
|
|
10
|
+
"items": {
|
|
11
|
+
"$ref": "#/definitions/StoreHistoryDay"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"required": ["days"],
|
|
16
|
+
"additionalProperties": false
|
|
17
|
+
},
|
|
18
|
+
"StoreHistoryDay": {
|
|
19
|
+
"type": "object",
|
|
20
|
+
"properties": {
|
|
21
|
+
"day": {
|
|
22
|
+
"type": "string"
|
|
23
|
+
},
|
|
24
|
+
"daily": {
|
|
25
|
+
"type": "array",
|
|
26
|
+
"items": {
|
|
27
|
+
"type": "string"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"nightMarket": {
|
|
31
|
+
"anyOf": [
|
|
32
|
+
{
|
|
33
|
+
"type": "array",
|
|
34
|
+
"items": {
|
|
35
|
+
"type": "string"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"type": "null"
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
"bundles": {
|
|
44
|
+
"anyOf": [
|
|
45
|
+
{
|
|
46
|
+
"type": "array",
|
|
47
|
+
"items": {
|
|
48
|
+
"type": "string"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"type": "null"
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"required": ["day", "daily", "nightMarket", "bundles"],
|
|
58
|
+
"additionalProperties": false
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|