@seayoo-web/gamer-api 2.10.4 → 2.10.5
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 +163 -163
- package/package.json +5 -5
- package/types/src/event.config/feature.vote2.d.ts +3 -3
package/dist/index.js
CHANGED
|
@@ -865,7 +865,7 @@ const v = {
|
|
|
865
865
|
}).lock(), yt = e.object({
|
|
866
866
|
engage_count: e.number(),
|
|
867
867
|
rewards: e.array(F)
|
|
868
|
-
}).lock(),
|
|
868
|
+
}).lock(), ft = e.union(
|
|
869
869
|
e.object({
|
|
870
870
|
feature_reward_type: e.string().enum("every"),
|
|
871
871
|
reward_details: e.array(F)
|
|
@@ -884,36 +884,36 @@ const v = {
|
|
|
884
884
|
since: e.number(),
|
|
885
885
|
until: e.number(),
|
|
886
886
|
engage_account: We,
|
|
887
|
-
feature_rewards:
|
|
887
|
+
feature_rewards: ft.clone().optional(),
|
|
888
888
|
sort: e.number().optional()
|
|
889
|
-
}),
|
|
889
|
+
}), ht = l.Cashback, wt = e.object({
|
|
890
890
|
...u.shape,
|
|
891
|
-
feature_type: e.string().enum(
|
|
891
|
+
feature_type: e.string().enum(ht),
|
|
892
892
|
config: e.object({
|
|
893
893
|
order_start_time: e.number(),
|
|
894
894
|
order_end_time: e.number(),
|
|
895
895
|
claim_rewards_start_time: e.number(),
|
|
896
896
|
claim_rewards_end_time: e.number()
|
|
897
897
|
})
|
|
898
|
-
}),
|
|
898
|
+
}), kt = l.CheckIn, vt = e.object({
|
|
899
899
|
...u.shape,
|
|
900
|
-
feature_type: e.string().enum(
|
|
901
|
-
}),
|
|
900
|
+
feature_type: e.string().enum(kt)
|
|
901
|
+
}), Vt = l.ClaimActivationKey, Ct = e.object({
|
|
902
902
|
...u.shape,
|
|
903
|
-
feature_type: e.string().enum(
|
|
904
|
-
}),
|
|
903
|
+
feature_type: e.string().enum(Vt)
|
|
904
|
+
}), Rt = l.ClaimRewards, jt = e.object({
|
|
905
905
|
...u.shape,
|
|
906
|
-
feature_type: e.string().enum(
|
|
907
|
-
}),
|
|
906
|
+
feature_type: e.string().enum(Rt)
|
|
907
|
+
}), Tt = l.Comment, qt = e.object({
|
|
908
908
|
...u.shape,
|
|
909
|
-
feature_type: e.string().enum(
|
|
909
|
+
feature_type: e.string().enum(Tt),
|
|
910
910
|
config: e.object({
|
|
911
911
|
comments: e.array(e.string()),
|
|
912
912
|
send_rate: e.number()
|
|
913
913
|
})
|
|
914
|
-
}),
|
|
914
|
+
}), xt = l.Follow, St = e.object({
|
|
915
915
|
...u.shape,
|
|
916
|
-
feature_type: e.string().enum(
|
|
916
|
+
feature_type: e.string().enum(xt),
|
|
917
917
|
config: e.object({
|
|
918
918
|
platform: e.string(),
|
|
919
919
|
platform_icon: e.string().optional(),
|
|
@@ -921,60 +921,60 @@ const v = {
|
|
|
921
921
|
qr_code_url: e.string().optional(),
|
|
922
922
|
platform_desc: e.string().optional()
|
|
923
923
|
})
|
|
924
|
-
}),
|
|
924
|
+
}), Lt = l.GiftCode, Pt = e.object({
|
|
925
925
|
name: e.string(),
|
|
926
926
|
icon_url: e.string(),
|
|
927
927
|
count: e.number()
|
|
928
|
-
}),
|
|
928
|
+
}), Et = e.object({
|
|
929
929
|
...u.shape,
|
|
930
|
-
feature_type: e.string().enum(
|
|
930
|
+
feature_type: e.string().enum(Lt),
|
|
931
931
|
config: e.object({
|
|
932
|
-
gift_items: e.array(
|
|
932
|
+
gift_items: e.array(Pt),
|
|
933
933
|
mp_url: e.string().optional(),
|
|
934
934
|
mp_qrcode_url: e.string().optional()
|
|
935
935
|
})
|
|
936
|
-
}),
|
|
936
|
+
}), $t = l.Invite, Ft = e.object({
|
|
937
937
|
...u.shape,
|
|
938
|
-
feature_type: e.string().enum(
|
|
938
|
+
feature_type: e.string().enum($t),
|
|
939
939
|
config: e.object({
|
|
940
940
|
share_url: e.string()
|
|
941
941
|
})
|
|
942
|
-
}),
|
|
942
|
+
}), Ut = l.InvitedRegister, Dt = e.object({
|
|
943
943
|
...u.shape,
|
|
944
|
-
feature_type: e.string().enum(
|
|
945
|
-
}),
|
|
944
|
+
feature_type: e.string().enum(Ut)
|
|
945
|
+
}), It = e.string().enum(k(v, "GiftCode", "LotteryTicket")), At = l.Lottery, Gt = e.object({
|
|
946
946
|
reward_item_id: e.number(),
|
|
947
947
|
reward_item_name: e.string(),
|
|
948
|
-
reward_item_type:
|
|
948
|
+
reward_item_type: It,
|
|
949
949
|
reward_item_icon_url: e.string(),
|
|
950
950
|
reward_item_desc: e.string().optional(),
|
|
951
951
|
reward_amount: e.number(),
|
|
952
952
|
reward_remaining_stock: e.number(),
|
|
953
953
|
reward_item_rating: e.number()
|
|
954
|
-
}),
|
|
954
|
+
}), Ot = e.object({
|
|
955
955
|
...u.shape,
|
|
956
|
-
feature_type: e.string().enum(
|
|
956
|
+
feature_type: e.string().enum(At),
|
|
957
957
|
config: e.object({
|
|
958
958
|
consume_item_id: e.number(),
|
|
959
959
|
consume_item_name: e.string(),
|
|
960
960
|
consume_item_icon_url: e.string(),
|
|
961
961
|
consume_item_count: e.array(e.number()),
|
|
962
962
|
consume_item_desc: e.string().optional(),
|
|
963
|
-
rewards: e.array(
|
|
963
|
+
rewards: e.array(Gt)
|
|
964
964
|
})
|
|
965
|
-
}),
|
|
965
|
+
}), Nt = l.LotteryDraw, Qt = e.object({
|
|
966
966
|
...u.shape,
|
|
967
|
-
feature_type: e.string().enum(
|
|
967
|
+
feature_type: e.string().enum(Nt),
|
|
968
968
|
config: e.object({
|
|
969
969
|
draw_not_before: e.number(),
|
|
970
970
|
draw_not_after: e.number()
|
|
971
971
|
})
|
|
972
|
-
}),
|
|
972
|
+
}), Bt = l.Preregister, Mt = e.object({
|
|
973
973
|
...u.shape,
|
|
974
|
-
feature_type: e.string().enum(
|
|
975
|
-
}),
|
|
974
|
+
feature_type: e.string().enum(Bt)
|
|
975
|
+
}), Kt = l.Quest, Ht = e.object({
|
|
976
976
|
...u.shape,
|
|
977
|
-
feature_type: e.string().enum(
|
|
977
|
+
feature_type: e.string().enum(Kt),
|
|
978
978
|
config: e.object({
|
|
979
979
|
objective: te,
|
|
980
980
|
completion_value: e.number(),
|
|
@@ -991,38 +991,38 @@ const v = {
|
|
|
991
991
|
event_item_id: e.number().optional()
|
|
992
992
|
}).optional()
|
|
993
993
|
})
|
|
994
|
-
}),
|
|
994
|
+
}), zt = l.Register, Jt = e.object({
|
|
995
995
|
...u.shape,
|
|
996
|
-
feature_type: e.string().enum(
|
|
997
|
-
}),
|
|
996
|
+
feature_type: e.string().enum(zt)
|
|
997
|
+
}), Zt = l.Share, Xt = e.object({
|
|
998
998
|
...u.shape,
|
|
999
|
-
feature_type: e.string().enum(
|
|
999
|
+
feature_type: e.string().enum(Zt),
|
|
1000
1000
|
config: e.object({
|
|
1001
1001
|
share_platform: e.string(),
|
|
1002
1002
|
jump_url: e.string().optional(),
|
|
1003
1003
|
icon_url: e.string().optional()
|
|
1004
1004
|
})
|
|
1005
|
-
}),
|
|
1005
|
+
}), Yt = l.Subscribe, Wt = e.object({
|
|
1006
1006
|
...u.shape,
|
|
1007
|
-
feature_type: e.string().enum(
|
|
1007
|
+
feature_type: e.string().enum(Yt),
|
|
1008
1008
|
config: e.object({
|
|
1009
1009
|
weixin_template_ids: e.array(e.string())
|
|
1010
1010
|
})
|
|
1011
|
-
}),
|
|
1011
|
+
}), en = l.Survey, tn = e.object({
|
|
1012
1012
|
...u.shape,
|
|
1013
|
-
feature_type: e.string().enum(
|
|
1013
|
+
feature_type: e.string().enum(en),
|
|
1014
1014
|
config: e.object({
|
|
1015
1015
|
survey_id: e.string(),
|
|
1016
1016
|
survey_url: e.string()
|
|
1017
1017
|
})
|
|
1018
|
-
}),
|
|
1018
|
+
}), nn = l.Team, rn = e.object({
|
|
1019
1019
|
...u.shape,
|
|
1020
|
-
feature_type: e.string().enum(
|
|
1020
|
+
feature_type: e.string().enum(nn),
|
|
1021
1021
|
config: e.object({
|
|
1022
1022
|
max_members: e.number().min(1),
|
|
1023
1023
|
min_members: e.number().min(1)
|
|
1024
1024
|
})
|
|
1025
|
-
}),
|
|
1025
|
+
}), an = l.Vote, on = e.object({
|
|
1026
1026
|
sn: e.string(),
|
|
1027
1027
|
name: e.string(),
|
|
1028
1028
|
img_urls: e.array(e.string()).optional(),
|
|
@@ -1032,30 +1032,30 @@ const v = {
|
|
|
1032
1032
|
amount: e.number(),
|
|
1033
1033
|
finalists: e.bool(),
|
|
1034
1034
|
last_vote_time: e.number()
|
|
1035
|
-
}),
|
|
1035
|
+
}), sn = e.object({
|
|
1036
1036
|
...u.shape,
|
|
1037
|
-
feature_type: e.string().enum(
|
|
1037
|
+
feature_type: e.string().enum(an),
|
|
1038
1038
|
config: e.object({
|
|
1039
1039
|
vote_feature_ids: e.array(e.number()),
|
|
1040
1040
|
submission_feature_ids: e.array(e.number()),
|
|
1041
1041
|
finalists_amount: e.number(),
|
|
1042
1042
|
source: ot,
|
|
1043
|
-
options: e.array(
|
|
1043
|
+
options: e.array(on),
|
|
1044
1044
|
rewards: e.array(F)
|
|
1045
1045
|
})
|
|
1046
|
-
}),
|
|
1046
|
+
}), cn = l.Vote2, ln = e.object({
|
|
1047
1047
|
candidate_id: e.string(),
|
|
1048
1048
|
display_name: e.string(),
|
|
1049
1049
|
images: e.array(e.string()).optional(),
|
|
1050
1050
|
videos: e.array(e.string()).optional(),
|
|
1051
1051
|
description: e.string().optional(),
|
|
1052
1052
|
jump_url: e.string()
|
|
1053
|
-
}),
|
|
1053
|
+
}), un = e.object({
|
|
1054
1054
|
...u.shape,
|
|
1055
|
-
feature_type: e.string().enum(
|
|
1055
|
+
feature_type: e.string().enum(cn),
|
|
1056
1056
|
config: e.object({
|
|
1057
1057
|
vote_item_id: e.number().optional(),
|
|
1058
|
-
candidates: e.array(
|
|
1058
|
+
candidates: e.array(ln),
|
|
1059
1059
|
vote_since: e.number(),
|
|
1060
1060
|
vote_until: e.number(),
|
|
1061
1061
|
rewards_since: e.number(),
|
|
@@ -1063,51 +1063,51 @@ const v = {
|
|
|
1063
1063
|
winner_rewards: e.array(P).optional(),
|
|
1064
1064
|
consolation_rewards: e.array(P).optional()
|
|
1065
1065
|
})
|
|
1066
|
-
}),
|
|
1066
|
+
}), mn = l.ZeroChatgpt, dn = e.object({
|
|
1067
1067
|
...u.shape,
|
|
1068
|
-
feature_type: e.string().enum(
|
|
1069
|
-
}),
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
).key("feature_type").satisfies(),
|
|
1068
|
+
feature_type: e.string().enum(mn)
|
|
1069
|
+
}), gn = e.union(
|
|
1070
|
+
wt,
|
|
1071
|
+
vt,
|
|
1072
|
+
jt,
|
|
1073
|
+
qt,
|
|
1074
|
+
St,
|
|
1075
|
+
Et,
|
|
1076
|
+
Ft,
|
|
1077
|
+
Dt,
|
|
1078
|
+
Ot,
|
|
1079
|
+
Qt,
|
|
1080
|
+
Mt,
|
|
1081
|
+
Ht,
|
|
1082
|
+
Jt,
|
|
1083
|
+
Xt,
|
|
1084
|
+
Wt,
|
|
1085
|
+
tn,
|
|
1086
|
+
rn,
|
|
1087
|
+
sn,
|
|
1088
|
+
un,
|
|
1089
|
+
Ct,
|
|
1090
|
+
dn
|
|
1091
|
+
).key("feature_type").satisfies(), pn = e.object({
|
|
1092
1092
|
event_name: e.string(),
|
|
1093
1093
|
rules: e.string(),
|
|
1094
1094
|
since: e.number(),
|
|
1095
1095
|
until: e.number(),
|
|
1096
1096
|
visit_count: e.number().optional(),
|
|
1097
|
-
features: e.array(
|
|
1098
|
-
}).lock(), q = e.union(e.string().pattern("NumberString", /^\d+$/), e.number()),
|
|
1097
|
+
features: e.array(gn)
|
|
1098
|
+
}).lock(), q = e.union(e.string().pattern("NumberString", /^\d+$/), e.number()), _n = e.object({
|
|
1099
1099
|
order_total_amount: q,
|
|
1100
1100
|
cashback_total_amount: q,
|
|
1101
1101
|
game_item_count: q
|
|
1102
|
-
}), _n = e.object({
|
|
1103
|
-
activation_key: e.string().disallow("")
|
|
1104
1102
|
}), bn = e.object({
|
|
1105
|
-
|
|
1103
|
+
activation_key: e.string().disallow("")
|
|
1106
1104
|
}), yn = e.object({
|
|
1105
|
+
gift_code: e.string()
|
|
1106
|
+
}), fn = e.object({
|
|
1107
1107
|
user_id: e.string(),
|
|
1108
1108
|
name: e.string().optional(),
|
|
1109
1109
|
avatar_url: e.string().optional()
|
|
1110
|
-
}),
|
|
1110
|
+
}), hn = e.object({
|
|
1111
1111
|
lottery_count: e.number()
|
|
1112
1112
|
}), V = e.object({
|
|
1113
1113
|
reward_id: e.number(),
|
|
@@ -1127,26 +1127,26 @@ const v = {
|
|
|
1127
1127
|
feature_type: nt,
|
|
1128
1128
|
receive_time: e.number(),
|
|
1129
1129
|
extra_data: e.record(e.unknown()).optional()
|
|
1130
|
-
}),
|
|
1130
|
+
}), wn = e.string().enum(f.Unknown, f.Pending), kn = e.union(
|
|
1131
1131
|
e.object({
|
|
1132
1132
|
ticket: e.string(),
|
|
1133
|
-
status:
|
|
1133
|
+
status: wn
|
|
1134
1134
|
}),
|
|
1135
1135
|
e.object({
|
|
1136
1136
|
ticket: e.string(),
|
|
1137
1137
|
status: e.string().enum(k(f, "Unknown", "Pending")),
|
|
1138
1138
|
reward: V
|
|
1139
1139
|
})
|
|
1140
|
-
).satisfies(),
|
|
1141
|
-
tickets: e.array(
|
|
1142
|
-
}),
|
|
1140
|
+
).satisfies(), vn = e.object({
|
|
1141
|
+
tickets: e.array(kn)
|
|
1142
|
+
}), Vn = e.object({
|
|
1143
1143
|
platforms: e.array(e.string())
|
|
1144
1144
|
}), ae = e.object({
|
|
1145
1145
|
role_name: e.string(),
|
|
1146
1146
|
is_leader: e.bool(),
|
|
1147
1147
|
is_myself: e.bool().optional(),
|
|
1148
1148
|
progress: e.number().optional()
|
|
1149
|
-
}).lock(),
|
|
1149
|
+
}).lock(), Cn = e.object({
|
|
1150
1150
|
objective: te,
|
|
1151
1151
|
progress: e.number(),
|
|
1152
1152
|
completion_value: e.number().optional(),
|
|
@@ -1155,19 +1155,19 @@ const v = {
|
|
|
1155
1155
|
completion_value: e.number().optional(),
|
|
1156
1156
|
players: e.array(ae)
|
|
1157
1157
|
}).optional()
|
|
1158
|
-
}),
|
|
1158
|
+
}), Rn = e.object({
|
|
1159
1159
|
progress: e.number(),
|
|
1160
1160
|
team: e.object({
|
|
1161
1161
|
progress: e.number(),
|
|
1162
1162
|
team_members: e.array(ae).optional()
|
|
1163
1163
|
}).optional()
|
|
1164
|
-
}), Rn = e.object({
|
|
1165
|
-
platform: e.string()
|
|
1166
1164
|
}), jn = e.object({
|
|
1167
|
-
|
|
1165
|
+
platform: e.string()
|
|
1168
1166
|
}), Tn = e.object({
|
|
1169
|
-
|
|
1167
|
+
weixin_openid: e.string()
|
|
1170
1168
|
}), qn = e.object({
|
|
1169
|
+
serial_number: e.number()
|
|
1170
|
+
}), xn = e.object({
|
|
1171
1171
|
team_code: e.string(),
|
|
1172
1172
|
leader_name: e.string(),
|
|
1173
1173
|
total_members: e.number()
|
|
@@ -1176,7 +1176,7 @@ const v = {
|
|
|
1176
1176
|
is_myself: e.bool().optional(),
|
|
1177
1177
|
role_name: e.string(),
|
|
1178
1178
|
server_name: e.string()
|
|
1179
|
-
}),
|
|
1179
|
+
}), Sn = e.object({
|
|
1180
1180
|
team_code: e.string(),
|
|
1181
1181
|
visibility: ut,
|
|
1182
1182
|
members: e.array(
|
|
@@ -1186,27 +1186,27 @@ const v = {
|
|
|
1186
1186
|
server_name: e.string()
|
|
1187
1187
|
})
|
|
1188
1188
|
)
|
|
1189
|
-
}), Sn = e.object({
|
|
1190
|
-
option_sn: e.string()
|
|
1191
1189
|
}), Ln = e.object({
|
|
1190
|
+
option_sn: e.string()
|
|
1191
|
+
}), Pn = e.object({
|
|
1192
1192
|
candidate_id: e.string(),
|
|
1193
1193
|
total_votes: e.number().optional(),
|
|
1194
1194
|
my_votes: e.number().optional(),
|
|
1195
1195
|
votes: e.number().optional()
|
|
1196
|
-
}),
|
|
1196
|
+
}), En = e.object({
|
|
1197
1197
|
rewards_type: _t,
|
|
1198
1198
|
rewards: e.array(V).optional()
|
|
1199
|
-
}),
|
|
1199
|
+
}), $n = e.object({
|
|
1200
1200
|
candidate_id: e.string(),
|
|
1201
1201
|
is_winner: e.bool(),
|
|
1202
1202
|
total_votes: e.number(),
|
|
1203
1203
|
my_votes: e.number()
|
|
1204
|
-
}),
|
|
1204
|
+
}), Fn = e.object({
|
|
1205
1205
|
role: e.string(),
|
|
1206
1206
|
content: e.string()
|
|
1207
|
-
}), Fn = e.object({
|
|
1208
|
-
conversations: e.array($n)
|
|
1209
1207
|
}), Un = e.object({
|
|
1208
|
+
conversations: e.array(Fn)
|
|
1209
|
+
}), Dn = e.object({
|
|
1210
1210
|
user_id: e.string(),
|
|
1211
1211
|
name: e.string(),
|
|
1212
1212
|
avatar_url: e.string(),
|
|
@@ -1214,26 +1214,26 @@ const v = {
|
|
|
1214
1214
|
video_note: e.number(),
|
|
1215
1215
|
created_at: e.number()
|
|
1216
1216
|
}), U = e.union(
|
|
1217
|
-
|
|
1217
|
+
Vn,
|
|
1218
|
+
hn,
|
|
1219
|
+
qn,
|
|
1218
1220
|
fn,
|
|
1221
|
+
jn,
|
|
1222
|
+
Ln,
|
|
1223
|
+
Pn,
|
|
1219
1224
|
Tn,
|
|
1225
|
+
_n,
|
|
1220
1226
|
yn,
|
|
1221
|
-
Rn,
|
|
1222
1227
|
Sn,
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
pn,
|
|
1228
|
+
Cn,
|
|
1229
|
+
vn,
|
|
1226
1230
|
bn,
|
|
1227
|
-
|
|
1228
|
-
Vn,
|
|
1229
|
-
kn,
|
|
1230
|
-
_n,
|
|
1231
|
-
Fn,
|
|
1231
|
+
Un,
|
|
1232
1232
|
e.custom(
|
|
1233
1233
|
"EmptyObject",
|
|
1234
1234
|
(i) => w(i) && Object.keys(i).length === 0
|
|
1235
1235
|
)
|
|
1236
|
-
).satisfies().lock(),
|
|
1236
|
+
).satisfies().lock(), In = e.object({
|
|
1237
1237
|
reward_id: e.number(),
|
|
1238
1238
|
reward_item_id: e.number(),
|
|
1239
1239
|
reward_item_type: ee,
|
|
@@ -1246,7 +1246,7 @@ const v = {
|
|
|
1246
1246
|
reward_item_rating: e.number(),
|
|
1247
1247
|
receive_time: e.number(),
|
|
1248
1248
|
extra_data: e.union(...U.validators, e.record(e.unknown())).satisfies().optional()
|
|
1249
|
-
}),
|
|
1249
|
+
}), P = e.object({
|
|
1250
1250
|
reward_id: e.number(),
|
|
1251
1251
|
reward_item_id: e.number(),
|
|
1252
1252
|
reward_item_name: e.string(),
|
|
@@ -1268,7 +1268,7 @@ const v = {
|
|
|
1268
1268
|
server_id: e.string().optional(),
|
|
1269
1269
|
role_id: e.string().optional(),
|
|
1270
1270
|
created_at: e.number(),
|
|
1271
|
-
rewards: e.array(
|
|
1271
|
+
rewards: e.array(In).optional()
|
|
1272
1272
|
}).lock(), Gn = e.object({
|
|
1273
1273
|
allowed: e.bool(),
|
|
1274
1274
|
registered: e.bool()
|
|
@@ -1284,13 +1284,13 @@ const v = {
|
|
|
1284
1284
|
feature_id: e.number(),
|
|
1285
1285
|
data: U.clone().optional()
|
|
1286
1286
|
}).optional(),
|
|
1287
|
-
rewards: e.array(
|
|
1287
|
+
rewards: e.array(P).optional(),
|
|
1288
1288
|
scan: e.bool().optional()
|
|
1289
1289
|
}), Qn = e.object({
|
|
1290
1290
|
reward_id: e.number(),
|
|
1291
1291
|
reward_status: E
|
|
1292
|
-
}), Bn = e.guard(
|
|
1293
|
-
engagements: e.union(e.array(
|
|
1292
|
+
}), Bn = e.guard(pn), Mn = e.guard(Gn), x = s({ count: e.number() }), Kn = s({ first_visit: e.bool() }), Hn = s({
|
|
1293
|
+
engagements: e.union(e.array(Dn), e.array(xn))
|
|
1294
1294
|
}), zn = s({
|
|
1295
1295
|
status: e.array(On)
|
|
1296
1296
|
}), Jn = s({
|
|
@@ -1313,9 +1313,9 @@ const v = {
|
|
|
1313
1313
|
params: e.string()
|
|
1314
1314
|
}), ar = s({
|
|
1315
1315
|
img: e.string()
|
|
1316
|
-
}), or = e.guard(
|
|
1316
|
+
}), or = e.guard(Rn), ir = e.guard(En), sr = e.guard(
|
|
1317
1317
|
e.object({
|
|
1318
|
-
candidate_votes: e.array(
|
|
1318
|
+
candidate_votes: e.array($n)
|
|
1319
1319
|
})
|
|
1320
1320
|
);
|
|
1321
1321
|
class Wr {
|
|
@@ -2390,9 +2390,9 @@ class na {
|
|
|
2390
2390
|
export {
|
|
2391
2391
|
se as AntispamValidator,
|
|
2392
2392
|
Qr as AuthToken,
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2393
|
+
$n as CandidateVoteValidator,
|
|
2394
|
+
_n as CashbackEngagementDataValidator,
|
|
2395
|
+
bn as ClaimActivationKeyEngagementDataValidator,
|
|
2396
2396
|
st as ClaimRewardStatus,
|
|
2397
2397
|
E as ClaimRewardStatusValidator,
|
|
2398
2398
|
Qn as ClaimedItemValidator,
|
|
@@ -2414,42 +2414,42 @@ export {
|
|
|
2414
2414
|
Se as ClubRedemptionStatusValidator,
|
|
2415
2415
|
De as ClubUserCreditValidator,
|
|
2416
2416
|
Ue as ClubUserProfileValidator,
|
|
2417
|
-
|
|
2417
|
+
Dn as CommentEngagementValidator,
|
|
2418
2418
|
h as CommentValidator,
|
|
2419
2419
|
ta as CommunityApi,
|
|
2420
2420
|
Ye as EngageAccountType,
|
|
2421
2421
|
We as EngageAccountTypeValidator,
|
|
2422
2422
|
Nn as EngageResponseValidator,
|
|
2423
|
-
|
|
2423
|
+
P as EngageRewardValidator,
|
|
2424
2424
|
Wr as EventApi,
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2425
|
+
pn as EventConfigValidator,
|
|
2426
|
+
wt as EventFeatureConfigOfCashbackValidator,
|
|
2427
|
+
vt as EventFeatureConfigOfCheckInValidator,
|
|
2428
|
+
Ct as EventFeatureConfigOfClaimActivationKeyValidator,
|
|
2429
|
+
jt as EventFeatureConfigOfClaimRewardsValidator,
|
|
2430
|
+
qt as EventFeatureConfigOfCommentValidator,
|
|
2431
|
+
St as EventFeatureConfigOfFollowValidator,
|
|
2432
|
+
Et as EventFeatureConfigOfGiftCodeValidator,
|
|
2433
|
+
Ft as EventFeatureConfigOfInviteValidator,
|
|
2434
|
+
Dt as EventFeatureConfigOfInvitedRegisterValidator,
|
|
2435
|
+
Qt as EventFeatureConfigOfLotteryDrawValidator,
|
|
2436
|
+
Ot as EventFeatureConfigOfLotteryValidator,
|
|
2437
|
+
Mt as EventFeatureConfigOfPreregisterValidator,
|
|
2438
|
+
Ht as EventFeatureConfigOfQuestValidator,
|
|
2439
|
+
Jt as EventFeatureConfigOfRegisterValidator,
|
|
2440
|
+
Xt as EventFeatureConfigOfShareValidator,
|
|
2441
|
+
Wt as EventFeatureConfigOfSubscribeValidator,
|
|
2442
|
+
tn as EventFeatureConfigOfSurveyValidator,
|
|
2443
|
+
rn as EventFeatureConfigOfTeamValidator,
|
|
2444
|
+
un as EventFeatureConfigOfVote2Validator,
|
|
2445
|
+
sn as EventFeatureConfigOfVoteValidator,
|
|
2446
|
+
gn as EventFeatureConfigValidator,
|
|
2447
2447
|
et as EventPeriodType,
|
|
2448
2448
|
tt as EventPeriodTypeValidator,
|
|
2449
2449
|
F as EventRewardItemConfigValidator,
|
|
2450
2450
|
Oe as ExtraGameRewardValidator,
|
|
2451
2451
|
Ge as ExtraPhysicalShipmentValidator,
|
|
2452
|
-
|
|
2452
|
+
ft as FeatureRewardValidator,
|
|
2453
2453
|
l as FeatureType,
|
|
2454
2454
|
nt as FeatureTypeValidator,
|
|
2455
2455
|
cr as ForumMode,
|
|
@@ -2459,12 +2459,12 @@ export {
|
|
|
2459
2459
|
W as GamerItemTypeValidator,
|
|
2460
2460
|
ve as Gender,
|
|
2461
2461
|
Ve as GenderValidator,
|
|
2462
|
-
|
|
2463
|
-
|
|
2462
|
+
yn as GiftCodeEngagementDataValidator,
|
|
2463
|
+
fn as InviteEngagementDataValidator,
|
|
2464
2464
|
dt as LotteryDrawAction,
|
|
2465
2465
|
Zr as LotteryDrawActionValidator,
|
|
2466
|
-
|
|
2467
|
-
|
|
2466
|
+
vn as LotteryDrawEngagementDataValidator,
|
|
2467
|
+
hn as LotteryEngagementDataValidator,
|
|
2468
2468
|
f as LotteryTicketStatus,
|
|
2469
2469
|
zr as LotteryTicketStatusValidator,
|
|
2470
2470
|
_ as NotificationBaseValidator,
|
|
@@ -2489,15 +2489,15 @@ export {
|
|
|
2489
2489
|
ur as PostStatus,
|
|
2490
2490
|
oe as PostStatusValidator,
|
|
2491
2491
|
I as PostValidator,
|
|
2492
|
-
|
|
2492
|
+
Vn as PreregisterEngagementDataValidator,
|
|
2493
2493
|
pr as PresignedUrlResponseValidator,
|
|
2494
|
-
|
|
2494
|
+
Cn as QuestEngagementDataValidator,
|
|
2495
2495
|
rt as QuestObjective,
|
|
2496
2496
|
te as QuestObjectiveValidator,
|
|
2497
2497
|
re as QuestProgressAlgorithm,
|
|
2498
2498
|
gt as QuestProgressAlgorithmOptionalValidator,
|
|
2499
2499
|
Xr as QuestProgressAlgorithmValidator,
|
|
2500
|
-
|
|
2500
|
+
Rn as QuestProgressValidator,
|
|
2501
2501
|
Br as RedeemParamsValidator,
|
|
2502
2502
|
Ne as RedemptionValidator,
|
|
2503
2503
|
yt as RegularRewardValidator,
|
|
@@ -2511,15 +2511,15 @@ export {
|
|
|
2511
2511
|
it as RewardStatusSuffix,
|
|
2512
2512
|
ne as RewardStatusSuffixValidator,
|
|
2513
2513
|
Hr as RewardStatusValidator,
|
|
2514
|
-
|
|
2514
|
+
In as RewardValidator,
|
|
2515
2515
|
$e as RoleBaseInfoValidator,
|
|
2516
2516
|
Ee as ServerBaseInfoValidator,
|
|
2517
|
-
|
|
2518
|
-
|
|
2517
|
+
jn as ShareEngagementDataValidator,
|
|
2518
|
+
qn as SurveyEngagementDataValidator,
|
|
2519
2519
|
mt as TeamAction,
|
|
2520
2520
|
Jr as TeamActionValidator,
|
|
2521
|
-
|
|
2522
|
-
|
|
2521
|
+
Sn as TeamEngagementDataValidator,
|
|
2522
|
+
xn as TeamEngagementValidator,
|
|
2523
2523
|
Yr as TeamMemberValidator,
|
|
2524
2524
|
lt as TeamVisibility,
|
|
2525
2525
|
ut as TeamVisibilityValidator,
|
|
@@ -2529,15 +2529,15 @@ export {
|
|
|
2529
2529
|
On as UserFeatureStatusValidator,
|
|
2530
2530
|
V as UserRewardValidator,
|
|
2531
2531
|
Gn as VerifyMobileResultValidator,
|
|
2532
|
-
|
|
2533
|
-
|
|
2532
|
+
En as Vote2ClaimRewardsResponseValidator,
|
|
2533
|
+
Pn as Vote2EngagementDataValidator,
|
|
2534
2534
|
pt as Vote2RewardType,
|
|
2535
2535
|
_t as Vote2RewardTypeValidator,
|
|
2536
|
-
|
|
2536
|
+
Ln as VoteEngagementDataValidator,
|
|
2537
2537
|
at as VoteOptionSource,
|
|
2538
2538
|
ot as VoteOptionSourceValidator,
|
|
2539
2539
|
na as WeixinApi,
|
|
2540
|
-
|
|
2540
|
+
Tn as WeixinSubscribeEngagementDataValidator,
|
|
2541
2541
|
Ar as WeixinWebLoginErrorCode,
|
|
2542
2542
|
Ir as isWeixinSignResponse
|
|
2543
2543
|
};
|
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.5",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "index.ts",
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -30,16 +30,16 @@
|
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^22.13.1",
|
|
33
|
+
"@seayoo-web/request": "3.4.0",
|
|
33
34
|
"@seayoo-web/combo-webview": "2.7.0",
|
|
35
|
+
"@seayoo-web/tsconfig": "1.0.5",
|
|
34
36
|
"@seayoo-web/scripts": "3.1.3",
|
|
35
|
-
"@seayoo-web/request": "3.4.0",
|
|
36
37
|
"@seayoo-web/utils": "4.1.3",
|
|
37
|
-
"@seayoo-web/validator": "1.1.0"
|
|
38
|
-
"@seayoo-web/tsconfig": "1.0.5"
|
|
38
|
+
"@seayoo-web/validator": "1.1.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@seayoo-web/combo-webview": "^2.7.0",
|
|
42
41
|
"@seayoo-web/utils": "^4.1.3",
|
|
42
|
+
"@seayoo-web/combo-webview": "^2.7.0",
|
|
43
43
|
"@seayoo-web/validator": "^1.1.0"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { type EngageReward } from "../event";
|
|
1
2
|
import { type EventFeatureBaseConfig } from "./feature.base";
|
|
2
|
-
import { type FeatureReward } from "./reward";
|
|
3
3
|
declare const featureType: "vote2";
|
|
4
4
|
export interface FeatureVoteCandidate {
|
|
5
5
|
/** 选项标识 */
|
|
@@ -29,9 +29,9 @@ export interface FeatureVote2Config {
|
|
|
29
29
|
/** 可领奖结束时间,秒时间戳 */
|
|
30
30
|
rewards_until: number;
|
|
31
31
|
/** 获胜奖励 */
|
|
32
|
-
winner_rewards?:
|
|
32
|
+
winner_rewards?: EngageReward[];
|
|
33
33
|
/** 安慰奖 */
|
|
34
|
-
consolation_rewards?:
|
|
34
|
+
consolation_rewards?: EngageReward[];
|
|
35
35
|
}
|
|
36
36
|
export type EventFeatureConfigOfVote2 = EventFeatureBaseConfig & {
|
|
37
37
|
feature_type: typeof featureType;
|