@seayoo-web/gamer-api 2.10.1 → 2.10.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
CHANGED
|
@@ -1052,9 +1052,7 @@ const v = {
|
|
|
1052
1052
|
images: e.array(e.string()).optional(),
|
|
1053
1053
|
videos: e.array(e.string()).optional(),
|
|
1054
1054
|
description: e.string().optional(),
|
|
1055
|
-
jump_url: e.string()
|
|
1056
|
-
base_votes: e.number(),
|
|
1057
|
-
votes_multiplier: e.number()
|
|
1055
|
+
jump_url: e.string()
|
|
1058
1056
|
}), mn = e.object({
|
|
1059
1057
|
...m.shape,
|
|
1060
1058
|
feature_type: e.string().enum(cn),
|
|
@@ -1065,8 +1063,6 @@ const v = {
|
|
|
1065
1063
|
vote_until: e.number(),
|
|
1066
1064
|
rewards_since: e.number(),
|
|
1067
1065
|
rewards_until: e.number(),
|
|
1068
|
-
winner_strategy: e.string().enum("votes", "manual"),
|
|
1069
|
-
total_winners: e.number(),
|
|
1070
1066
|
winner_rewards: e.array(M).optional(),
|
|
1071
1067
|
consolation_rewards: e.array(M).optional()
|
|
1072
1068
|
})
|
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.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "index.ts",
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^22.13.1",
|
|
33
33
|
"@seayoo-web/combo-webview": "2.7.0",
|
|
34
|
-
"@seayoo-web/request": "3.4.0",
|
|
35
34
|
"@seayoo-web/scripts": "3.1.3",
|
|
36
|
-
"@seayoo-web/utils": "4.1.3",
|
|
37
35
|
"@seayoo-web/tsconfig": "1.0.5",
|
|
38
|
-
"@seayoo-web/
|
|
36
|
+
"@seayoo-web/utils": "4.1.3",
|
|
37
|
+
"@seayoo-web/validator": "1.1.0",
|
|
38
|
+
"@seayoo-web/request": "3.4.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@seayoo-web/combo-webview": "^2.7.0",
|
|
@@ -14,10 +14,6 @@ export interface FeatureVoteCandidate {
|
|
|
14
14
|
description?: string;
|
|
15
15
|
/** 跳转地址 */
|
|
16
16
|
jump_url: string;
|
|
17
|
-
/** 用于修正得票数的基数。默认为 `0` */
|
|
18
|
-
base_votes: number;
|
|
19
|
-
/** 用于修正得票数的系数,不小于 `1.0`,默认为 `1.0` */
|
|
20
|
-
votes_multiplier: number;
|
|
21
17
|
}
|
|
22
18
|
export interface FeatureVote2Config {
|
|
23
19
|
/** 投票行为消耗活动道具 ID。可选,如果为 0 则同样表示不需要消耗道具 */
|
|
@@ -32,10 +28,6 @@ export interface FeatureVote2Config {
|
|
|
32
28
|
rewards_since: number;
|
|
33
29
|
/** 可领奖结束时间,秒时间戳 */
|
|
34
30
|
rewards_until: number;
|
|
35
|
-
/** 胜出策略,votes 得票数 manual 手动指定 */
|
|
36
|
-
winner_strategy: "votes" | "manual";
|
|
37
|
-
/** 获胜选项数量 */
|
|
38
|
-
total_winners: number;
|
|
39
31
|
/** 获胜奖励 */
|
|
40
32
|
winner_rewards?: CommonRewardItem[];
|
|
41
33
|
/** 安慰奖 */
|