@seayoo-web/gamer-api 2.10.10 → 2.10.11
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
CHANGED
|
@@ -1692,7 +1692,7 @@ class Yr {
|
|
|
1692
1692
|
if (!await this.token.autoLogin()) return null;
|
|
1693
1693
|
const { data: r, code: a, message: o } = await this.req.post(
|
|
1694
1694
|
"event/vote2/rewards",
|
|
1695
|
-
{ feature_id: t },
|
|
1695
|
+
{ feature_id: t, event_id: this.event },
|
|
1696
1696
|
ir,
|
|
1697
1697
|
n
|
|
1698
1698
|
);
|
|
@@ -1710,7 +1710,7 @@ class Yr {
|
|
|
1710
1710
|
if (!await this.token.autoLogin()) return [];
|
|
1711
1711
|
const { data: r } = await this.req.get("event/vote2/leaderboard", sr, {
|
|
1712
1712
|
...n,
|
|
1713
|
-
params: { feature_id: t }
|
|
1713
|
+
params: { feature_id: t, event_id: this.event }
|
|
1714
1714
|
});
|
|
1715
1715
|
return r?.candidate_votes || [];
|
|
1716
1716
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seayoo-web/gamer-api",
|
|
3
3
|
"description": "agent for gamer api",
|
|
4
|
-
"version": "2.10.
|
|
4
|
+
"version": "2.10.11",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "index.ts",
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -30,17 +30,17 @@
|
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^22.13.1",
|
|
33
|
-
"@seayoo-web/request": "3.4.0",
|
|
34
33
|
"@seayoo-web/combo-webview": "2.7.0",
|
|
35
|
-
"@seayoo-web/
|
|
34
|
+
"@seayoo-web/request": "3.4.0",
|
|
36
35
|
"@seayoo-web/tsconfig": "1.0.5",
|
|
36
|
+
"@seayoo-web/scripts": "3.1.3",
|
|
37
37
|
"@seayoo-web/utils": "4.1.3",
|
|
38
38
|
"@seayoo-web/validator": "1.1.1"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@seayoo-web/combo-webview": "^2.7.0",
|
|
42
41
|
"@seayoo-web/utils": "^4.1.3",
|
|
43
|
-
"@seayoo-web/validator": "^1.1.1"
|
|
42
|
+
"@seayoo-web/validator": "^1.1.1",
|
|
43
|
+
"@seayoo-web/combo-webview": "^2.7.0"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"prebuild": "pnpm -F validator build && pnpm -F request build && pnpm -F combo-webview build",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type InferType } from "@seayoo-web/validator";
|
|
2
2
|
import { type EventFeatureBaseConfig } from "./feature.base";
|
|
3
|
-
declare const rewardItemTypeValidator: import("@seayoo-web/validator").StringValidator<"
|
|
3
|
+
declare const rewardItemTypeValidator: import("@seayoo-web/validator").StringValidator<"event_item" | "game_item" | "physical_item" | "weixin_hongbao" | "activation_key" | "credit" | "external_gift_code" | "void_item", false, false>;
|
|
4
4
|
declare const featureType: "lottery";
|
|
5
5
|
export interface FeatureLotteryItemConfig {
|
|
6
6
|
/** 抽奖奖励道具 id */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type InferType } from "@seayoo-web/validator";
|
|
2
|
-
declare const rewardItemTypeValidator: import("@seayoo-web/validator").StringValidator<"
|
|
2
|
+
declare const rewardItemTypeValidator: import("@seayoo-web/validator").StringValidator<"event_item" | "game_item" | "physical_item" | "weixin_hongbao" | "gift_code" | "activation_key" | "lottery_ticket" | "credit" | "external_gift_code" | "void_item", false, false>;
|
|
3
3
|
export interface EventRewardItemConfig {
|
|
4
4
|
/** 玩法奖励道具 id */
|
|
5
5
|
reward_item_id: number;
|