@seayoo-web/gamer-api 4.1.2 → 4.1.4
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
|
@@ -968,7 +968,8 @@ var d = "gamer_token", ue = class {
|
|
|
968
968
|
candidate_id: u.string(),
|
|
969
969
|
is_winner: u.bool(),
|
|
970
970
|
total_votes: u.number(),
|
|
971
|
-
my_votes: u.number()
|
|
971
|
+
my_votes: u.number(),
|
|
972
|
+
cycle_votes: u.number().optional()
|
|
972
973
|
}), Hn = u.object({
|
|
973
974
|
role: u.string(),
|
|
974
975
|
content: u.string()
|
|
@@ -1061,7 +1062,8 @@ var d = "gamer_token", ue = class {
|
|
|
1061
1062
|
rewards_since: u.number(),
|
|
1062
1063
|
rewards_until: u.number(),
|
|
1063
1064
|
winner_rewards: u.array(N).optional(),
|
|
1064
|
-
consolation_rewards: u.array(N).optional()
|
|
1065
|
+
consolation_rewards: u.array(N).optional(),
|
|
1066
|
+
max_votes_per_user_per_candidate_per_cycle: u.number().optional()
|
|
1065
1067
|
})
|
|
1066
1068
|
}), tr = T.ZeroChatgpt, nr = u.object({
|
|
1067
1069
|
...P.shape,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seayoo-web/gamer-api",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.4",
|
|
4
4
|
"description": "agent for gamer api",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "web@seayoo.com",
|
|
@@ -27,16 +27,16 @@
|
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/node": "^22.13.1",
|
|
30
|
-
"@seayoo-web/scripts": "4.3.3",
|
|
31
30
|
"@seayoo-web/request": "4.1.0",
|
|
32
31
|
"@seayoo-web/combo-webview": "2.9.7",
|
|
32
|
+
"@seayoo-web/scripts": "4.3.6",
|
|
33
|
+
"@seayoo-web/utils": "4.4.1",
|
|
33
34
|
"@seayoo-web/tsconfig": "1.0.6",
|
|
34
|
-
"@seayoo-web/validator": "2.3.0"
|
|
35
|
-
"@seayoo-web/utils": "4.4.1"
|
|
35
|
+
"@seayoo-web/validator": "2.3.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@seayoo-web/utils": "^4.4.1",
|
|
39
38
|
"@seayoo-web/combo-webview": "^2.9.7",
|
|
39
|
+
"@seayoo-web/utils": "^4.4.1",
|
|
40
40
|
"@seayoo-web/validator": "^2.3.0"
|
|
41
41
|
},
|
|
42
42
|
"engines": {
|
|
@@ -32,6 +32,8 @@ export interface FeatureVote2Config {
|
|
|
32
32
|
winner_rewards?: EventRewardItemConfig[];
|
|
33
33
|
/** 安慰奖 */
|
|
34
34
|
consolation_rewards?: EventRewardItemConfig[];
|
|
35
|
+
/** 同一用户在一个周期内对同一候选作品可投出的最大票数 0 表示不限制 */
|
|
36
|
+
max_votes_per_user_per_candidate_per_cycle?: number;
|
|
35
37
|
}
|
|
36
38
|
export type EventFeatureConfigOfVote2 = EventFeatureBaseConfig & {
|
|
37
39
|
feature_type: typeof featureType;
|
|
@@ -7,7 +7,7 @@ export interface Vote2EngagementData {
|
|
|
7
7
|
total_votes?: number;
|
|
8
8
|
/** 用户向候选者投入的总票数,当调用 engage api 时有效 */
|
|
9
9
|
my_votes?: number;
|
|
10
|
-
/**
|
|
10
|
+
/** 用户在当前周期内此选项的累计投票数,当调用 engage api 时有效 */
|
|
11
11
|
cycle_votes?: number;
|
|
12
12
|
/** 用户当次向投出的票数,当调用 getUserEngagements api 时有效 */
|
|
13
13
|
votes?: number;
|
|
@@ -36,6 +36,8 @@ export interface CandidateVote {
|
|
|
36
36
|
total_votes: number;
|
|
37
37
|
/** 用户向候选者投入的总票数 */
|
|
38
38
|
my_votes: number;
|
|
39
|
+
/** 用户在当前周期内当前选项的总投入的票数 */
|
|
40
|
+
cycle_votes?: number;
|
|
39
41
|
}
|
|
40
42
|
export declare const CandidateVoteValidator: import("@seayoo-web/validator").ObjectValidator<CandidateVote, false, false>;
|
|
41
43
|
export type Vote2EngagementError = "vote_not_started" | "vote_already_ended" | "vote_candidate_not_found" | "consume_item_not_enough";
|