@seayoo-web/gamer-api 2.10.12 → 2.10.13
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
|
@@ -1204,7 +1204,8 @@ const v = {
|
|
|
1204
1204
|
candidate_id: e.string(),
|
|
1205
1205
|
is_winner: e.bool(),
|
|
1206
1206
|
total_votes: e.number(),
|
|
1207
|
-
my_votes: e.number()
|
|
1207
|
+
my_votes: e.number(),
|
|
1208
|
+
last_voted_ts: e.number()
|
|
1208
1209
|
}), $n = e.object({
|
|
1209
1210
|
role: e.string(),
|
|
1210
1211
|
content: e.string()
|
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.13",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "index.ts",
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -31,16 +31,16 @@
|
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^22.13.1",
|
|
33
33
|
"@seayoo-web/combo-webview": "2.7.0",
|
|
34
|
-
"@seayoo-web/scripts": "3.1.4",
|
|
35
|
-
"@seayoo-web/tsconfig": "1.0.5",
|
|
36
34
|
"@seayoo-web/request": "3.4.0",
|
|
35
|
+
"@seayoo-web/scripts": "3.1.5",
|
|
37
36
|
"@seayoo-web/utils": "4.1.3",
|
|
37
|
+
"@seayoo-web/tsconfig": "1.0.5",
|
|
38
38
|
"@seayoo-web/validator": "1.1.1"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@seayoo-web/combo-webview": "^2.7.0",
|
|
42
|
-
"@seayoo-web/
|
|
43
|
-
"@seayoo-web/
|
|
42
|
+
"@seayoo-web/validator": "^1.1.1",
|
|
43
|
+
"@seayoo-web/utils": "^4.1.3"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"prebuild": "pnpm -F validator build && pnpm -F request build && pnpm -F combo-webview build",
|
|
@@ -34,6 +34,8 @@ export interface CandidateVote {
|
|
|
34
34
|
total_votes: number;
|
|
35
35
|
/** 用户向候选者投入的总票数 */
|
|
36
36
|
my_votes: number;
|
|
37
|
+
/**候选者最后一次被投票的时间,单位:秒 */
|
|
38
|
+
last_voted_ts: number;
|
|
37
39
|
}
|
|
38
40
|
export declare const CandidateVoteValidator: import("@seayoo-web/validator").ObjectValidator<CandidateVote, false, false>;
|
|
39
41
|
export type Vote2EngagementError = "vote_not_started" | "vote_already_ended" | "vote_candidate_not_found" | "consume_item_not_enough";
|