@seayoo-web/gamer-api 4.6.1 → 4.6.3
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/dist/index.js +6 -6
- package/package.json +6 -6
- package/types/src/ggd.d.ts +4 -4
package/dist/index.js
CHANGED
|
@@ -1500,13 +1500,13 @@ var yi = {
|
|
|
1500
1500
|
if (!this.req) throw Error("初始化错误,没有找到请求工具");
|
|
1501
1501
|
let { data: e, code: t, message: n } = await this.req.get("ggd/describe-role", null, d({
|
|
1502
1502
|
combo_id: f.string(),
|
|
1503
|
-
showid: f.number(),
|
|
1503
|
+
showid: f.number().optional(),
|
|
1504
1504
|
role_id: f.number(),
|
|
1505
1505
|
role_name: f.string(),
|
|
1506
|
-
role_level: f.number(),
|
|
1506
|
+
role_level: f.number().optional(),
|
|
1507
1507
|
avatar_url: f.string().optional(),
|
|
1508
|
-
behavior_score: f.number(),
|
|
1509
|
-
lead_goose_level: f.number(),
|
|
1508
|
+
behavior_score: f.number().optional(),
|
|
1509
|
+
lead_goose_level: f.number().optional(),
|
|
1510
1510
|
create_time: f.number()
|
|
1511
1511
|
}));
|
|
1512
1512
|
return e || {
|
|
@@ -1516,7 +1516,7 @@ var yi = {
|
|
|
1516
1516
|
}
|
|
1517
1517
|
async describeRoleMatchStats(e) {
|
|
1518
1518
|
if (!this.req) throw Error("初始化错误,没有找到请求工具");
|
|
1519
|
-
let { data: t, code: n, message: r } = await this.req.
|
|
1519
|
+
let { data: t, code: n, message: r } = await this.req.get("ggd/describe-role-match-stats", { role_id: e }, d({
|
|
1520
1520
|
inference_level: f.string().optional(),
|
|
1521
1521
|
recent_classic_survival_round: f.number().optional(),
|
|
1522
1522
|
recent_goose_vote_correct_rate: f.string().optional(),
|
|
@@ -1542,7 +1542,7 @@ var yi = {
|
|
|
1542
1542
|
}
|
|
1543
1543
|
async listRoleMatches(e) {
|
|
1544
1544
|
if (!this.req) throw Error("初始化错误,没有找到请求工具");
|
|
1545
|
-
let { data: t, code: n, message: r } = await this.req.
|
|
1545
|
+
let { data: t, code: n, message: r } = await this.req.get("ggd/list-role-matches", { role_id: e }, d({ matches: f.array(f.object({
|
|
1546
1546
|
players_num: f.number(),
|
|
1547
1547
|
end_time: f.number(),
|
|
1548
1548
|
map_name: f.string(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seayoo-web/gamer-api",
|
|
3
|
-
"version": "4.6.
|
|
3
|
+
"version": "4.6.3",
|
|
4
4
|
"description": "agent for gamer api",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "web@seayoo.com",
|
|
@@ -30,16 +30,16 @@
|
|
|
30
30
|
"@vitest/coverage-istanbul": "^4.1.4",
|
|
31
31
|
"happy-dom": "^13.10.1",
|
|
32
32
|
"vitest": "^4.1.4",
|
|
33
|
-
"@seayoo-web/
|
|
34
|
-
"@seayoo-web/scripts": "4.3.11",
|
|
35
|
-
"@seayoo-web/tsconfig": "1.0.7",
|
|
33
|
+
"@seayoo-web/request": "4.1.3",
|
|
36
34
|
"@seayoo-web/utils": "4.5.6",
|
|
35
|
+
"@seayoo-web/tsconfig": "1.0.7",
|
|
37
36
|
"@seayoo-web/validator": "2.3.1",
|
|
38
|
-
"@seayoo-web/
|
|
37
|
+
"@seayoo-web/combo-webview": "2.9.8",
|
|
38
|
+
"@seayoo-web/scripts": "4.3.11"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@seayoo-web/combo-webview": "^2.9.8",
|
|
42
41
|
"@seayoo-web/utils": "^4.5.6",
|
|
42
|
+
"@seayoo-web/combo-webview": "^2.9.8",
|
|
43
43
|
"@seayoo-web/validator": "^2.3.1"
|
|
44
44
|
},
|
|
45
45
|
"engines": {
|
package/types/src/ggd.d.ts
CHANGED
|
@@ -45,13 +45,13 @@ export declare class GGDPublicApi {
|
|
|
45
45
|
*/
|
|
46
46
|
describeRole(): Promise<{
|
|
47
47
|
combo_id: string;
|
|
48
|
-
showid: number;
|
|
48
|
+
showid: number | undefined;
|
|
49
49
|
role_id: number;
|
|
50
50
|
role_name: string;
|
|
51
|
-
role_level: number;
|
|
51
|
+
role_level: number | undefined;
|
|
52
52
|
avatar_url: string | undefined;
|
|
53
|
-
behavior_score: number;
|
|
54
|
-
lead_goose_level: number;
|
|
53
|
+
behavior_score: number | undefined;
|
|
54
|
+
lead_goose_level: number | undefined;
|
|
55
55
|
create_time: number;
|
|
56
56
|
} | {
|
|
57
57
|
error: "role_not_found" | RequestInternalError;
|