@seayoo-web/gamer-api 2.13.1 → 2.13.2
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 +23 -23
- package/package.json +6 -6
- package/types/src/event.config/feature.d.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -1059,7 +1059,13 @@ const v = {
|
|
|
1059
1059
|
allowed_social_medias: e.array(e.string()).optional(),
|
|
1060
1060
|
acceptance_rewards: e.array(y).optional()
|
|
1061
1061
|
})
|
|
1062
|
-
}), dn = l.
|
|
1062
|
+
}), dn = l.Ugc, gn = e.object({
|
|
1063
|
+
...u.shape,
|
|
1064
|
+
feature_type: e.string().enum(dn),
|
|
1065
|
+
config: e.object({
|
|
1066
|
+
ugc_feature_id: e.number()
|
|
1067
|
+
})
|
|
1068
|
+
}), pn = l.Vote, _n = e.object({
|
|
1063
1069
|
sn: e.string(),
|
|
1064
1070
|
name: e.string(),
|
|
1065
1071
|
img_urls: e.array(e.string()).optional(),
|
|
@@ -1069,30 +1075,30 @@ const v = {
|
|
|
1069
1075
|
amount: e.number(),
|
|
1070
1076
|
finalists: e.bool(),
|
|
1071
1077
|
last_vote_time: e.number()
|
|
1072
|
-
}),
|
|
1078
|
+
}), bn = e.object({
|
|
1073
1079
|
...u.shape,
|
|
1074
|
-
feature_type: e.string().enum(
|
|
1080
|
+
feature_type: e.string().enum(pn),
|
|
1075
1081
|
config: e.object({
|
|
1076
1082
|
vote_feature_ids: e.array(e.number()),
|
|
1077
1083
|
submission_feature_ids: e.array(e.number()),
|
|
1078
1084
|
finalists_amount: e.number(),
|
|
1079
1085
|
source: it,
|
|
1080
|
-
options: e.array(
|
|
1086
|
+
options: e.array(_n),
|
|
1081
1087
|
rewards: e.array(y)
|
|
1082
1088
|
})
|
|
1083
|
-
}),
|
|
1089
|
+
}), yn = l.Vote2, hn = e.object({
|
|
1084
1090
|
candidate_id: e.string(),
|
|
1085
1091
|
display_name: e.string(),
|
|
1086
1092
|
images: e.array(e.string()).optional(),
|
|
1087
1093
|
videos: e.array(e.string()).optional(),
|
|
1088
1094
|
description: e.string().optional(),
|
|
1089
1095
|
jump_url: e.string()
|
|
1090
|
-
}),
|
|
1096
|
+
}), fn = e.object({
|
|
1091
1097
|
...u.shape,
|
|
1092
|
-
feature_type: e.string().enum(
|
|
1098
|
+
feature_type: e.string().enum(yn),
|
|
1093
1099
|
config: e.object({
|
|
1094
1100
|
vote_item_id: e.number().optional(),
|
|
1095
|
-
candidates: e.array(
|
|
1101
|
+
candidates: e.array(hn),
|
|
1096
1102
|
vote_since: e.number(),
|
|
1097
1103
|
vote_until: e.number(),
|
|
1098
1104
|
rewards_since: e.number(),
|
|
@@ -1100,15 +1106,9 @@ const v = {
|
|
|
1100
1106
|
winner_rewards: e.array(y).optional(),
|
|
1101
1107
|
consolation_rewards: e.array(y).optional()
|
|
1102
1108
|
})
|
|
1103
|
-
}),
|
|
1109
|
+
}), wn = l.ZeroChatgpt, kn = e.object({
|
|
1104
1110
|
...u.shape,
|
|
1105
|
-
feature_type: e.string().enum(
|
|
1106
|
-
}), wn = l.Ugc, kn = e.object({
|
|
1107
|
-
...u.shape,
|
|
1108
|
-
feature_type: e.string().enum(wn),
|
|
1109
|
-
config: e.object({
|
|
1110
|
-
ugc_feature_id: e.number()
|
|
1111
|
-
})
|
|
1111
|
+
feature_type: e.string().enum(wn)
|
|
1112
1112
|
}), vn = e.union(
|
|
1113
1113
|
Rt,
|
|
1114
1114
|
Tt,
|
|
@@ -1127,12 +1127,12 @@ const v = {
|
|
|
1127
1127
|
an,
|
|
1128
1128
|
sn,
|
|
1129
1129
|
ln,
|
|
1130
|
-
|
|
1131
|
-
yn,
|
|
1132
|
-
xt,
|
|
1130
|
+
bn,
|
|
1133
1131
|
fn,
|
|
1132
|
+
xt,
|
|
1133
|
+
kn,
|
|
1134
1134
|
mn,
|
|
1135
|
-
|
|
1135
|
+
gn
|
|
1136
1136
|
).key("feature_type").satisfies(), Vn = e.object({
|
|
1137
1137
|
event_name: e.string(),
|
|
1138
1138
|
rules: e.string(),
|
|
@@ -2634,10 +2634,10 @@ export {
|
|
|
2634
2634
|
an as EventFeatureConfigOfSubscribeValidator,
|
|
2635
2635
|
sn as EventFeatureConfigOfSurveyValidator,
|
|
2636
2636
|
ln as EventFeatureConfigOfTeamValidator,
|
|
2637
|
-
|
|
2637
|
+
gn as EventFeatureConfigOfUgcLikeValidator,
|
|
2638
2638
|
mn as EventFeatureConfigOfUgcValidator,
|
|
2639
|
-
|
|
2640
|
-
|
|
2639
|
+
fn as EventFeatureConfigOfVote2Validator,
|
|
2640
|
+
bn as EventFeatureConfigOfVoteValidator,
|
|
2641
2641
|
vn as EventFeatureConfigValidator,
|
|
2642
2642
|
tt as EventPeriodType,
|
|
2643
2643
|
nt as EventPeriodTypeValidator,
|
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.13.
|
|
4
|
+
"version": "2.13.2",
|
|
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.8.0",
|
|
34
|
-
"@seayoo-web/tsconfig": "1.0.5",
|
|
35
34
|
"@seayoo-web/request": "3.4.0",
|
|
36
35
|
"@seayoo-web/scripts": "3.1.5",
|
|
37
|
-
"@seayoo-web/
|
|
38
|
-
"@seayoo-web/utils": "4.1.3"
|
|
36
|
+
"@seayoo-web/tsconfig": "1.0.5",
|
|
37
|
+
"@seayoo-web/utils": "4.1.3",
|
|
38
|
+
"@seayoo-web/validator": "1.1.1"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@seayoo-web/
|
|
41
|
+
"@seayoo-web/utils": "^4.1.3",
|
|
42
42
|
"@seayoo-web/validator": "^1.1.1",
|
|
43
|
-
"@seayoo-web/
|
|
43
|
+
"@seayoo-web/combo-webview": "^2.8.0"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"prebuild": "pnpm -F validator build && pnpm -F request build && pnpm -F combo-webview build",
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { EventFeatureConfigOfUgcLike } from "../event";
|
|
2
1
|
import type { EventFeatureConfigOfCashback } from "./feature.cashback";
|
|
3
2
|
import type { EventFeatureConfigOfCheckIn } from "./feature.checkIn";
|
|
4
3
|
import type { EventFeatureConfigOfClaimActivationKey } from "./feature.claimActivationKey";
|
|
@@ -18,6 +17,7 @@ import type { EventFeatureConfigOfSubscribe } from "./feature.subscribe";
|
|
|
18
17
|
import type { EventFeatureConfigOfSurvey } from "./feature.survey";
|
|
19
18
|
import type { EventFeatureConfigOfTeam } from "./feature.team";
|
|
20
19
|
import type { EventFeatureConfigOfUgc } from "./feature.ugc";
|
|
20
|
+
import type { EventFeatureConfigOfUgcLike } from "./feature.ugcLike";
|
|
21
21
|
import type { EventFeatureConfigOfVote } from "./feature.vote";
|
|
22
22
|
import type { EventFeatureConfigOfVote2 } from "./feature.vote2";
|
|
23
23
|
import type { EventFeatureConfigOfZeroChatgpt } from "./feature.zeroChatgpt";
|