@seayoo-web/gamer-api 2.5.2 → 2.5.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
|
@@ -2,12 +2,12 @@ var me = Object.defineProperty;
|
|
|
2
2
|
var de = (a, t, r) => t in a ? me(a, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : a[t] = r;
|
|
3
3
|
var d = (a, t, r) => de(a, typeof t != "symbol" ? t + "" : t, r);
|
|
4
4
|
import { isComboWebView as ge } from "@seayoo-web/combo-webview";
|
|
5
|
-
import { isPlainObject as
|
|
5
|
+
import { isPlainObject as V, useConsole as pe, Support as y, usePromise as _e, pruneURL as be, queryString as P, pruneObject as c, v as e, omitFields as R, typedObjectGuard as s, parseJSON as ye, removePara as M } from "@seayoo-web/utils";
|
|
6
6
|
function fe(a) {
|
|
7
|
-
return
|
|
7
|
+
return V(a, "gamer_token") && typeof a.gamer_token == "string";
|
|
8
8
|
}
|
|
9
9
|
function Q(a) {
|
|
10
|
-
return
|
|
10
|
+
return V(a);
|
|
11
11
|
}
|
|
12
12
|
const w = pe("GamerApiSDK");
|
|
13
13
|
function he(a) {
|
|
@@ -58,7 +58,7 @@ const ke = {
|
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
}, k = "gamer_token";
|
|
61
|
-
class
|
|
61
|
+
class Sr {
|
|
62
62
|
constructor(t, r) {
|
|
63
63
|
d(this, "$NetRequest");
|
|
64
64
|
d(this, "$idToken", "");
|
|
@@ -219,14 +219,14 @@ const Ce = {
|
|
|
219
219
|
Male: "male",
|
|
220
220
|
/** 女 */
|
|
221
221
|
Female: "female"
|
|
222
|
-
},
|
|
222
|
+
}, Ve = e.string().enum(Ce).lock(), Re = {
|
|
223
223
|
/** 积分增加 */
|
|
224
224
|
Increase: "increase",
|
|
225
225
|
/** 积分减少 */
|
|
226
226
|
Decrease: "decrease",
|
|
227
227
|
/** 积分过期 */
|
|
228
228
|
Expired: "expired"
|
|
229
|
-
}, je = e.string().enum(
|
|
229
|
+
}, je = e.string().enum(Re).lock(), Te = {
|
|
230
230
|
/** 游戏内购买 */
|
|
231
231
|
Order: "order",
|
|
232
232
|
/** 游戏内消耗 */
|
|
@@ -305,7 +305,7 @@ const Ce = {
|
|
|
305
305
|
name: e.string(),
|
|
306
306
|
avatar_url: e.string(),
|
|
307
307
|
bio: e.string(),
|
|
308
|
-
gender:
|
|
308
|
+
gender: Ve,
|
|
309
309
|
birthday: e.object({ year: e.number(), month: e.number(), day: e.number() })
|
|
310
310
|
}).lock(), W = e.object({
|
|
311
311
|
address_id: e.number(),
|
|
@@ -364,9 +364,9 @@ const Ce = {
|
|
|
364
364
|
updated_at: e.number(),
|
|
365
365
|
redeemable_quantity: e.number().optional()
|
|
366
366
|
}).lock(), Ae = e.object({
|
|
367
|
-
...
|
|
367
|
+
...R(ee.shape, "tag"),
|
|
368
368
|
product: te.clone().optional()
|
|
369
|
-
}).lock(),
|
|
369
|
+
}).lock(), Lr = e.union(
|
|
370
370
|
e.object({
|
|
371
371
|
server_id: e.string(),
|
|
372
372
|
role_id: e.string()
|
|
@@ -408,7 +408,7 @@ const Ce = {
|
|
|
408
408
|
redemptions: e.array(Be),
|
|
409
409
|
next_token: e.string().optional()
|
|
410
410
|
});
|
|
411
|
-
class
|
|
411
|
+
class Er {
|
|
412
412
|
constructor(t) {
|
|
413
413
|
d(this, "token");
|
|
414
414
|
d(this, "req");
|
|
@@ -690,7 +690,7 @@ const j = {
|
|
|
690
690
|
ExternalCode: "external_gift_code",
|
|
691
691
|
/** 空奖励 */
|
|
692
692
|
VoidItem: "void_item"
|
|
693
|
-
}, ne = e.string().enum(j).lock(),
|
|
693
|
+
}, ne = e.string().enum(j).lock(), Pr = j, re = ne, We = {
|
|
694
694
|
/** 世游通行证 ID / Combo ID */
|
|
695
695
|
UserId: "user_id",
|
|
696
696
|
/** 游戏角色 ID */
|
|
@@ -774,7 +774,7 @@ const j = {
|
|
|
774
774
|
Failed: "failed",
|
|
775
775
|
/** 奖励已发货 */
|
|
776
776
|
Delivered: "delivered"
|
|
777
|
-
},
|
|
777
|
+
}, $r = e.string().enum(_).lock(), $ = {
|
|
778
778
|
/**
|
|
779
779
|
* 奖励未领取,拼写错误以兼容后端历史版本,检查请使用 Unclaimed
|
|
780
780
|
*
|
|
@@ -827,7 +827,7 @@ const j = {
|
|
|
827
827
|
Claimed: "claimed",
|
|
828
828
|
/** 领奖失败 */
|
|
829
829
|
Fail: "fail"
|
|
830
|
-
},
|
|
830
|
+
}, Ur = e.string().enum(v).lock(), lt = {
|
|
831
831
|
/** 发起组队 */
|
|
832
832
|
Assemble: "assemble",
|
|
833
833
|
/** 加入队伍 */
|
|
@@ -838,14 +838,14 @@ const j = {
|
|
|
838
838
|
ChangeVisibility: "change_visibility",
|
|
839
839
|
/** 查询组队信息 */
|
|
840
840
|
Query: "query"
|
|
841
|
-
},
|
|
841
|
+
}, Fr = e.string().enum(lt).lock(), mt = {
|
|
842
842
|
/** 查询抽奖券 */
|
|
843
843
|
Query: "query",
|
|
844
844
|
/** 开奖 */
|
|
845
845
|
Draw: "draw",
|
|
846
846
|
/** 领奖 */
|
|
847
847
|
Claim: "claim"
|
|
848
|
-
},
|
|
848
|
+
}, Dr = e.string().enum(mt).lock(), dt = e.string().enum(R(j, "GiftCode", "LotteryTicket")), D = e.object({
|
|
849
849
|
reward_item_id: e.number(),
|
|
850
850
|
reward_amount: e.number(),
|
|
851
851
|
reward_item_name: e.string(),
|
|
@@ -893,16 +893,16 @@ const j = {
|
|
|
893
893
|
}), kt = u.ClaimRewards, vt = e.object({
|
|
894
894
|
...l.shape,
|
|
895
895
|
feature_type: e.string().enum(kt)
|
|
896
|
-
}), Ct = u.Comment,
|
|
896
|
+
}), Ct = u.Comment, Vt = e.object({
|
|
897
897
|
...l.shape,
|
|
898
898
|
feature_type: e.string().enum(Ct),
|
|
899
899
|
config: e.object({
|
|
900
900
|
comments: e.array(e.string()),
|
|
901
901
|
send_rate: e.number()
|
|
902
902
|
})
|
|
903
|
-
}),
|
|
903
|
+
}), Rt = u.Follow, jt = e.object({
|
|
904
904
|
...l.shape,
|
|
905
|
-
feature_type: e.string().enum(
|
|
905
|
+
feature_type: e.string().enum(Rt),
|
|
906
906
|
config: e.object({
|
|
907
907
|
platform: e.string(),
|
|
908
908
|
platform_icon: e.string().optional(),
|
|
@@ -931,7 +931,7 @@ const j = {
|
|
|
931
931
|
}), Et = u.InvitedRegister, Pt = e.object({
|
|
932
932
|
...l.shape,
|
|
933
933
|
feature_type: e.string().enum(Et)
|
|
934
|
-
}), $t = e.string().enum(
|
|
934
|
+
}), $t = e.string().enum(R(j, "GiftCode", "LotteryTicket")), Ut = u.Lottery, Ft = e.object({
|
|
935
935
|
reward_item_id: e.number(),
|
|
936
936
|
reward_item_name: e.string(),
|
|
937
937
|
reward_item_type: $t,
|
|
@@ -1028,11 +1028,14 @@ const j = {
|
|
|
1028
1028
|
options: e.array(tn),
|
|
1029
1029
|
rewards: e.array(D)
|
|
1030
1030
|
})
|
|
1031
|
-
}), rn = e.
|
|
1031
|
+
}), rn = u.ZeroChatgpt, on = e.object({
|
|
1032
|
+
...l.shape,
|
|
1033
|
+
feature_type: e.string().enum(rn)
|
|
1034
|
+
}), an = e.union(
|
|
1032
1035
|
bt,
|
|
1033
1036
|
ft,
|
|
1034
1037
|
vt,
|
|
1035
|
-
|
|
1038
|
+
Vt,
|
|
1036
1039
|
jt,
|
|
1037
1040
|
xt,
|
|
1038
1041
|
Lt,
|
|
@@ -1047,27 +1050,28 @@ const j = {
|
|
|
1047
1050
|
Xt,
|
|
1048
1051
|
Wt,
|
|
1049
1052
|
nn,
|
|
1050
|
-
wt
|
|
1051
|
-
|
|
1053
|
+
wt,
|
|
1054
|
+
on
|
|
1055
|
+
).key("feature_type").satisfies(), sn = e.object({
|
|
1052
1056
|
event_name: e.string(),
|
|
1053
1057
|
rules: e.string(),
|
|
1054
1058
|
since: e.number(),
|
|
1055
1059
|
until: e.number(),
|
|
1056
1060
|
visit_count: e.number().optional(),
|
|
1057
|
-
features: e.array(
|
|
1058
|
-
}).lock(), S = e.union(e.string().pattern("NumberString", /^\d+$/), e.number()),
|
|
1061
|
+
features: e.array(an)
|
|
1062
|
+
}).lock(), S = e.union(e.string().pattern("NumberString", /^\d+$/), e.number()), cn = e.object({
|
|
1059
1063
|
order_total_amount: S,
|
|
1060
1064
|
cashback_total_amount: S,
|
|
1061
1065
|
game_item_count: S
|
|
1062
|
-
}),
|
|
1066
|
+
}), un = e.object({
|
|
1063
1067
|
activation_key: e.string().disallow("")
|
|
1064
|
-
}),
|
|
1068
|
+
}), ln = e.object({
|
|
1065
1069
|
gift_code: e.string()
|
|
1066
|
-
}),
|
|
1070
|
+
}), mn = e.object({
|
|
1067
1071
|
user_id: e.string(),
|
|
1068
1072
|
name: e.string().optional(),
|
|
1069
1073
|
avatar_url: e.string().optional()
|
|
1070
|
-
}),
|
|
1074
|
+
}), dn = e.object({
|
|
1071
1075
|
lottery_count: e.number()
|
|
1072
1076
|
}), I = e.object({
|
|
1073
1077
|
reward_id: e.number(),
|
|
@@ -1087,21 +1091,21 @@ const j = {
|
|
|
1087
1091
|
feature_type: rt,
|
|
1088
1092
|
receive_time: e.number(),
|
|
1089
1093
|
extra_data: e.record(e.unknown()).optional()
|
|
1090
|
-
}),
|
|
1094
|
+
}), gn = e.string().enum(v.Unknown, v.Pending), pn = e.union(
|
|
1091
1095
|
e.object({
|
|
1092
1096
|
ticket: e.string(),
|
|
1093
|
-
status:
|
|
1097
|
+
status: gn
|
|
1094
1098
|
}),
|
|
1095
1099
|
e.object({
|
|
1096
1100
|
ticket: e.string(),
|
|
1097
|
-
status: e.string().enum(
|
|
1101
|
+
status: e.string().enum(R(v, "Unknown", "Pending")),
|
|
1098
1102
|
reward: I
|
|
1099
1103
|
})
|
|
1100
|
-
).satisfies(),
|
|
1101
|
-
tickets: e.array(
|
|
1102
|
-
}),
|
|
1104
|
+
).satisfies(), _n = e.object({
|
|
1105
|
+
tickets: e.array(pn)
|
|
1106
|
+
}), bn = e.object({
|
|
1103
1107
|
platforms: e.array(e.string())
|
|
1104
|
-
}),
|
|
1108
|
+
}), yn = e.object({
|
|
1105
1109
|
objective: ie,
|
|
1106
1110
|
progress: e.number(),
|
|
1107
1111
|
completion_value: e.number().optional(),
|
|
@@ -1117,22 +1121,22 @@ const j = {
|
|
|
1117
1121
|
})
|
|
1118
1122
|
)
|
|
1119
1123
|
}).optional()
|
|
1120
|
-
}),
|
|
1124
|
+
}), fn = e.object({
|
|
1121
1125
|
platform: e.string()
|
|
1122
|
-
}),
|
|
1126
|
+
}), hn = e.object({
|
|
1123
1127
|
weixin_openid: e.string()
|
|
1124
|
-
}),
|
|
1128
|
+
}), wn = e.object({
|
|
1125
1129
|
serial_number: e.number()
|
|
1126
|
-
}),
|
|
1130
|
+
}), kn = e.object({
|
|
1127
1131
|
team_code: e.string(),
|
|
1128
1132
|
leader_name: e.string(),
|
|
1129
1133
|
total_members: e.number()
|
|
1130
|
-
}),
|
|
1134
|
+
}), Ir = e.object({
|
|
1131
1135
|
is_leader: e.bool(),
|
|
1132
1136
|
is_myself: e.bool().optional(),
|
|
1133
1137
|
role_name: e.string(),
|
|
1134
1138
|
server_name: e.string()
|
|
1135
|
-
}),
|
|
1139
|
+
}), vn = e.object({
|
|
1136
1140
|
team_code: e.string(),
|
|
1137
1141
|
visibility: ut,
|
|
1138
1142
|
members: e.array(
|
|
@@ -1142,14 +1146,14 @@ const j = {
|
|
|
1142
1146
|
server_name: e.string()
|
|
1143
1147
|
})
|
|
1144
1148
|
)
|
|
1145
|
-
}),
|
|
1149
|
+
}), Cn = e.object({
|
|
1146
1150
|
option_sn: e.string()
|
|
1147
|
-
}),
|
|
1151
|
+
}), Vn = e.object({
|
|
1148
1152
|
role: e.string(),
|
|
1149
1153
|
content: e.string()
|
|
1150
|
-
}), Cn = e.object({
|
|
1151
|
-
conversations: e.array(vn)
|
|
1152
1154
|
}), Rn = e.object({
|
|
1155
|
+
conversations: e.array(Vn)
|
|
1156
|
+
}), jn = e.object({
|
|
1153
1157
|
user_id: e.string(),
|
|
1154
1158
|
name: e.string(),
|
|
1155
1159
|
avatar_url: e.string(),
|
|
@@ -1157,25 +1161,25 @@ const j = {
|
|
|
1157
1161
|
video_note: e.number(),
|
|
1158
1162
|
created_at: e.number()
|
|
1159
1163
|
}), G = e.union(
|
|
1160
|
-
pn,
|
|
1161
|
-
ln,
|
|
1162
|
-
fn,
|
|
1163
|
-
un,
|
|
1164
1164
|
bn,
|
|
1165
|
-
|
|
1166
|
-
yn,
|
|
1167
|
-
an,
|
|
1168
|
-
cn,
|
|
1165
|
+
dn,
|
|
1169
1166
|
wn,
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
sn,
|
|
1167
|
+
mn,
|
|
1168
|
+
fn,
|
|
1173
1169
|
Cn,
|
|
1170
|
+
hn,
|
|
1171
|
+
cn,
|
|
1172
|
+
ln,
|
|
1173
|
+
vn,
|
|
1174
|
+
yn,
|
|
1175
|
+
_n,
|
|
1176
|
+
un,
|
|
1177
|
+
Rn,
|
|
1174
1178
|
e.custom(
|
|
1175
1179
|
"EmptyObject",
|
|
1176
|
-
(a) =>
|
|
1180
|
+
(a) => V(a) && Object.keys(a).length === 0
|
|
1177
1181
|
)
|
|
1178
|
-
).satisfies().lock(),
|
|
1182
|
+
).satisfies().lock(), Tn = e.object({
|
|
1179
1183
|
reward_id: e.number(),
|
|
1180
1184
|
reward_item_id: e.number(),
|
|
1181
1185
|
reward_item_type: re,
|
|
@@ -1188,7 +1192,7 @@ const j = {
|
|
|
1188
1192
|
reward_item_rating: e.number(),
|
|
1189
1193
|
receive_time: e.number(),
|
|
1190
1194
|
extra_data: e.union(...G.validators, e.record(e.unknown())).satisfies().optional()
|
|
1191
|
-
}),
|
|
1195
|
+
}), qn = e.object({
|
|
1192
1196
|
reward_id: e.number(),
|
|
1193
1197
|
reward_item_id: e.number(),
|
|
1194
1198
|
reward_item_name: e.string(),
|
|
@@ -1199,7 +1203,7 @@ const j = {
|
|
|
1199
1203
|
reward_status: oe,
|
|
1200
1204
|
reward_source: F,
|
|
1201
1205
|
extra_data: e.record(e.unknown()).optional()
|
|
1202
|
-
}),
|
|
1206
|
+
}), xn = e.object({
|
|
1203
1207
|
engagement_id: e.number(),
|
|
1204
1208
|
user_id: e.string(),
|
|
1205
1209
|
event_id: e.number(),
|
|
@@ -1209,15 +1213,15 @@ const j = {
|
|
|
1209
1213
|
server_id: e.string().optional(),
|
|
1210
1214
|
role_id: e.string().optional(),
|
|
1211
1215
|
created_at: e.number(),
|
|
1212
|
-
rewards: e.array(
|
|
1213
|
-
}).lock(),
|
|
1216
|
+
rewards: e.array(Tn).optional()
|
|
1217
|
+
}).lock(), Sn = e.object({
|
|
1214
1218
|
allowed: e.bool(),
|
|
1215
1219
|
registered: e.bool()
|
|
1216
|
-
}),
|
|
1220
|
+
}), Ln = e.object({
|
|
1217
1221
|
feature_id: e.number(),
|
|
1218
1222
|
can_engage: e.bool(),
|
|
1219
1223
|
has_unclaimed_rewards: e.bool()
|
|
1220
|
-
}),
|
|
1224
|
+
}), En = e.object({
|
|
1221
1225
|
engagement_id: e.number(),
|
|
1222
1226
|
engagement: e.object({
|
|
1223
1227
|
engagement_id: e.number(),
|
|
@@ -1225,37 +1229,37 @@ const j = {
|
|
|
1225
1229
|
feature_id: e.number(),
|
|
1226
1230
|
data: G.clone().optional()
|
|
1227
1231
|
}).optional(),
|
|
1228
|
-
rewards: e.array(
|
|
1232
|
+
rewards: e.array(qn).optional(),
|
|
1229
1233
|
scan: e.bool().optional()
|
|
1230
|
-
}),
|
|
1234
|
+
}), Pn = e.object({
|
|
1231
1235
|
reward_id: e.number(),
|
|
1232
1236
|
reward_status: U
|
|
1233
|
-
}),
|
|
1234
|
-
engagements: e.union(e.array(
|
|
1235
|
-
}), Fn = s({
|
|
1236
|
-
status: e.array(xn)
|
|
1237
|
-
}), Dn = s({
|
|
1238
|
-
engagements_counts: e.record(e.number())
|
|
1237
|
+
}), $n = e.guard(sn), Un = e.guard(Sn), L = s({ count: e.number() }), Fn = s({ first_visit: e.bool() }), Dn = s({
|
|
1238
|
+
engagements: e.union(e.array(jn), e.array(kn))
|
|
1239
1239
|
}), In = s({
|
|
1240
|
-
|
|
1240
|
+
status: e.array(Ln)
|
|
1241
|
+
}), Gn = s({
|
|
1242
|
+
engagements_counts: e.record(e.number())
|
|
1243
|
+
}), An = s({
|
|
1244
|
+
engagements: e.array(xn),
|
|
1241
1245
|
next_token: e.string().optional()
|
|
1242
|
-
}),
|
|
1243
|
-
claimed_items: e.array(
|
|
1244
|
-
}),
|
|
1246
|
+
}), Nn = e.guard(En), On = s({
|
|
1247
|
+
claimed_items: e.array(Pn)
|
|
1248
|
+
}), Bn = s({
|
|
1245
1249
|
rewards: e.array(I)
|
|
1246
|
-
}),
|
|
1250
|
+
}), Mn = s({
|
|
1247
1251
|
reward_status: U
|
|
1248
|
-
}),
|
|
1252
|
+
}), Qn = s({
|
|
1249
1253
|
user_rewards: e.array(I),
|
|
1250
1254
|
next_token: e.string().optional()
|
|
1251
|
-
}),
|
|
1255
|
+
}), Kn = s({
|
|
1252
1256
|
scene: e.string()
|
|
1253
|
-
}),
|
|
1257
|
+
}), Hn = s({
|
|
1254
1258
|
params: e.string()
|
|
1255
|
-
}),
|
|
1259
|
+
}), zn = s({
|
|
1256
1260
|
img: e.string()
|
|
1257
1261
|
});
|
|
1258
|
-
class
|
|
1262
|
+
class Gr {
|
|
1259
1263
|
constructor(t, r) {
|
|
1260
1264
|
d(this, "token");
|
|
1261
1265
|
d(this, "event", 0);
|
|
@@ -1268,7 +1272,7 @@ class Dr {
|
|
|
1268
1272
|
* https://kdocs.cn/l/cf2mO2uRLqh9?linkname=OWGSPF3Ysl
|
|
1269
1273
|
*/
|
|
1270
1274
|
async verifyMobileAllowed(t, r, n) {
|
|
1271
|
-
const { data: i } = await this.req.get("verify-mobile-allowed",
|
|
1275
|
+
const { data: i } = await this.req.get("verify-mobile-allowed", Un, {
|
|
1272
1276
|
...n,
|
|
1273
1277
|
params: { game_id: t, mobile: r }
|
|
1274
1278
|
});
|
|
@@ -1280,7 +1284,7 @@ class Dr {
|
|
|
1280
1284
|
* https://kdocs.cn/l/ckWFDcOsYEUA?linkname=wFXxtdNKPm
|
|
1281
1285
|
*/
|
|
1282
1286
|
async getConfig(t) {
|
|
1283
|
-
const { data: r } = await this.req.get(`event/${this.event}/event-config`,
|
|
1287
|
+
const { data: r } = await this.req.get(`event/${this.event}/event-config`, $n, t);
|
|
1284
1288
|
return r;
|
|
1285
1289
|
}
|
|
1286
1290
|
/**
|
|
@@ -1315,7 +1319,7 @@ class Dr {
|
|
|
1315
1319
|
* https://kdocs.cn/l/ckWFDcOsYEUA?linkname=THtZ4ewIQW
|
|
1316
1320
|
*/
|
|
1317
1321
|
async getEngagements(t, r) {
|
|
1318
|
-
const { data: n } = await this.req.get(`event/${this.event}/feature-engagements`,
|
|
1322
|
+
const { data: n } = await this.req.get(`event/${this.event}/feature-engagements`, Dn, {
|
|
1319
1323
|
...r,
|
|
1320
1324
|
params: { feature_id: t }
|
|
1321
1325
|
});
|
|
@@ -1331,7 +1335,7 @@ class Dr {
|
|
|
1331
1335
|
const { data: n, code: i, message: o } = await this.req.post(
|
|
1332
1336
|
`event/${this.event}/visit`,
|
|
1333
1337
|
c(t || {}),
|
|
1334
|
-
|
|
1338
|
+
Fn,
|
|
1335
1339
|
r
|
|
1336
1340
|
);
|
|
1337
1341
|
return n ?? {
|
|
@@ -1350,7 +1354,7 @@ class Dr {
|
|
|
1350
1354
|
*/
|
|
1351
1355
|
async getUserFeatureStatus(t, r) {
|
|
1352
1356
|
if (!await this.token.autoLogin()) return [];
|
|
1353
|
-
const { data: n } = await this.req.get("event/user-feature-status",
|
|
1357
|
+
const { data: n } = await this.req.get("event/user-feature-status", In, {
|
|
1354
1358
|
...r,
|
|
1355
1359
|
message: !1,
|
|
1356
1360
|
params: c({ ...t, event_id: this.event })
|
|
@@ -1364,7 +1368,7 @@ class Dr {
|
|
|
1364
1368
|
*/
|
|
1365
1369
|
async getUserEngagementCount(t, r) {
|
|
1366
1370
|
if (!await this.token.autoLogin()) return {};
|
|
1367
|
-
const { data: n } = await this.req.get("event/user-engagements-count",
|
|
1371
|
+
const { data: n } = await this.req.get("event/user-engagements-count", Gn, {
|
|
1368
1372
|
message: !1,
|
|
1369
1373
|
params: c({ ...r, event_id: this.event, feature_id: t })
|
|
1370
1374
|
});
|
|
@@ -1383,7 +1387,7 @@ class Dr {
|
|
|
1383
1387
|
engagements: [],
|
|
1384
1388
|
next_token: ""
|
|
1385
1389
|
};
|
|
1386
|
-
const { data: i } = await this.req.get("event/user-engagements",
|
|
1390
|
+
const { data: i } = await this.req.get("event/user-engagements", An, {
|
|
1387
1391
|
...n,
|
|
1388
1392
|
params: c({
|
|
1389
1393
|
max_results: 20,
|
|
@@ -1415,7 +1419,7 @@ class Dr {
|
|
|
1415
1419
|
engagement: r,
|
|
1416
1420
|
...n
|
|
1417
1421
|
}),
|
|
1418
|
-
|
|
1422
|
+
Nn,
|
|
1419
1423
|
i
|
|
1420
1424
|
);
|
|
1421
1425
|
return o && o.rewards && (o.rewards = o.rewards.map((h) => (h.reward_status = h.reward_status === $.UnclaimedErr ? $.Unclaimed : h.reward_status, h))), o ?? {
|
|
@@ -1439,7 +1443,7 @@ class Dr {
|
|
|
1439
1443
|
...t,
|
|
1440
1444
|
server_id: t.server_id ? +t.server_id : void 0
|
|
1441
1445
|
}),
|
|
1442
|
-
|
|
1446
|
+
On,
|
|
1443
1447
|
r
|
|
1444
1448
|
), g = n == null ? void 0 : n.claimed_items;
|
|
1445
1449
|
return g ? g.map((m) => (m.reward_status = m.reward_status === b.UnclaimedErr ? b.Unclaimed : m.reward_status, m)) : {
|
|
@@ -1460,7 +1464,7 @@ class Dr {
|
|
|
1460
1464
|
...t,
|
|
1461
1465
|
server_id: t.server_id ? +t.server_id : void 0
|
|
1462
1466
|
}),
|
|
1463
|
-
|
|
1467
|
+
Bn,
|
|
1464
1468
|
r
|
|
1465
1469
|
), g = n == null ? void 0 : n.rewards;
|
|
1466
1470
|
return g ? g.map((m) => (m.reward_status = m.reward_status === b.UnclaimedErr ? b.Unclaimed : m.reward_status, m)) : {
|
|
@@ -1478,7 +1482,7 @@ class Dr {
|
|
|
1478
1482
|
const { data: n, code: i, message: o } = await this.req.post(
|
|
1479
1483
|
"event/claim-weixin-hongbao",
|
|
1480
1484
|
{ reward_id: t },
|
|
1481
|
-
|
|
1485
|
+
Mn,
|
|
1482
1486
|
r
|
|
1483
1487
|
);
|
|
1484
1488
|
return n ? (n.reward_status = n.reward_status === b.UnclaimedErr ? b.Unclaimed : n.reward_status, n) : {
|
|
@@ -1519,7 +1523,7 @@ class Dr {
|
|
|
1519
1523
|
const { data: n } = await this.req.post(
|
|
1520
1524
|
"event/user-rewards",
|
|
1521
1525
|
c({ max_results: 20, ...t, event_id: this.event }),
|
|
1522
|
-
|
|
1526
|
+
Qn,
|
|
1523
1527
|
r
|
|
1524
1528
|
);
|
|
1525
1529
|
return {
|
|
@@ -1559,7 +1563,7 @@ class Dr {
|
|
|
1559
1563
|
*/
|
|
1560
1564
|
async getUnlimitQrcodeScene(t, r) {
|
|
1561
1565
|
if (!await this.token.autoLogin()) return null;
|
|
1562
|
-
const { data: n } = await this.req.get("event/unlimit-qrcode-scene",
|
|
1566
|
+
const { data: n } = await this.req.get("event/unlimit-qrcode-scene", Kn, {
|
|
1563
1567
|
...r,
|
|
1564
1568
|
params: { params: t }
|
|
1565
1569
|
});
|
|
@@ -1573,7 +1577,7 @@ class Dr {
|
|
|
1573
1577
|
* @param scene - 小程序码 scene 值
|
|
1574
1578
|
*/
|
|
1575
1579
|
async getParamsByQrcodeScene(t, r) {
|
|
1576
|
-
const { data: n } = await this.req.get("event/params-by-qrcode-scene",
|
|
1580
|
+
const { data: n } = await this.req.get("event/params-by-qrcode-scene", Hn, {
|
|
1577
1581
|
...r,
|
|
1578
1582
|
params: { scene: t }
|
|
1579
1583
|
});
|
|
@@ -1589,18 +1593,18 @@ class Dr {
|
|
|
1589
1593
|
const { data: n } = await this.req.post(
|
|
1590
1594
|
"event/unlimit-qrcode",
|
|
1591
1595
|
c(t),
|
|
1592
|
-
|
|
1596
|
+
zn,
|
|
1593
1597
|
r
|
|
1594
1598
|
);
|
|
1595
1599
|
return (n == null ? void 0 : n.img) ?? null;
|
|
1596
1600
|
}
|
|
1597
1601
|
}
|
|
1598
|
-
const
|
|
1602
|
+
const Jn = {
|
|
1599
1603
|
/** 所有人均可以发帖 */
|
|
1600
1604
|
All: "all",
|
|
1601
1605
|
/** 指定用户可发帖 */
|
|
1602
1606
|
Limit: "limit"
|
|
1603
|
-
},
|
|
1607
|
+
}, Zn = e.string().enum(Jn).lock(), Xn = {
|
|
1604
1608
|
/** 待审核(仅自己可见) */
|
|
1605
1609
|
Pending: "pending",
|
|
1606
1610
|
/** 审核通过 */
|
|
@@ -1609,14 +1613,14 @@ const Hn = {
|
|
|
1609
1613
|
Failed: "failed",
|
|
1610
1614
|
/** 嫌疑(仅自己可见) */
|
|
1611
1615
|
Suspect: "suspect"
|
|
1612
|
-
}, ae = e.string().enum(
|
|
1616
|
+
}, ae = e.string().enum(Xn).lock(), Yn = {
|
|
1613
1617
|
/** 系统通知 */
|
|
1614
1618
|
System: "system",
|
|
1615
1619
|
/** 评论我的 */
|
|
1616
1620
|
Comment: "comment",
|
|
1617
1621
|
/** 点赞通知 */
|
|
1618
1622
|
Like: "like"
|
|
1619
|
-
},
|
|
1623
|
+
}, Ar = e.string().enum(Yn).lock(), p = {
|
|
1620
1624
|
/** 系统通知 */
|
|
1621
1625
|
System: "system",
|
|
1622
1626
|
/** 帖子被置顶 */
|
|
@@ -1641,13 +1645,13 @@ const Hn = {
|
|
|
1641
1645
|
ReplyLiked: "reply_liked",
|
|
1642
1646
|
/** 回复被删除 */
|
|
1643
1647
|
ReplyDeleted: "reply_deleted"
|
|
1644
|
-
},
|
|
1648
|
+
}, Wn = e.string().enum(p).lock(), se = e.object({
|
|
1645
1649
|
forum_id: e.number(),
|
|
1646
1650
|
icon_url: e.string(),
|
|
1647
1651
|
name: e.string(),
|
|
1648
1652
|
tags: e.array(e.string()),
|
|
1649
1653
|
sort: e.number(),
|
|
1650
|
-
mode:
|
|
1654
|
+
mode: Zn,
|
|
1651
1655
|
member_ids: e.array(e.number())
|
|
1652
1656
|
}).lock(), A = e.object({
|
|
1653
1657
|
topic_id: e.number(),
|
|
@@ -1678,7 +1682,7 @@ const Hn = {
|
|
|
1678
1682
|
create_time: e.number()
|
|
1679
1683
|
}).lock(), ce = e.object({
|
|
1680
1684
|
err_msg: e.string().optional()
|
|
1681
|
-
}).lock(),
|
|
1685
|
+
}).lock(), er = e.object({
|
|
1682
1686
|
reply_id: e.number(),
|
|
1683
1687
|
reply_content: e.string().optional(),
|
|
1684
1688
|
replied_by: e.string(),
|
|
@@ -1697,7 +1701,7 @@ const Hn = {
|
|
|
1697
1701
|
content: e.string(),
|
|
1698
1702
|
like_num: e.number(),
|
|
1699
1703
|
liked: e.bool(),
|
|
1700
|
-
reply_to:
|
|
1704
|
+
reply_to: er,
|
|
1701
1705
|
create_time: e.number()
|
|
1702
1706
|
}).lock(), C = e.object({
|
|
1703
1707
|
comment_id: e.number(),
|
|
@@ -1719,19 +1723,19 @@ const Hn = {
|
|
|
1719
1723
|
create_time: e.number(),
|
|
1720
1724
|
status: ae,
|
|
1721
1725
|
replies: e.array(T).optional()
|
|
1722
|
-
}).lock(),
|
|
1726
|
+
}).lock(), tr = e.object({
|
|
1723
1727
|
image_url: e.string(),
|
|
1724
1728
|
upload_url: e.string(),
|
|
1725
1729
|
existed: e.bool()
|
|
1726
1730
|
}).lock(), f = e.object({
|
|
1727
1731
|
notification_id: e.string(),
|
|
1728
|
-
notification_type:
|
|
1732
|
+
notification_type: Wn,
|
|
1729
1733
|
is_read: e.bool(),
|
|
1730
1734
|
create_time: e.number(),
|
|
1731
1735
|
origin_user_id: e.string(),
|
|
1732
1736
|
origin_user_name: e.string(),
|
|
1733
1737
|
origin_user_avatar_url: e.string()
|
|
1734
|
-
}).lock(),
|
|
1738
|
+
}).lock(), nr = e.object({
|
|
1735
1739
|
system_message_subject: e.string(),
|
|
1736
1740
|
system_message_content: e.string()
|
|
1737
1741
|
}).lock(), O = e.object({
|
|
@@ -1745,11 +1749,11 @@ const Hn = {
|
|
|
1745
1749
|
}).lock(), B = e.object({
|
|
1746
1750
|
reply_id: e.number(),
|
|
1747
1751
|
reply_content: e.string()
|
|
1748
|
-
}).lock(),
|
|
1752
|
+
}).lock(), rr = e.object({
|
|
1749
1753
|
...f.shape,
|
|
1750
|
-
...
|
|
1754
|
+
...nr.shape,
|
|
1751
1755
|
notification_type: e.string().enum(p.System)
|
|
1752
|
-
}),
|
|
1756
|
+
}), ir = e.object({
|
|
1753
1757
|
...f.shape,
|
|
1754
1758
|
...O.shape,
|
|
1755
1759
|
notification_type: e.string().enum(
|
|
@@ -1758,65 +1762,65 @@ const Hn = {
|
|
|
1758
1762
|
p.PostDeleted,
|
|
1759
1763
|
p.PostLiked
|
|
1760
1764
|
)
|
|
1761
|
-
}),
|
|
1765
|
+
}), or = e.object({
|
|
1762
1766
|
...f.shape,
|
|
1763
1767
|
...O.shape,
|
|
1764
1768
|
...q.shape,
|
|
1765
1769
|
notification_type: e.string().enum(p.PostCommented)
|
|
1766
|
-
}),
|
|
1770
|
+
}), ar = e.object({
|
|
1767
1771
|
...f.shape,
|
|
1768
1772
|
...q.shape,
|
|
1769
1773
|
...B.shape,
|
|
1770
1774
|
notification_type: e.string().enum(p.CommentReplied)
|
|
1771
|
-
}),
|
|
1775
|
+
}), sr = e.object({
|
|
1772
1776
|
...f.shape,
|
|
1773
1777
|
...q.shape,
|
|
1774
1778
|
...O.shape,
|
|
1775
1779
|
notification_type: e.string().enum(p.CommentLiked, p.CommentDeleted)
|
|
1776
|
-
}),
|
|
1780
|
+
}), cr = e.object({
|
|
1777
1781
|
...f.shape,
|
|
1778
1782
|
...B.shape,
|
|
1779
1783
|
notification_type: e.string().enum(p.ReplyReplied),
|
|
1780
1784
|
comment_id: e.number(),
|
|
1781
1785
|
reply_to_reply_id: e.number(),
|
|
1782
1786
|
reply_to_reply_content: e.string()
|
|
1783
|
-
}),
|
|
1787
|
+
}), ur = e.object({
|
|
1784
1788
|
...f.shape,
|
|
1785
1789
|
...B.shape,
|
|
1786
1790
|
...q.shape,
|
|
1787
1791
|
notification_type: e.string().enum(p.ReplyLiked, p.ReplyDeleted)
|
|
1788
|
-
}),
|
|
1789
|
-
tr,
|
|
1790
|
-
nr,
|
|
1792
|
+
}), lr = e.union(
|
|
1791
1793
|
rr,
|
|
1792
1794
|
ir,
|
|
1793
1795
|
or,
|
|
1794
1796
|
ar,
|
|
1795
|
-
sr
|
|
1796
|
-
|
|
1797
|
+
sr,
|
|
1798
|
+
cr,
|
|
1799
|
+
ur
|
|
1800
|
+
).satisfies().lock(), mr = s({ forums: e.array(se) }), dr = s({ topics: e.array(A) }), gr = s({ topic: A }), pr = s({ post: N }), J = s({
|
|
1797
1801
|
posts: e.array(N),
|
|
1798
1802
|
next_token: e.string().optional()
|
|
1799
|
-
}),
|
|
1803
|
+
}), _r = s({ post: N, antispam: ce }), br = s({
|
|
1800
1804
|
replies: e.array(T),
|
|
1801
1805
|
next_token: e.string().optional()
|
|
1802
|
-
}),
|
|
1806
|
+
}), yr = s({ reply: T }), fr = s({
|
|
1803
1807
|
reply: T.clone().optional(),
|
|
1804
1808
|
antispam: ce.clone().optional()
|
|
1805
|
-
}),
|
|
1809
|
+
}), hr = s({ comment: C }), wr = s({
|
|
1806
1810
|
comments: e.array(C),
|
|
1807
1811
|
next_token: e.string().optional()
|
|
1808
|
-
}),
|
|
1812
|
+
}), kr = s({
|
|
1809
1813
|
comment: C.clone().optional(),
|
|
1810
1814
|
antispam: C.clone().optional()
|
|
1811
|
-
}),
|
|
1812
|
-
notifications: e.array(
|
|
1815
|
+
}), vr = e.guard(tr), Cr = s({
|
|
1816
|
+
notifications: e.array(lr),
|
|
1813
1817
|
next_token: e.string().optional()
|
|
1814
|
-
}),
|
|
1818
|
+
}), Vr = s({
|
|
1815
1819
|
system: e.number(),
|
|
1816
1820
|
comment: e.number(),
|
|
1817
1821
|
like: e.number()
|
|
1818
1822
|
});
|
|
1819
|
-
class
|
|
1823
|
+
class Nr {
|
|
1820
1824
|
constructor(t) {
|
|
1821
1825
|
d(this, "token");
|
|
1822
1826
|
d(this, "req");
|
|
@@ -1828,7 +1832,7 @@ class Gr {
|
|
|
1828
1832
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=QaqUa2K0z0
|
|
1829
1833
|
*/
|
|
1830
1834
|
async getForums(t) {
|
|
1831
|
-
const { data: r } = await this.req.get("community/forums",
|
|
1835
|
+
const { data: r } = await this.req.get("community/forums", mr, t);
|
|
1832
1836
|
return (r == null ? void 0 : r.forums) || [];
|
|
1833
1837
|
}
|
|
1834
1838
|
/**
|
|
@@ -1837,7 +1841,7 @@ class Gr {
|
|
|
1837
1841
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=mIwpymAQom
|
|
1838
1842
|
*/
|
|
1839
1843
|
async getTopics(t) {
|
|
1840
|
-
const { data: r } = await this.req.get("community/topics",
|
|
1844
|
+
const { data: r } = await this.req.get("community/topics", dr, t);
|
|
1841
1845
|
return (r == null ? void 0 : r.topics) || [];
|
|
1842
1846
|
}
|
|
1843
1847
|
/**
|
|
@@ -1846,7 +1850,7 @@ class Gr {
|
|
|
1846
1850
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=Jvw7xMK31K
|
|
1847
1851
|
*/
|
|
1848
1852
|
async getTopic(t, r) {
|
|
1849
|
-
const { data: n, code: i } = await this.req.get("community/topic",
|
|
1853
|
+
const { data: n, code: i } = await this.req.get("community/topic", gr, {
|
|
1850
1854
|
...r,
|
|
1851
1855
|
params: { topic_id: t }
|
|
1852
1856
|
});
|
|
@@ -1888,7 +1892,7 @@ class Gr {
|
|
|
1888
1892
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=hj1AZy5rcP
|
|
1889
1893
|
*/
|
|
1890
1894
|
async getPost(t, r) {
|
|
1891
|
-
const { data: n, code: i, message: o } = await this.req.get("community/post",
|
|
1895
|
+
const { data: n, code: i, message: o } = await this.req.get("community/post", pr, {
|
|
1892
1896
|
...r,
|
|
1893
1897
|
params: { post_id: t }
|
|
1894
1898
|
});
|
|
@@ -1906,7 +1910,7 @@ class Gr {
|
|
|
1906
1910
|
const { data: n, code: i, message: o } = await this.req.post(
|
|
1907
1911
|
"community/post",
|
|
1908
1912
|
c(t),
|
|
1909
|
-
|
|
1913
|
+
_r,
|
|
1910
1914
|
r
|
|
1911
1915
|
);
|
|
1912
1916
|
return n ?? {
|
|
@@ -1920,7 +1924,7 @@ class Gr {
|
|
|
1920
1924
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=djKbX7lFdp
|
|
1921
1925
|
*/
|
|
1922
1926
|
async getComments(t, r) {
|
|
1923
|
-
const { data: n, code: i, message: o } = await this.req.get("community/comments",
|
|
1927
|
+
const { data: n, code: i, message: o } = await this.req.get("community/comments", wr, {
|
|
1924
1928
|
...r,
|
|
1925
1929
|
params: c(t)
|
|
1926
1930
|
});
|
|
@@ -1935,7 +1939,7 @@ class Gr {
|
|
|
1935
1939
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=RIc7oxVGae
|
|
1936
1940
|
*/
|
|
1937
1941
|
async getComment(t, r) {
|
|
1938
|
-
const { data: n, code: i, message: o } = await this.req.get("community/comment",
|
|
1942
|
+
const { data: n, code: i, message: o } = await this.req.get("community/comment", hr, {
|
|
1939
1943
|
...r,
|
|
1940
1944
|
params: { comment_id: t }
|
|
1941
1945
|
});
|
|
@@ -1954,7 +1958,7 @@ class Gr {
|
|
|
1954
1958
|
const { data: n, code: i, message: o } = await this.req.post(
|
|
1955
1959
|
"community/comment",
|
|
1956
1960
|
c(t),
|
|
1957
|
-
|
|
1961
|
+
kr,
|
|
1958
1962
|
r
|
|
1959
1963
|
);
|
|
1960
1964
|
return n ?? {
|
|
@@ -1968,7 +1972,7 @@ class Gr {
|
|
|
1968
1972
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=sVKBbY83MY
|
|
1969
1973
|
*/
|
|
1970
1974
|
async getReplies(t, r) {
|
|
1971
|
-
const { data: n } = await this.req.get("community/replies",
|
|
1975
|
+
const { data: n } = await this.req.get("community/replies", br, {
|
|
1972
1976
|
...r,
|
|
1973
1977
|
params: c({ max_results: 20, ...t })
|
|
1974
1978
|
});
|
|
@@ -1983,7 +1987,7 @@ class Gr {
|
|
|
1983
1987
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=kxhcSXD3MG
|
|
1984
1988
|
*/
|
|
1985
1989
|
async getReply(t, r) {
|
|
1986
|
-
const { data: n, code: i, message: o } = await this.req.get("community/reply",
|
|
1990
|
+
const { data: n, code: i, message: o } = await this.req.get("community/reply", yr, {
|
|
1987
1991
|
...r,
|
|
1988
1992
|
params: { reply_id: t }
|
|
1989
1993
|
});
|
|
@@ -2002,7 +2006,7 @@ class Gr {
|
|
|
2002
2006
|
const { data: n, code: i, message: o } = await this.req.post(
|
|
2003
2007
|
"community/reply",
|
|
2004
2008
|
c(t),
|
|
2005
|
-
|
|
2009
|
+
fr,
|
|
2006
2010
|
r
|
|
2007
2011
|
);
|
|
2008
2012
|
return n ?? {
|
|
@@ -2053,7 +2057,7 @@ class Gr {
|
|
|
2053
2057
|
*/
|
|
2054
2058
|
async getMediaPresignedUrl(t, r) {
|
|
2055
2059
|
await this.token.autoLogin();
|
|
2056
|
-
const { data: n } = await this.req.get("community/media-presign-url",
|
|
2060
|
+
const { data: n } = await this.req.get("community/media-presign-url", vr, {
|
|
2057
2061
|
...r,
|
|
2058
2062
|
params: t
|
|
2059
2063
|
});
|
|
@@ -2068,7 +2072,7 @@ class Gr {
|
|
|
2068
2072
|
*/
|
|
2069
2073
|
async getNotifications(t, r) {
|
|
2070
2074
|
await this.token.autoLogin();
|
|
2071
|
-
const { data: n } = await this.req.get("community/notifications",
|
|
2075
|
+
const { data: n } = await this.req.get("community/notifications", Cr, {
|
|
2072
2076
|
...r,
|
|
2073
2077
|
params: c({ max_results: 20, ...t })
|
|
2074
2078
|
});
|
|
@@ -2086,7 +2090,7 @@ class Gr {
|
|
|
2086
2090
|
if (!await this.token.autoLogin()) return null;
|
|
2087
2091
|
const { data: r } = await this.req.get(
|
|
2088
2092
|
"community/unread-notifications-count",
|
|
2089
|
-
|
|
2093
|
+
Vr,
|
|
2090
2094
|
t
|
|
2091
2095
|
);
|
|
2092
2096
|
return r;
|
|
@@ -2102,17 +2106,17 @@ class Gr {
|
|
|
2102
2106
|
return n;
|
|
2103
2107
|
}
|
|
2104
2108
|
}
|
|
2105
|
-
const
|
|
2109
|
+
const Rr = s({
|
|
2106
2110
|
nonce_str: e.string(),
|
|
2107
2111
|
timestamp: e.number(),
|
|
2108
2112
|
signature: e.string()
|
|
2109
2113
|
});
|
|
2110
|
-
var
|
|
2114
|
+
var jr = /* @__PURE__ */ ((a) => (a.RedirectUriDisMatch = "10003", a.AppidError = "10016", a.AuthorizationError = "10015", a.NoRightForScope = "10005", a.Frequently = "10009", a.AppBanded = "10004", a.ShouldFollow = "10006", a.ScopeNull = "10010", a.RedirectUriNull = "10011", a.AppidNull = "10012", a.StateNull = "10013", a))(jr || {});
|
|
2111
2115
|
function E(a) {
|
|
2112
|
-
return
|
|
2116
|
+
return V(a, "open_id", "union_id", "weixin_token");
|
|
2113
2117
|
}
|
|
2114
2118
|
const Z = "wx_login_cache";
|
|
2115
|
-
class
|
|
2119
|
+
class Or {
|
|
2116
2120
|
/**
|
|
2117
2121
|
* 创建微信相关功能接口
|
|
2118
2122
|
*
|
|
@@ -2252,7 +2256,7 @@ class Ar {
|
|
|
2252
2256
|
* https://kdocs.cn/l/cf2mO2uRLqh9?linkname=CuWOqxr9Ue
|
|
2253
2257
|
*/
|
|
2254
2258
|
async getJSSDKConfig(t) {
|
|
2255
|
-
const { data: r } = await this.req.get("weixin/offiaccount/jssdk-sign",
|
|
2259
|
+
const { data: r } = await this.req.get("weixin/offiaccount/jssdk-sign", Rr, {
|
|
2256
2260
|
...t,
|
|
2257
2261
|
params: {
|
|
2258
2262
|
appid: this.appid,
|
|
@@ -2269,19 +2273,19 @@ class Ar {
|
|
|
2269
2273
|
}
|
|
2270
2274
|
export {
|
|
2271
2275
|
ce as AntispamValidator,
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2276
|
+
Sr as AuthToken,
|
|
2277
|
+
cn as CashbackEngagementDataValidator,
|
|
2278
|
+
un as ClaimActivationKeyEngagementDataValidator,
|
|
2275
2279
|
b as ClaimRewardStatus,
|
|
2276
2280
|
U as ClaimRewardStatusValidator,
|
|
2277
|
-
|
|
2281
|
+
Pn as ClaimedItemValidator,
|
|
2278
2282
|
W as ClubAddressValidator,
|
|
2279
|
-
|
|
2283
|
+
Er as ClubApi,
|
|
2280
2284
|
ee as ClubBenefitSummaryValidator,
|
|
2281
2285
|
Ae as ClubBenefitValidator,
|
|
2282
2286
|
Te as ClubCreditChangeScene,
|
|
2283
2287
|
qe as ClubCreditChangeSceneValidator,
|
|
2284
|
-
|
|
2288
|
+
Re as ClubCreditChangeType,
|
|
2285
2289
|
je as ClubCreditChangeTypeValidator,
|
|
2286
2290
|
Ge as ClubCreditLogValidator,
|
|
2287
2291
|
Ee as ClubGlobalConfigValidator,
|
|
@@ -2293,20 +2297,20 @@ export {
|
|
|
2293
2297
|
Le as ClubRedemptionStatusValidator,
|
|
2294
2298
|
Ie as ClubUserCreditValidator,
|
|
2295
2299
|
De as ClubUserProfileValidator,
|
|
2296
|
-
|
|
2300
|
+
jn as CommentEngagementValidator,
|
|
2297
2301
|
C as CommentValidator,
|
|
2298
|
-
|
|
2302
|
+
Nr as CommunityApi,
|
|
2299
2303
|
We as EngageAccountType,
|
|
2300
2304
|
et as EngageAccountTypeValidator,
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
+
En as EngageResponseValidator,
|
|
2306
|
+
qn as EngageRewardValidator,
|
|
2307
|
+
Gr as EventApi,
|
|
2308
|
+
sn as EventConfigValidator,
|
|
2305
2309
|
bt as EventFeatureConfigOfCashbackValidator,
|
|
2306
2310
|
ft as EventFeatureConfigOfCheckInValidator,
|
|
2307
2311
|
wt as EventFeatureConfigOfClaimActivationKeyValidator,
|
|
2308
2312
|
vt as EventFeatureConfigOfClaimRewardsValidator,
|
|
2309
|
-
|
|
2313
|
+
Vt as EventFeatureConfigOfCommentValidator,
|
|
2310
2314
|
jt as EventFeatureConfigOfFollowValidator,
|
|
2311
2315
|
xt as EventFeatureConfigOfGiftCodeValidator,
|
|
2312
2316
|
Lt as EventFeatureConfigOfInviteValidator,
|
|
@@ -2321,7 +2325,7 @@ export {
|
|
|
2321
2325
|
Xt as EventFeatureConfigOfSurveyValidator,
|
|
2322
2326
|
Wt as EventFeatureConfigOfTeamValidator,
|
|
2323
2327
|
nn as EventFeatureConfigOfVoteValidator,
|
|
2324
|
-
|
|
2328
|
+
an as EventFeatureConfigValidator,
|
|
2325
2329
|
tt as EventPeriodType,
|
|
2326
2330
|
nt as EventPeriodTypeValidator,
|
|
2327
2331
|
D as EventRewardItemConfigValidator,
|
|
@@ -2330,84 +2334,84 @@ export {
|
|
|
2330
2334
|
pt as FeatureRewardValidator,
|
|
2331
2335
|
u as FeatureType,
|
|
2332
2336
|
rt as FeatureTypeValidator,
|
|
2333
|
-
|
|
2334
|
-
|
|
2337
|
+
Jn as ForumMode,
|
|
2338
|
+
Zn as ForumModeValidator,
|
|
2335
2339
|
se as ForumValidator,
|
|
2336
2340
|
j as GamerItemType,
|
|
2337
2341
|
ne as GamerItemTypeValidator,
|
|
2338
2342
|
Ce as Gender,
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2343
|
+
Ve as GenderValidator,
|
|
2344
|
+
ln as GiftCodeEngagementDataValidator,
|
|
2345
|
+
mn as InviteEngagementDataValidator,
|
|
2342
2346
|
mt as LotteryDrawAction,
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2347
|
+
Dr as LotteryDrawActionValidator,
|
|
2348
|
+
_n as LotteryDrawEngagementDataValidator,
|
|
2349
|
+
dn as LotteryEngagementDataValidator,
|
|
2346
2350
|
v as LotteryTicketStatus,
|
|
2347
|
-
|
|
2351
|
+
Ur as LotteryTicketStatusValidator,
|
|
2348
2352
|
f as NotificationBaseValidator,
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
+
Yn as NotificationCategory,
|
|
2354
|
+
Ar as NotificationCategoryValidator,
|
|
2355
|
+
ar as NotificationCommentReplyValidator,
|
|
2356
|
+
sr as NotificationCommentValidator,
|
|
2353
2357
|
q as NotificationPayloadCommentValidator,
|
|
2354
2358
|
O as NotificationPayloadPostValidator,
|
|
2355
2359
|
B as NotificationPayloadReplyValidator,
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2360
|
+
nr as NotificationPayloadSystemValidator,
|
|
2361
|
+
or as NotificationPostCommentValidator,
|
|
2362
|
+
ir as NotificationPostValidator,
|
|
2363
|
+
cr as NotificationReplyRepliedValidator,
|
|
2364
|
+
ur as NotificationReplyValidator,
|
|
2365
|
+
rr as NotificationSystemValidator,
|
|
2362
2366
|
p as NotificationType,
|
|
2363
|
-
|
|
2364
|
-
|
|
2367
|
+
Wn as NotificationTypeValidator,
|
|
2368
|
+
lr as NotificationValidator,
|
|
2365
2369
|
Fe as PlayerRoleCardValidator,
|
|
2366
2370
|
Y as PlayerRoleValidator,
|
|
2367
|
-
|
|
2371
|
+
Xn as PostStatus,
|
|
2368
2372
|
ae as PostStatusValidator,
|
|
2369
2373
|
N as PostValidator,
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2374
|
+
bn as PreregisterEngagementDataValidator,
|
|
2375
|
+
tr as PresignedUrlResponseValidator,
|
|
2376
|
+
yn as QuestEngagementDataValidator,
|
|
2373
2377
|
it as QuestObjective,
|
|
2374
2378
|
ie as QuestObjectiveValidator,
|
|
2375
|
-
|
|
2379
|
+
Lr as RedeemParamsValidator,
|
|
2376
2380
|
Be as RedemptionValidator,
|
|
2377
2381
|
gt as RegularRewardValidator,
|
|
2378
|
-
|
|
2382
|
+
er as ReplyToValidator,
|
|
2379
2383
|
T as ReplyValidator,
|
|
2380
|
-
|
|
2384
|
+
Pr as RewardItemType,
|
|
2381
2385
|
re as RewardItemTypeValidator,
|
|
2382
2386
|
st as RewardSource,
|
|
2383
2387
|
F as RewardSourceValidator,
|
|
2384
2388
|
_ as RewardStatus,
|
|
2385
2389
|
$ as RewardStatusSuffix,
|
|
2386
2390
|
oe as RewardStatusSuffixValidator,
|
|
2387
|
-
|
|
2388
|
-
|
|
2391
|
+
$r as RewardStatusValidator,
|
|
2392
|
+
Tn as RewardValidator,
|
|
2389
2393
|
Ue as RoleBaseInfoValidator,
|
|
2390
2394
|
$e as ServerBaseInfoValidator,
|
|
2391
|
-
|
|
2392
|
-
|
|
2395
|
+
fn as ShareEngagementDataValidator,
|
|
2396
|
+
wn as SurveyEngagementDataValidator,
|
|
2393
2397
|
lt as TeamAction,
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
+
Fr as TeamActionValidator,
|
|
2399
|
+
vn as TeamEngagementDataValidator,
|
|
2400
|
+
kn as TeamEngagementValidator,
|
|
2401
|
+
Ir as TeamMemberValidator,
|
|
2398
2402
|
ct as TeamVisibility,
|
|
2399
2403
|
ut as TeamVisibilityValidator,
|
|
2400
2404
|
A as TopicValidator,
|
|
2401
2405
|
G as UserEngagementDataValidator,
|
|
2402
|
-
|
|
2403
|
-
|
|
2406
|
+
xn as UserEngagementValidator,
|
|
2407
|
+
Ln as UserFeatureStatusValidator,
|
|
2404
2408
|
I as UserRewardValidator,
|
|
2405
|
-
|
|
2406
|
-
|
|
2409
|
+
Sn as VerifyMobileResultValidator,
|
|
2410
|
+
Cn as VoteEngagementDataValidator,
|
|
2407
2411
|
ot as VoteOptionSource,
|
|
2408
2412
|
at as VoteOptionSourceValidator,
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
+
Or as WeixinApi,
|
|
2414
|
+
hn as WeixinSubscribeEngagementDataValidator,
|
|
2415
|
+
jr as WeixinWebLoginErrorCode,
|
|
2416
|
+
Rr as isWeixinSignResponse
|
|
2413
2417
|
};
|
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.5.
|
|
4
|
+
"version": "2.5.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "index.ts",
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^22.13.1",
|
|
33
33
|
"@seayoo-web/combo-webview": "^2.5.4",
|
|
34
|
-
"@seayoo-web/
|
|
34
|
+
"@seayoo-web/scripts": "^2.6.0",
|
|
35
35
|
"@seayoo-web/tsconfig": "^1.0.4",
|
|
36
36
|
"@seayoo-web/request": "^3.2.0",
|
|
37
|
-
"@seayoo-web/
|
|
37
|
+
"@seayoo-web/utils": "^3.6.1"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"@seayoo-web/combo-webview": "^2.5.4",
|
|
@@ -17,6 +17,7 @@ import { type EventFeatureConfigOfSubscribe } from "./feature.subscribe";
|
|
|
17
17
|
import { type EventFeatureConfigOfSurvey } from "./feature.survey";
|
|
18
18
|
import { type EventFeatureConfigOfTeam } from "./feature.team";
|
|
19
19
|
import { type EventFeatureConfigOfVote } from "./feature.vote";
|
|
20
|
+
import { type EventFeatureConfigOfZeroChatgpt } from "./feature.zeroChatgpt";
|
|
20
21
|
export * from "./feature.cashback";
|
|
21
22
|
export * from "./feature.checkIn";
|
|
22
23
|
export * from "./feature.claimRewards";
|
|
@@ -36,5 +37,5 @@ export * from "./feature.survey";
|
|
|
36
37
|
export * from "./feature.team";
|
|
37
38
|
export * from "./feature.vote";
|
|
38
39
|
export * from "./feature.claimActivationKey";
|
|
39
|
-
export type EventFeatureConfig = EventFeatureConfigOfCashback | EventFeatureConfigOfCheckIn | EventFeatureConfigOfClaimRewards | EventFeatureConfigOfComment | EventFeatureConfigOfFollow | EventFeatureConfigOfGiftCode | EventFeatureConfigOfInvite | EventFeatureConfigOfInvitedRegister | EventFeatureConfigOfLottery | EventFeatureConfigOfLotteryDraw | EventFeatureConfigOfPreregister | EventFeatureConfigOfQuest | EventFeatureConfigOfRegister | EventFeatureConfigOfShare | EventFeatureConfigOfSubscribe | EventFeatureConfigOfSurvey | EventFeatureConfigOfTeam | EventFeatureConfigOfVote | EventFeatureConfigOfClaimActivationKey;
|
|
40
|
-
export declare const EventFeatureConfigValidator: import("@seayoo-web/utils").UnionValidator<[import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfCashback, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfCheckIn, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfClaimRewards, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfComment, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfFollow, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfGiftCode, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfInvite, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfInvitedRegister, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfLottery, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfLotteryDraw, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfPreregister, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfQuest, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfRegister, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfShare, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfSubscribe, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfSurvey, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfTeam, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfVote, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfClaimActivationKey, false, false>], false, false>;
|
|
40
|
+
export type EventFeatureConfig = EventFeatureConfigOfCashback | EventFeatureConfigOfCheckIn | EventFeatureConfigOfClaimRewards | EventFeatureConfigOfComment | EventFeatureConfigOfFollow | EventFeatureConfigOfGiftCode | EventFeatureConfigOfInvite | EventFeatureConfigOfInvitedRegister | EventFeatureConfigOfLottery | EventFeatureConfigOfLotteryDraw | EventFeatureConfigOfPreregister | EventFeatureConfigOfQuest | EventFeatureConfigOfRegister | EventFeatureConfigOfShare | EventFeatureConfigOfSubscribe | EventFeatureConfigOfSurvey | EventFeatureConfigOfTeam | EventFeatureConfigOfVote | EventFeatureConfigOfClaimActivationKey | EventFeatureConfigOfZeroChatgpt;
|
|
41
|
+
export declare const EventFeatureConfigValidator: import("@seayoo-web/utils").UnionValidator<[import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfCashback, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfCheckIn, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfClaimRewards, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfComment, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfFollow, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfGiftCode, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfInvite, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfInvitedRegister, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfLottery, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfLotteryDraw, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfPreregister, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfQuest, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfRegister, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfShare, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfSubscribe, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfSurvey, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfTeam, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfVote, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfClaimActivationKey, false, false>, import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfZeroChatgpt, false, false>], false, false>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type EventFeatureBaseConfig } from "./feature.base";
|
|
2
|
+
declare const featureType: "zero_chatgpt";
|
|
3
|
+
export type EventFeatureConfigOfZeroChatgpt = EventFeatureBaseConfig & {
|
|
4
|
+
feature_type: typeof featureType;
|
|
5
|
+
};
|
|
6
|
+
export declare const EventFeatureConfigOfZeroChatgptValidator: import("@seayoo-web/utils").ObjectValidator<EventFeatureConfigOfZeroChatgpt, false, false>;
|
|
7
|
+
export {};
|