@seayoo-web/gamer-api 2.15.4 → 2.15.6
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 +308 -268
- package/package.json +6 -6
- package/types/src/event.d.ts +14 -1
- package/types/src/event.engage/engage.ugc.d.ts +16 -7
- package/types/src/event.guards.d.ts +1 -0
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isComboWebView as de } from "@seayoo-web/combo-webview";
|
|
2
|
-
import { isPlainObject as h, supportWx as _, useConsole as ge, usePromise as pe, pruneURL as _e, supportWindow as be, queryString as S, pruneObject as c, omitFields as U, parseJSON as ye, removePara as
|
|
2
|
+
import { isPlainObject as h, supportWx as _, useConsole as ge, usePromise as pe, pruneURL as _e, supportWindow as be, queryString as S, pruneObject as c, omitFields as U, parseJSON as ye, removePara as O } from "@seayoo-web/utils";
|
|
3
3
|
import { v as e, objectGuard as s } from "@seayoo-web/validator";
|
|
4
4
|
function he(i) {
|
|
5
5
|
return h(i, "gamer_token") && typeof i.gamer_token == "string";
|
|
@@ -7,7 +7,7 @@ function he(i) {
|
|
|
7
7
|
function fe(i) {
|
|
8
8
|
return h(i, "gamer_token", "game_id") && typeof i.gamer_token == "string" && typeof i.game_id == "string";
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function N(i) {
|
|
11
11
|
return h(i);
|
|
12
12
|
}
|
|
13
13
|
const j = ge("GamerApiSDK");
|
|
@@ -59,7 +59,7 @@ const ve = {
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
}, f = "gamer_token";
|
|
62
|
-
class
|
|
62
|
+
class ha {
|
|
63
63
|
$NetRequest;
|
|
64
64
|
$idToken = "";
|
|
65
65
|
$weixinToken = "";
|
|
@@ -224,7 +224,7 @@ class ba {
|
|
|
224
224
|
*/
|
|
225
225
|
async getSession() {
|
|
226
226
|
if (!await this.autoLogin()) return null;
|
|
227
|
-
const { data: t } = await this.req.get("session",
|
|
227
|
+
const { data: t } = await this.req.get("session", N, {
|
|
228
228
|
message: !1
|
|
229
229
|
});
|
|
230
230
|
return t;
|
|
@@ -236,7 +236,7 @@ class ba {
|
|
|
236
236
|
*/
|
|
237
237
|
async authRealName(t) {
|
|
238
238
|
if (!await this.autoLogin()) return null;
|
|
239
|
-
const { data: n } = await this.req.post("auth-real-name", c(t),
|
|
239
|
+
const { data: n } = await this.req.post("auth-real-name", c(t), N);
|
|
240
240
|
return n;
|
|
241
241
|
}
|
|
242
242
|
}
|
|
@@ -274,7 +274,7 @@ const Ce = {
|
|
|
274
274
|
Physical: "physical",
|
|
275
275
|
/** 虚拟商品 */
|
|
276
276
|
Virtual: "virtual"
|
|
277
|
-
},
|
|
277
|
+
}, J = e.string().enum(Le).lock(), Se = {
|
|
278
278
|
/** 待发放 */
|
|
279
279
|
Pending: "pending",
|
|
280
280
|
/** 已发放 */
|
|
@@ -314,13 +314,13 @@ const Ce = {
|
|
|
314
314
|
}).lock(), Fe = e.object({
|
|
315
315
|
role_id: e.string(),
|
|
316
316
|
role_name: e.string()
|
|
317
|
-
}).lock(),
|
|
317
|
+
}).lock(), Z = e.object({
|
|
318
318
|
...Fe.shape,
|
|
319
319
|
...$e.shape,
|
|
320
320
|
role_level: e.number(),
|
|
321
321
|
last_login_time: e.number()
|
|
322
322
|
}).lock(), Ie = e.object({
|
|
323
|
-
...
|
|
323
|
+
...Z.shape,
|
|
324
324
|
/** 角色战力 */
|
|
325
325
|
role_fighting: e.number(),
|
|
326
326
|
/** 宗门 ID */
|
|
@@ -341,7 +341,7 @@ const Ce = {
|
|
|
341
341
|
homepage_image_url: e.string()
|
|
342
342
|
}).optional()
|
|
343
343
|
).optional()
|
|
344
|
-
}).lock(),
|
|
344
|
+
}).lock(), X = e.object({
|
|
345
345
|
address_id: e.number(),
|
|
346
346
|
recipient: e.string(),
|
|
347
347
|
mobile: e.string(),
|
|
@@ -363,7 +363,7 @@ const Ce = {
|
|
|
363
363
|
balance: e.number(),
|
|
364
364
|
change_time: e.number(),
|
|
365
365
|
metadata: e.record(e.unknown()).optional()
|
|
366
|
-
}).lock(),
|
|
366
|
+
}).lock(), Y = e.object({
|
|
367
367
|
benefit_id: e.number(),
|
|
368
368
|
name: e.string(),
|
|
369
369
|
img_url: e.string(),
|
|
@@ -372,11 +372,11 @@ const Ce = {
|
|
|
372
372
|
max_level: e.number(),
|
|
373
373
|
product_id: e.number(),
|
|
374
374
|
tag: e.string()
|
|
375
|
-
}).lock(),
|
|
375
|
+
}).lock(), W = e.object({
|
|
376
376
|
product_id: e.number(),
|
|
377
377
|
catalog_id: e.number(),
|
|
378
378
|
catalog_name: e.string(),
|
|
379
|
-
item_type:
|
|
379
|
+
item_type: J,
|
|
380
380
|
name: e.string(),
|
|
381
381
|
img_url: e.string(),
|
|
382
382
|
description: e.string(),
|
|
@@ -399,9 +399,9 @@ const Ce = {
|
|
|
399
399
|
updated_at: e.number(),
|
|
400
400
|
redeemable_quantity: e.number().optional()
|
|
401
401
|
}).lock(), Oe = e.object({
|
|
402
|
-
...U(
|
|
403
|
-
product:
|
|
404
|
-
}).lock(),
|
|
402
|
+
...U(Y.shape, "tag"),
|
|
403
|
+
product: W.clone().optional()
|
|
404
|
+
}).lock(), fa = e.union(
|
|
405
405
|
e.object({
|
|
406
406
|
server_id: e.string(),
|
|
407
407
|
role_id: e.string()
|
|
@@ -428,7 +428,7 @@ const Ce = {
|
|
|
428
428
|
product_id: e.number(),
|
|
429
429
|
name: e.string(),
|
|
430
430
|
img_url: e.string(),
|
|
431
|
-
item_type:
|
|
431
|
+
item_type: J,
|
|
432
432
|
catalog_id: e.number(),
|
|
433
433
|
catalog_name: e.string(),
|
|
434
434
|
quantity: e.number(),
|
|
@@ -436,10 +436,10 @@ const Ce = {
|
|
|
436
436
|
status: Ue,
|
|
437
437
|
created_at: e.number(),
|
|
438
438
|
extra_data: e.union(Ne.clone(), Qe.clone()).satisfies().optional()
|
|
439
|
-
}), Me = e.guard(Pe),
|
|
439
|
+
}), Me = e.guard(Pe), Q = s({ player: Ee }), Ke = s({ roles: e.array(Z) }), T = s({ role_card: Ie }), B = e.guard(De), M = e.guard(X), He = s({ addresses: e.array(X) }), ze = e.guard(Ae), Je = s({
|
|
440
440
|
credit_logs: e.array(Ge),
|
|
441
441
|
next_token: e.string().optional()
|
|
442
|
-
}), Ze = s({ products: e.array(
|
|
442
|
+
}), Ze = s({ products: e.array(W) }), Xe = s({ benefits: e.array(Y) }), Ye = s({ benefit: Oe }), We = s({
|
|
443
443
|
redemptions: e.array(Be),
|
|
444
444
|
next_token: e.string().optional()
|
|
445
445
|
}), et = s({
|
|
@@ -447,7 +447,7 @@ const Ce = {
|
|
|
447
447
|
image_upload_url: e.string().optional(),
|
|
448
448
|
image_id: e.string()
|
|
449
449
|
});
|
|
450
|
-
class
|
|
450
|
+
class wa {
|
|
451
451
|
token;
|
|
452
452
|
req;
|
|
453
453
|
constructor(t) {
|
|
@@ -470,7 +470,7 @@ class ha {
|
|
|
470
470
|
*/
|
|
471
471
|
async getCurrentPlayer(t) {
|
|
472
472
|
await this.token.autoLogin();
|
|
473
|
-
const { data: n, code: r, message: a } = await this.req.get("club/current-player",
|
|
473
|
+
const { data: n, code: r, message: a } = await this.req.get("club/current-player", Q, t);
|
|
474
474
|
return n?.player ?? {
|
|
475
475
|
message: a,
|
|
476
476
|
error: r
|
|
@@ -486,7 +486,7 @@ class ha {
|
|
|
486
486
|
const { data: n, code: r, message: a } = await this.req.post(
|
|
487
487
|
"club/link-player",
|
|
488
488
|
{ id_token: this.token.idToken },
|
|
489
|
-
|
|
489
|
+
Q,
|
|
490
490
|
t
|
|
491
491
|
);
|
|
492
492
|
return n?.player ?? {
|
|
@@ -547,7 +547,7 @@ class ha {
|
|
|
547
547
|
*/
|
|
548
548
|
async getUserProfile(t, n) {
|
|
549
549
|
await this.token.autoLogin();
|
|
550
|
-
const { data: r } = await this.req.get("club/user-profile",
|
|
550
|
+
const { data: r } = await this.req.get("club/user-profile", B, {
|
|
551
551
|
...n,
|
|
552
552
|
params: { member_id: t }
|
|
553
553
|
});
|
|
@@ -562,7 +562,7 @@ class ha {
|
|
|
562
562
|
if (Object.keys(t).length === 0)
|
|
563
563
|
return { error: "OptionIsEmpty", message: "请提供需要修改的信息" };
|
|
564
564
|
await this.token.autoLogin();
|
|
565
|
-
const { data: r, code: a, message: o } = await this.req.post("club/user-profile", t,
|
|
565
|
+
const { data: r, code: a, message: o } = await this.req.post("club/user-profile", t, B, n);
|
|
566
566
|
return r ?? {
|
|
567
567
|
message: o,
|
|
568
568
|
error: a
|
|
@@ -588,7 +588,7 @@ class ha {
|
|
|
588
588
|
const { data: r, code: a, message: o } = await this.req.post(
|
|
589
589
|
"/club/add-address",
|
|
590
590
|
c(t),
|
|
591
|
-
|
|
591
|
+
M,
|
|
592
592
|
n
|
|
593
593
|
);
|
|
594
594
|
return r ?? {
|
|
@@ -606,7 +606,7 @@ class ha {
|
|
|
606
606
|
const { data: r, code: a, message: o } = await this.req.post(
|
|
607
607
|
"club/update-address",
|
|
608
608
|
c(t),
|
|
609
|
-
|
|
609
|
+
M,
|
|
610
610
|
n
|
|
611
611
|
);
|
|
612
612
|
return r ?? {
|
|
@@ -763,7 +763,7 @@ const v = {
|
|
|
763
763
|
ExternalCode: "external_gift_code",
|
|
764
764
|
/** 空奖励 */
|
|
765
765
|
VoidItem: "void_item"
|
|
766
|
-
},
|
|
766
|
+
}, ee = e.string().enum(v).lock(), ka = v, te = ee, tt = {
|
|
767
767
|
/** 世游通行证 ID / Combo ID */
|
|
768
768
|
UserId: "user_id",
|
|
769
769
|
/** 游戏角色 ID */
|
|
@@ -849,14 +849,14 @@ const v = {
|
|
|
849
849
|
OrderAmountInApp: "order_in_app_total_amount",
|
|
850
850
|
/** 支付中心充值金额 */
|
|
851
851
|
OrderAmountInPayCenter: "order_seayoo_web_total_amount"
|
|
852
|
-
},
|
|
852
|
+
}, ne = e.string().enum(it).lock(), st = {
|
|
853
853
|
/** 官方上传 */
|
|
854
854
|
System: "system",
|
|
855
855
|
/** 用户投稿 */
|
|
856
856
|
UserSubmission: "user_submission",
|
|
857
857
|
/** 投票入围 */
|
|
858
858
|
Shortlisted: "shortlisted"
|
|
859
|
-
}, ct = e.string().enum(st).lock(),
|
|
859
|
+
}, ct = e.string().enum(st).lock(), g = {
|
|
860
860
|
/** 未获得奖励 */
|
|
861
861
|
Ineligible: "ineligible",
|
|
862
862
|
/** 奖励未领取 */
|
|
@@ -867,26 +867,26 @@ const v = {
|
|
|
867
867
|
Failed: "failed",
|
|
868
868
|
/** 奖励已发货 */
|
|
869
869
|
Delivered: "delivered"
|
|
870
|
-
},
|
|
870
|
+
}, va = e.string().enum(g).lock(), ut = {
|
|
871
871
|
/** 奖励未领取 */
|
|
872
|
-
Unclaimed:
|
|
872
|
+
Unclaimed: g.Unclaimed,
|
|
873
873
|
/** 奖励已领取 */
|
|
874
|
-
Received:
|
|
874
|
+
Received: g.Received,
|
|
875
875
|
/** 奖励发放失败 */
|
|
876
|
-
Failed:
|
|
876
|
+
Failed: g.Failed,
|
|
877
877
|
/** 奖励已发货 */
|
|
878
|
-
Delivered:
|
|
879
|
-
},
|
|
878
|
+
Delivered: g.Delivered
|
|
879
|
+
}, re = e.string().enum(ut).lock(), lt = {
|
|
880
880
|
/** 未获得奖励 */
|
|
881
|
-
Ineligible:
|
|
881
|
+
Ineligible: g.Ineligible,
|
|
882
882
|
/** 奖励未领取 */
|
|
883
|
-
Unclaimed:
|
|
883
|
+
Unclaimed: g.Unclaimed,
|
|
884
884
|
/** 奖励已领取 */
|
|
885
|
-
Received:
|
|
885
|
+
Received: g.Received,
|
|
886
886
|
/** 奖励发放失败 */
|
|
887
|
-
Failed:
|
|
887
|
+
Failed: g.Failed,
|
|
888
888
|
/** 奖励已发货 */
|
|
889
|
-
Delivered:
|
|
889
|
+
Delivered: g.Delivered
|
|
890
890
|
}, P = e.string().enum(lt).lock(), mt = {
|
|
891
891
|
/** 玩法产出奖励 */
|
|
892
892
|
Output: "output",
|
|
@@ -908,7 +908,7 @@ const v = {
|
|
|
908
908
|
Claimed: "claimed",
|
|
909
909
|
/** 领奖失败 */
|
|
910
910
|
Fail: "fail"
|
|
911
|
-
},
|
|
911
|
+
}, Ra = e.string().enum(w).lock(), pt = {
|
|
912
912
|
/** 发起组队 */
|
|
913
913
|
Assemble: "assemble",
|
|
914
914
|
/** 加入队伍 */
|
|
@@ -919,14 +919,14 @@ const v = {
|
|
|
919
919
|
ChangeVisibility: "change_visibility",
|
|
920
920
|
/** 查询组队信息 */
|
|
921
921
|
Query: "query"
|
|
922
|
-
},
|
|
922
|
+
}, Ca = e.string().enum(pt).lock(), _t = {
|
|
923
923
|
/** 查询抽奖券 */
|
|
924
924
|
Query: "query",
|
|
925
925
|
/** 开奖 */
|
|
926
926
|
Draw: "draw",
|
|
927
927
|
/** 领奖 */
|
|
928
928
|
Claim: "claim"
|
|
929
|
-
},
|
|
929
|
+
}, Va = e.string().enum(_t).lock(), bt = {
|
|
930
930
|
/** 将所有队员的进度值求和,作为队伍进度值 */
|
|
931
931
|
Sum: "sum",
|
|
932
932
|
/** 以进度值倒序排名第 N 的队员的进度值,作为队伍进度值。如果队伍人数不足 N,则队伍进度值为 0。N 的值来自于配置字段 top_n */
|
|
@@ -953,7 +953,7 @@ const v = {
|
|
|
953
953
|
Huya: "huya",
|
|
954
954
|
/** 斗鱼 */
|
|
955
955
|
Douyu: "douyu"
|
|
956
|
-
},
|
|
956
|
+
}, $ = e.string().enum(wt).lock(), kt = {
|
|
957
957
|
/** 已提交 */
|
|
958
958
|
Submitted: "submitted",
|
|
959
959
|
/** 已接收 */
|
|
@@ -1082,7 +1082,7 @@ const v = {
|
|
|
1082
1082
|
...l.shape,
|
|
1083
1083
|
feature_type: e.string().enum(Wt),
|
|
1084
1084
|
config: e.object({
|
|
1085
|
-
objective:
|
|
1085
|
+
objective: ne,
|
|
1086
1086
|
completion_value: e.number(),
|
|
1087
1087
|
team: e.object({
|
|
1088
1088
|
feature_id: e.number().optional(),
|
|
@@ -1247,7 +1247,7 @@ const v = {
|
|
|
1247
1247
|
reward_item_id: e.number(),
|
|
1248
1248
|
reward_source: E,
|
|
1249
1249
|
reward_item_name: e.string(),
|
|
1250
|
-
reward_item_type:
|
|
1250
|
+
reward_item_type: ee,
|
|
1251
1251
|
reward_item_icon_url: e.string(),
|
|
1252
1252
|
reward_item_desc: e.string().optional(),
|
|
1253
1253
|
reward_item_rating: e.number(),
|
|
@@ -1282,7 +1282,7 @@ const v = {
|
|
|
1282
1282
|
is_myself: e.bool().optional(),
|
|
1283
1283
|
progress: e.number().optional()
|
|
1284
1284
|
}).lock(), In = e.object({
|
|
1285
|
-
objective:
|
|
1285
|
+
objective: ne,
|
|
1286
1286
|
progress: e.number(),
|
|
1287
1287
|
completion_value: e.number().optional(),
|
|
1288
1288
|
team: e.object({
|
|
@@ -1318,7 +1318,7 @@ const v = {
|
|
|
1318
1318
|
team_code: e.string(),
|
|
1319
1319
|
leader_name: e.string(),
|
|
1320
1320
|
total_members: e.number()
|
|
1321
|
-
}),
|
|
1321
|
+
}), ja = e.object({
|
|
1322
1322
|
is_leader: e.bool(),
|
|
1323
1323
|
is_myself: e.bool().optional(),
|
|
1324
1324
|
role_name: e.string(),
|
|
@@ -1338,9 +1338,29 @@ const v = {
|
|
|
1338
1338
|
title: e.string(),
|
|
1339
1339
|
content: e.string().optional(),
|
|
1340
1340
|
image_urls: e.array(e.string()).optional(),
|
|
1341
|
-
social_media:
|
|
1341
|
+
social_media: $.clone().optional(),
|
|
1342
1342
|
social_media_url: e.string().optional()
|
|
1343
1343
|
}), Hn = e.object({
|
|
1344
|
+
ugcs: e.array(
|
|
1345
|
+
e.object({
|
|
1346
|
+
ugc_id: e.number(),
|
|
1347
|
+
event_id: e.number().optional(),
|
|
1348
|
+
feature_id: e.number().optional(),
|
|
1349
|
+
title: e.string(),
|
|
1350
|
+
content: e.string().optional(),
|
|
1351
|
+
image_urls: e.array(e.string()).optional(),
|
|
1352
|
+
social_media: $.clone().optional(),
|
|
1353
|
+
social_media_url: e.string().optional(),
|
|
1354
|
+
server_id: e.number().optional(),
|
|
1355
|
+
server_name: e.string().optional(),
|
|
1356
|
+
role_id: e.string().optional(),
|
|
1357
|
+
role_name: e.string().optional(),
|
|
1358
|
+
total_likes: e.number().optional(),
|
|
1359
|
+
created_at: e.number()
|
|
1360
|
+
})
|
|
1361
|
+
).optional(),
|
|
1362
|
+
next_token: e.string().optional()
|
|
1363
|
+
}), zn = e.object({
|
|
1344
1364
|
ugcs: e.array(
|
|
1345
1365
|
e.object({
|
|
1346
1366
|
ugc_id: e.number(),
|
|
@@ -1352,7 +1372,7 @@ const v = {
|
|
|
1352
1372
|
title: e.string(),
|
|
1353
1373
|
content: e.string().optional(),
|
|
1354
1374
|
image_urls: e.array(e.string()).optional(),
|
|
1355
|
-
social_media:
|
|
1375
|
+
social_media: $.clone().optional(),
|
|
1356
1376
|
social_media_url: e.string().optional(),
|
|
1357
1377
|
server_id: e.number().optional(),
|
|
1358
1378
|
server_name: e.string().optional(),
|
|
@@ -1363,13 +1383,13 @@ const v = {
|
|
|
1363
1383
|
})
|
|
1364
1384
|
).optional(),
|
|
1365
1385
|
next_token: e.string().optional()
|
|
1366
|
-
}), zn = e.object({
|
|
1367
|
-
total_count: e.number()
|
|
1368
1386
|
}), Jn = e.object({
|
|
1387
|
+
total_count: e.number()
|
|
1388
|
+
}), Zn = e.object({
|
|
1369
1389
|
existed: e.bool(),
|
|
1370
1390
|
upload_url: e.string().optional(),
|
|
1371
1391
|
image_url: e.string()
|
|
1372
|
-
}),
|
|
1392
|
+
}), Xn = e.object({
|
|
1373
1393
|
ugcs: e.array(
|
|
1374
1394
|
e.object({
|
|
1375
1395
|
ugc_id: e.number(),
|
|
@@ -1382,41 +1402,41 @@ const v = {
|
|
|
1382
1402
|
role_name: e.string().optional()
|
|
1383
1403
|
})
|
|
1384
1404
|
).optional()
|
|
1385
|
-
}), Xn = e.object({
|
|
1386
|
-
option_sn: e.string()
|
|
1387
1405
|
}), Yn = e.object({
|
|
1406
|
+
option_sn: e.string()
|
|
1407
|
+
}), Wn = e.object({
|
|
1388
1408
|
candidate_id: e.string(),
|
|
1389
1409
|
total_votes: e.number().optional(),
|
|
1390
1410
|
my_votes: e.number().optional(),
|
|
1391
1411
|
votes: e.number().optional()
|
|
1392
|
-
}),
|
|
1412
|
+
}), er = e.object({
|
|
1393
1413
|
rewards_type: ft,
|
|
1394
1414
|
rewards: e.array(R).optional()
|
|
1395
|
-
}),
|
|
1415
|
+
}), tr = e.object({
|
|
1396
1416
|
candidate_id: e.string(),
|
|
1397
1417
|
is_winner: e.bool(),
|
|
1398
1418
|
total_votes: e.number(),
|
|
1399
1419
|
my_votes: e.number()
|
|
1400
|
-
}),
|
|
1420
|
+
}), nr = e.object({
|
|
1401
1421
|
role: e.string(),
|
|
1402
1422
|
content: e.string()
|
|
1403
|
-
}), nr = e.object({
|
|
1404
|
-
conversations: e.array(tr)
|
|
1405
1423
|
}), rr = e.object({
|
|
1424
|
+
conversations: e.array(nr)
|
|
1425
|
+
}), ar = e.object({
|
|
1406
1426
|
user_id: e.string(),
|
|
1407
1427
|
name: e.string(),
|
|
1408
1428
|
avatar_url: e.string(),
|
|
1409
1429
|
comment: e.string(),
|
|
1410
1430
|
video_note: e.number(),
|
|
1411
1431
|
created_at: e.number()
|
|
1412
|
-
}),
|
|
1432
|
+
}), F = e.union(
|
|
1413
1433
|
Fn,
|
|
1414
1434
|
Un,
|
|
1415
1435
|
Qn,
|
|
1416
1436
|
Sn,
|
|
1417
1437
|
On,
|
|
1418
|
-
Xn,
|
|
1419
1438
|
Yn,
|
|
1439
|
+
Wn,
|
|
1420
1440
|
Nn,
|
|
1421
1441
|
ae,
|
|
1422
1442
|
Ln,
|
|
@@ -1424,104 +1444,104 @@ const v = {
|
|
|
1424
1444
|
In,
|
|
1425
1445
|
$n,
|
|
1426
1446
|
xn,
|
|
1427
|
-
|
|
1447
|
+
rr,
|
|
1428
1448
|
Kn,
|
|
1429
1449
|
An,
|
|
1430
1450
|
e.custom(
|
|
1431
1451
|
"EmptyObject",
|
|
1432
1452
|
(i) => h(i) && Object.keys(i).length === 0
|
|
1433
1453
|
)
|
|
1434
|
-
).satisfies().lock(),
|
|
1454
|
+
).satisfies().lock(), or = e.object({
|
|
1435
1455
|
reward_id: e.number(),
|
|
1436
1456
|
reward_item_id: e.number(),
|
|
1437
|
-
reward_item_type:
|
|
1457
|
+
reward_item_type: te,
|
|
1438
1458
|
reward_count: e.number(),
|
|
1439
|
-
reward_status:
|
|
1459
|
+
reward_status: re,
|
|
1440
1460
|
reward_source: E,
|
|
1441
1461
|
reward_item_name: e.string(),
|
|
1442
1462
|
reward_item_icon_url: e.string(),
|
|
1443
1463
|
reward_item_desc: e.string().optional(),
|
|
1444
1464
|
reward_item_rating: e.number(),
|
|
1445
1465
|
receive_time: e.number(),
|
|
1446
|
-
extra_data: e.union(
|
|
1447
|
-
}),
|
|
1466
|
+
extra_data: e.union(...F.validators, e.record(e.unknown())).satisfies().optional()
|
|
1467
|
+
}), ir = e.object({
|
|
1448
1468
|
reward_id: e.number(),
|
|
1449
1469
|
reward_item_id: e.number(),
|
|
1450
1470
|
reward_item_name: e.string(),
|
|
1451
|
-
reward_item_type:
|
|
1471
|
+
reward_item_type: te,
|
|
1452
1472
|
reward_item_icon_url: e.string(),
|
|
1453
1473
|
reward_item_desc: e.string().optional(),
|
|
1454
1474
|
reward_item_rating: e.number(),
|
|
1455
1475
|
reward_amount: e.number(),
|
|
1456
|
-
reward_status:
|
|
1476
|
+
reward_status: re,
|
|
1457
1477
|
reward_source: E,
|
|
1458
1478
|
extra_data: e.record(e.unknown()).optional()
|
|
1459
|
-
}),
|
|
1479
|
+
}), sr = e.object({
|
|
1460
1480
|
engagement_id: e.number(),
|
|
1461
1481
|
user_id: e.string(),
|
|
1462
1482
|
event_id: e.number(),
|
|
1463
1483
|
feature_id: e.number(),
|
|
1464
1484
|
sequence: e.number(),
|
|
1465
|
-
data:
|
|
1485
|
+
data: F.clone().optional(),
|
|
1466
1486
|
server_id: e.string().optional(),
|
|
1467
1487
|
role_id: e.string().optional(),
|
|
1468
1488
|
created_at: e.number(),
|
|
1469
|
-
rewards: e.array(
|
|
1470
|
-
}).lock(),
|
|
1489
|
+
rewards: e.array(or).optional()
|
|
1490
|
+
}).lock(), cr = e.object({
|
|
1471
1491
|
allowed: e.bool(),
|
|
1472
1492
|
registered: e.bool()
|
|
1473
|
-
}),
|
|
1493
|
+
}), ur = e.object({
|
|
1474
1494
|
feature_id: e.number(),
|
|
1475
1495
|
can_engage: e.bool(),
|
|
1476
1496
|
has_unclaimed_rewards: e.bool(),
|
|
1477
1497
|
final_available_count: e.number(),
|
|
1478
1498
|
total_remaining_engagements: e.number(),
|
|
1479
1499
|
cycle_remaining_engagements: e.number()
|
|
1480
|
-
}),
|
|
1500
|
+
}), lr = e.object({
|
|
1481
1501
|
engagement_id: e.number(),
|
|
1482
1502
|
engagement: e.object({
|
|
1483
1503
|
engagement_id: e.number(),
|
|
1484
1504
|
sequence: e.number(),
|
|
1485
1505
|
feature_id: e.number(),
|
|
1486
|
-
data:
|
|
1506
|
+
data: F.clone().optional()
|
|
1487
1507
|
}).optional(),
|
|
1488
|
-
rewards: e.array(
|
|
1508
|
+
rewards: e.array(ir).optional(),
|
|
1489
1509
|
scan: e.bool().optional()
|
|
1490
|
-
}),
|
|
1510
|
+
}), mr = e.object({
|
|
1491
1511
|
reward_id: e.number(),
|
|
1492
1512
|
reward_status: P
|
|
1493
|
-
}),
|
|
1494
|
-
engagements: e.union(e.array(
|
|
1495
|
-
}), _r = s({
|
|
1496
|
-
status: e.array(cr)
|
|
1513
|
+
}), dr = e.guard(qn), gr = e.guard(cr), x = s({ count: e.number() }), pr = s({ first_visit: e.bool() }), _r = s({
|
|
1514
|
+
engagements: e.union(e.array(ar), e.array(Bn))
|
|
1497
1515
|
}), br = s({
|
|
1498
|
-
|
|
1516
|
+
status: e.array(ur)
|
|
1499
1517
|
}), yr = s({
|
|
1500
|
-
|
|
1518
|
+
engagements_counts: e.record(e.number())
|
|
1519
|
+
}), hr = s({
|
|
1520
|
+
engagements: e.array(sr),
|
|
1501
1521
|
next_token: e.string().optional()
|
|
1502
|
-
}),
|
|
1503
|
-
claimed_items: e.array(
|
|
1504
|
-
}), wr = s({
|
|
1505
|
-
rewards: e.array(R)
|
|
1522
|
+
}), fr = e.guard(lr), wr = s({
|
|
1523
|
+
claimed_items: e.array(mr)
|
|
1506
1524
|
}), kr = s({
|
|
1507
|
-
|
|
1525
|
+
rewards: e.array(R)
|
|
1508
1526
|
}), vr = s({
|
|
1527
|
+
reward_status: P
|
|
1528
|
+
}), Rr = s({
|
|
1509
1529
|
user_rewards: e.array(R),
|
|
1510
1530
|
next_token: e.string().optional()
|
|
1511
|
-
}), Rr = s({
|
|
1512
|
-
unclaimed: e.number()
|
|
1513
1531
|
}), Cr = s({
|
|
1514
|
-
|
|
1532
|
+
unclaimed: e.number()
|
|
1515
1533
|
}), Vr = s({
|
|
1516
|
-
|
|
1534
|
+
scene: e.string()
|
|
1517
1535
|
}), jr = s({
|
|
1536
|
+
params: e.string()
|
|
1537
|
+
}), Tr = s({
|
|
1518
1538
|
img: e.string()
|
|
1519
|
-
}),
|
|
1539
|
+
}), qr = e.guard(Dn), xr = e.guard(er), Lr = e.guard(
|
|
1520
1540
|
e.object({
|
|
1521
|
-
candidate_votes: e.array(
|
|
1541
|
+
candidate_votes: e.array(tr)
|
|
1522
1542
|
})
|
|
1523
|
-
),
|
|
1524
|
-
class
|
|
1543
|
+
), Sr = e.guard(ae), K = e.guard(zn), Ur = e.guard(Hn), Pr = e.guard(Jn), Er = e.guard(Zn), $r = e.guard(Xn), Fr = e.guard(Gn);
|
|
1544
|
+
class Ta {
|
|
1525
1545
|
token;
|
|
1526
1546
|
event = 0;
|
|
1527
1547
|
req;
|
|
@@ -1534,7 +1554,7 @@ class Va {
|
|
|
1534
1554
|
* https://kdocs.cn/l/cf2mO2uRLqh9?linkname=OWGSPF3Ysl
|
|
1535
1555
|
*/
|
|
1536
1556
|
async verifyMobileAllowed(t, n, r) {
|
|
1537
|
-
const { data: a } = await this.req.get("verify-mobile-allowed",
|
|
1557
|
+
const { data: a } = await this.req.get("verify-mobile-allowed", gr, {
|
|
1538
1558
|
...r,
|
|
1539
1559
|
params: { game_id: t, mobile: n }
|
|
1540
1560
|
});
|
|
@@ -1546,7 +1566,7 @@ class Va {
|
|
|
1546
1566
|
* https://kdocs.cn/l/ckWFDcOsYEUA?linkname=wFXxtdNKPm
|
|
1547
1567
|
*/
|
|
1548
1568
|
async getConfig(t) {
|
|
1549
|
-
const { data: n } = await this.req.get(`event/${this.event}/event-config`,
|
|
1569
|
+
const { data: n } = await this.req.get(`event/${this.event}/event-config`, dr, t);
|
|
1550
1570
|
return n;
|
|
1551
1571
|
}
|
|
1552
1572
|
/**
|
|
@@ -1581,7 +1601,7 @@ class Va {
|
|
|
1581
1601
|
* https://kdocs.cn/l/ckWFDcOsYEUA?linkname=THtZ4ewIQW
|
|
1582
1602
|
*/
|
|
1583
1603
|
async getEngagements(t, n) {
|
|
1584
|
-
const { data: r } = await this.req.get(`event/${this.event}/feature-engagements`,
|
|
1604
|
+
const { data: r } = await this.req.get(`event/${this.event}/feature-engagements`, _r, {
|
|
1585
1605
|
...n,
|
|
1586
1606
|
params: { feature_id: t }
|
|
1587
1607
|
});
|
|
@@ -1597,7 +1617,7 @@ class Va {
|
|
|
1597
1617
|
const { data: r, code: a, message: o } = await this.req.post(
|
|
1598
1618
|
`event/${this.event}/visit`,
|
|
1599
1619
|
c(t || {}),
|
|
1600
|
-
|
|
1620
|
+
pr,
|
|
1601
1621
|
n
|
|
1602
1622
|
);
|
|
1603
1623
|
return r ?? {
|
|
@@ -1614,7 +1634,7 @@ class Va {
|
|
|
1614
1634
|
*/
|
|
1615
1635
|
async getUserFeatureStatus(t, n) {
|
|
1616
1636
|
if (!await this.token.autoLogin()) return [];
|
|
1617
|
-
const { data: r } = await this.req.get("event/user-feature-status",
|
|
1637
|
+
const { data: r } = await this.req.get("event/user-feature-status", br, {
|
|
1618
1638
|
...n,
|
|
1619
1639
|
message: !1,
|
|
1620
1640
|
params: c({ ...t, event_id: this.event })
|
|
@@ -1628,7 +1648,7 @@ class Va {
|
|
|
1628
1648
|
*/
|
|
1629
1649
|
async getUserEngagementCount(t, n) {
|
|
1630
1650
|
if (!await this.token.autoLogin()) return {};
|
|
1631
|
-
const { data: r } = await this.req.get("event/user-engagements-count",
|
|
1651
|
+
const { data: r } = await this.req.get("event/user-engagements-count", yr, {
|
|
1632
1652
|
message: !1,
|
|
1633
1653
|
params: c({ ...n, event_id: this.event, feature_id: t })
|
|
1634
1654
|
});
|
|
@@ -1647,7 +1667,7 @@ class Va {
|
|
|
1647
1667
|
engagements: [],
|
|
1648
1668
|
next_token: ""
|
|
1649
1669
|
};
|
|
1650
|
-
const { data: a } = await this.req.get("event/user-engagements",
|
|
1670
|
+
const { data: a } = await this.req.get("event/user-engagements", hr, {
|
|
1651
1671
|
...r,
|
|
1652
1672
|
params: c({
|
|
1653
1673
|
max_results: 20,
|
|
@@ -1672,19 +1692,19 @@ class Va {
|
|
|
1672
1692
|
*/
|
|
1673
1693
|
async engage(t, n, r, a) {
|
|
1674
1694
|
await this.token.autoLogin();
|
|
1675
|
-
const { data: o, code:
|
|
1695
|
+
const { data: o, code: d, message: p } = await this.req.post(
|
|
1676
1696
|
`event/${this.event}/engage`,
|
|
1677
1697
|
c({
|
|
1678
1698
|
feature_id: t,
|
|
1679
1699
|
engagement: n,
|
|
1680
1700
|
...r
|
|
1681
1701
|
}),
|
|
1682
|
-
|
|
1702
|
+
fr,
|
|
1683
1703
|
a
|
|
1684
1704
|
);
|
|
1685
1705
|
return o ?? {
|
|
1686
1706
|
message: p,
|
|
1687
|
-
error:
|
|
1707
|
+
error: d
|
|
1688
1708
|
};
|
|
1689
1709
|
}
|
|
1690
1710
|
/**
|
|
@@ -1702,7 +1722,7 @@ class Va {
|
|
|
1702
1722
|
...t,
|
|
1703
1723
|
server_id: t.server_id ? +t.server_id : void 0
|
|
1704
1724
|
}),
|
|
1705
|
-
|
|
1725
|
+
wr,
|
|
1706
1726
|
n
|
|
1707
1727
|
);
|
|
1708
1728
|
return r?.claimed_items || {
|
|
@@ -1723,7 +1743,7 @@ class Va {
|
|
|
1723
1743
|
...t,
|
|
1724
1744
|
server_id: t.server_id ? +t.server_id : void 0
|
|
1725
1745
|
}),
|
|
1726
|
-
|
|
1746
|
+
kr,
|
|
1727
1747
|
n
|
|
1728
1748
|
);
|
|
1729
1749
|
return r?.rewards || {
|
|
@@ -1741,7 +1761,7 @@ class Va {
|
|
|
1741
1761
|
const { data: r, code: a, message: o } = await this.req.post(
|
|
1742
1762
|
"event/claim-weixin-hongbao",
|
|
1743
1763
|
{ reward_id: t },
|
|
1744
|
-
|
|
1764
|
+
vr,
|
|
1745
1765
|
n
|
|
1746
1766
|
);
|
|
1747
1767
|
return r || {
|
|
@@ -1782,7 +1802,7 @@ class Va {
|
|
|
1782
1802
|
const { data: r } = await this.req.post(
|
|
1783
1803
|
"event/user-rewards",
|
|
1784
1804
|
c({ max_results: 20, ...t, event_id: this.event }),
|
|
1785
|
-
|
|
1805
|
+
Rr,
|
|
1786
1806
|
n
|
|
1787
1807
|
);
|
|
1788
1808
|
return {
|
|
@@ -1800,7 +1820,7 @@ class Va {
|
|
|
1800
1820
|
return {
|
|
1801
1821
|
unclaimed: 0
|
|
1802
1822
|
};
|
|
1803
|
-
const { data: r } = await this.req.get("event/user-rewards-count",
|
|
1823
|
+
const { data: r } = await this.req.get("event/user-rewards-count", Cr, {
|
|
1804
1824
|
...n,
|
|
1805
1825
|
params: c({ ...t })
|
|
1806
1826
|
});
|
|
@@ -1848,7 +1868,7 @@ class Va {
|
|
|
1848
1868
|
*/
|
|
1849
1869
|
async getUnlimitQrcodeScene(t, n) {
|
|
1850
1870
|
if (!await this.token.autoLogin()) return null;
|
|
1851
|
-
const { data: r } = await this.req.get("event/unlimit-qrcode-scene",
|
|
1871
|
+
const { data: r } = await this.req.get("event/unlimit-qrcode-scene", Vr, {
|
|
1852
1872
|
...n,
|
|
1853
1873
|
params: { params: t }
|
|
1854
1874
|
});
|
|
@@ -1862,7 +1882,7 @@ class Va {
|
|
|
1862
1882
|
* @param scene - 小程序码 scene 值
|
|
1863
1883
|
*/
|
|
1864
1884
|
async getParamsByQrcodeScene(t, n) {
|
|
1865
|
-
const { data: r } = await this.req.get("event/params-by-qrcode-scene",
|
|
1885
|
+
const { data: r } = await this.req.get("event/params-by-qrcode-scene", jr, {
|
|
1866
1886
|
...n,
|
|
1867
1887
|
params: { scene: t }
|
|
1868
1888
|
});
|
|
@@ -1878,7 +1898,7 @@ class Va {
|
|
|
1878
1898
|
const { data: r } = await this.req.post(
|
|
1879
1899
|
"event/unlimit-qrcode",
|
|
1880
1900
|
c(t),
|
|
1881
|
-
|
|
1901
|
+
Tr,
|
|
1882
1902
|
n
|
|
1883
1903
|
);
|
|
1884
1904
|
return r?.img ?? null;
|
|
@@ -1890,7 +1910,7 @@ class Va {
|
|
|
1890
1910
|
*/
|
|
1891
1911
|
async getQuestProgress(t, n) {
|
|
1892
1912
|
if (!await this.token.autoLogin()) return null;
|
|
1893
|
-
const { data: r, code: a, message: o } = await this.req.get(`event/${this.event}/quest-progress`,
|
|
1913
|
+
const { data: r, code: a, message: o } = await this.req.get(`event/${this.event}/quest-progress`, qr, {
|
|
1894
1914
|
message: !1,
|
|
1895
1915
|
...n,
|
|
1896
1916
|
params: { feature_id: t }
|
|
@@ -1912,7 +1932,7 @@ class Va {
|
|
|
1912
1932
|
const { data: r, code: a, message: o } = await this.req.post(
|
|
1913
1933
|
"event/vote2/rewards",
|
|
1914
1934
|
{ feature_id: t, event_id: this.event },
|
|
1915
|
-
|
|
1935
|
+
xr,
|
|
1916
1936
|
n
|
|
1917
1937
|
);
|
|
1918
1938
|
return r || {
|
|
@@ -1927,7 +1947,7 @@ class Va {
|
|
|
1927
1947
|
*/
|
|
1928
1948
|
async getVote2Leaderboard(t, n) {
|
|
1929
1949
|
if (!await this.token.autoLogin()) return [];
|
|
1930
|
-
const { data: r } = await this.req.get("event/vote2/leaderboard",
|
|
1950
|
+
const { data: r } = await this.req.get("event/vote2/leaderboard", Lr, {
|
|
1931
1951
|
...n,
|
|
1932
1952
|
params: { feature_id: t, event_id: this.event }
|
|
1933
1953
|
});
|
|
@@ -1940,7 +1960,7 @@ class Va {
|
|
|
1940
1960
|
*/
|
|
1941
1961
|
async getCashbackQuery(t, n) {
|
|
1942
1962
|
if (!await this.token.autoLogin()) return null;
|
|
1943
|
-
const { data: r, code: a, message: o } = await this.req.get("event/cashback/query",
|
|
1963
|
+
const { data: r, code: a, message: o } = await this.req.get("event/cashback/query", Sr, {
|
|
1944
1964
|
...n,
|
|
1945
1965
|
params: { feature_id: t, event_id: this.event }
|
|
1946
1966
|
});
|
|
@@ -1956,7 +1976,7 @@ class Va {
|
|
|
1956
1976
|
*/
|
|
1957
1977
|
async getUgcRecord(t, n) {
|
|
1958
1978
|
if (!await this.token.autoLogin()) return null;
|
|
1959
|
-
const { data: r, code: a, message: o } = await this.req.get("event/ugc/my",
|
|
1979
|
+
const { data: r, code: a, message: o } = await this.req.get("event/ugc/my", K, {
|
|
1960
1980
|
...n,
|
|
1961
1981
|
params: {
|
|
1962
1982
|
max_results: 20,
|
|
@@ -1975,7 +1995,7 @@ class Va {
|
|
|
1975
1995
|
*/
|
|
1976
1996
|
async getUgcMyCount(t, n) {
|
|
1977
1997
|
if (!await this.token.autoLogin()) return null;
|
|
1978
|
-
const { data: r, code: a, message: o } = await this.req.get("event/ugc/my-count",
|
|
1998
|
+
const { data: r, code: a, message: o } = await this.req.get("event/ugc/my-count", Pr, {
|
|
1979
1999
|
...n,
|
|
1980
2000
|
params: {
|
|
1981
2001
|
...t
|
|
@@ -1997,14 +2017,14 @@ class Va {
|
|
|
1997
2017
|
*/
|
|
1998
2018
|
async ugcUploadImage(t, n, r) {
|
|
1999
2019
|
if (!await this.token.autoLogin()) return null;
|
|
2000
|
-
const { data: a, code: o, message:
|
|
2020
|
+
const { data: a, code: o, message: d } = await this.req.post(
|
|
2001
2021
|
"event/ugc/upload-image",
|
|
2002
2022
|
{ feature_id: t, ...n, event_id: this.event },
|
|
2003
|
-
|
|
2023
|
+
Er,
|
|
2004
2024
|
r
|
|
2005
2025
|
);
|
|
2006
2026
|
return a || {
|
|
2007
|
-
message:
|
|
2027
|
+
message: d,
|
|
2008
2028
|
error: o
|
|
2009
2029
|
};
|
|
2010
2030
|
}
|
|
@@ -2014,8 +2034,7 @@ class Va {
|
|
|
2014
2034
|
* https://www.kdocs.cn/l/ckWFDcOsYEUA?linkname=WzvcAPjHAh
|
|
2015
2035
|
*/
|
|
2016
2036
|
async getUgcRecommendation(t, n) {
|
|
2017
|
-
|
|
2018
|
-
const { data: r, code: a, message: o } = await this.req.get("event/ugc/recommendation", M, {
|
|
2037
|
+
const { data: r, code: a, message: o } = await this.req.get("event/ugc/recommendation", K, {
|
|
2019
2038
|
...n,
|
|
2020
2039
|
params: {
|
|
2021
2040
|
feature_id: t,
|
|
@@ -2027,6 +2046,26 @@ class Va {
|
|
|
2027
2046
|
error: a
|
|
2028
2047
|
};
|
|
2029
2048
|
}
|
|
2049
|
+
/**
|
|
2050
|
+
* 用于查询指定活动玩法下,所有已被接收 (review_status = accepted) 的用户投稿内容列表,默认按照投稿时间倒序。
|
|
2051
|
+
*
|
|
2052
|
+
* https://www.kdocs.cn/l/ckWFDcOsYEUA?linkname=VRYN6d3rbd
|
|
2053
|
+
*/
|
|
2054
|
+
async getUgcs(t, n, r) {
|
|
2055
|
+
const { data: a, code: o, message: d } = await this.req.get("event/ugc/ugcs", Ur, {
|
|
2056
|
+
...r,
|
|
2057
|
+
params: {
|
|
2058
|
+
event_id: this.event,
|
|
2059
|
+
feature_id: t,
|
|
2060
|
+
max_results: 20,
|
|
2061
|
+
...n
|
|
2062
|
+
}
|
|
2063
|
+
});
|
|
2064
|
+
return a || {
|
|
2065
|
+
message: d,
|
|
2066
|
+
error: o
|
|
2067
|
+
};
|
|
2068
|
+
}
|
|
2030
2069
|
/**
|
|
2031
2070
|
* 获取指定活动玩法的 UGC 投稿排行榜数据
|
|
2032
2071
|
*
|
|
@@ -2039,7 +2078,7 @@ class Va {
|
|
|
2039
2078
|
*/
|
|
2040
2079
|
async getUgcLeaderboard(t, n) {
|
|
2041
2080
|
if (!await this.token.autoLogin()) return null;
|
|
2042
|
-
const { data: r, code: a, message: o } = await this.req.get("event/ugc/leaderboard",
|
|
2081
|
+
const { data: r, code: a, message: o } = await this.req.get("event/ugc/leaderboard", $r, {
|
|
2043
2082
|
...n,
|
|
2044
2083
|
params: {
|
|
2045
2084
|
feature_id: t,
|
|
@@ -2058,7 +2097,7 @@ class Va {
|
|
|
2058
2097
|
*/
|
|
2059
2098
|
async getRedeemItemStocks(t, n) {
|
|
2060
2099
|
if (!await this.token.autoLogin()) return null;
|
|
2061
|
-
const { data: r, code: a, message: o } = await this.req.get("event/redeem/item-stocks",
|
|
2100
|
+
const { data: r, code: a, message: o } = await this.req.get("event/redeem/item-stocks", Fr, {
|
|
2062
2101
|
...n,
|
|
2063
2102
|
params: {
|
|
2064
2103
|
event_id: this.event,
|
|
@@ -2071,12 +2110,12 @@ class Va {
|
|
|
2071
2110
|
};
|
|
2072
2111
|
}
|
|
2073
2112
|
}
|
|
2074
|
-
const
|
|
2113
|
+
const Ir = {
|
|
2075
2114
|
/** 所有人均可以发帖 */
|
|
2076
2115
|
All: "all",
|
|
2077
2116
|
/** 指定用户可发帖 */
|
|
2078
2117
|
Limit: "limit"
|
|
2079
|
-
},
|
|
2118
|
+
}, Dr = e.string().enum(Ir).lock(), Ar = {
|
|
2080
2119
|
/** 待审核(仅自己可见) */
|
|
2081
2120
|
Pending: "pending",
|
|
2082
2121
|
/** 审核通过 */
|
|
@@ -2085,14 +2124,14 @@ const $r = {
|
|
|
2085
2124
|
Failed: "failed",
|
|
2086
2125
|
/** 嫌疑(仅自己可见) */
|
|
2087
2126
|
Suspect: "suspect"
|
|
2088
|
-
}, ie = e.string().enum(
|
|
2127
|
+
}, ie = e.string().enum(Ar).lock(), Gr = {
|
|
2089
2128
|
/** 系统通知 */
|
|
2090
2129
|
System: "system",
|
|
2091
2130
|
/** 评论我的 */
|
|
2092
2131
|
Comment: "comment",
|
|
2093
2132
|
/** 点赞通知 */
|
|
2094
2133
|
Like: "like"
|
|
2095
|
-
},
|
|
2134
|
+
}, qa = e.string().enum(Gr).lock(), m = {
|
|
2096
2135
|
/** 系统通知 */
|
|
2097
2136
|
System: "system",
|
|
2098
2137
|
/** 帖子被置顶 */
|
|
@@ -2117,22 +2156,22 @@ const $r = {
|
|
|
2117
2156
|
ReplyLiked: "reply_liked",
|
|
2118
2157
|
/** 回复被删除 */
|
|
2119
2158
|
ReplyDeleted: "reply_deleted"
|
|
2120
|
-
},
|
|
2159
|
+
}, Or = e.string().enum(m).lock(), se = e.object({
|
|
2121
2160
|
forum_id: e.number(),
|
|
2122
2161
|
icon_url: e.string(),
|
|
2123
2162
|
name: e.string(),
|
|
2124
2163
|
tags: e.array(e.string()),
|
|
2125
2164
|
sort: e.number(),
|
|
2126
|
-
mode:
|
|
2165
|
+
mode: Dr,
|
|
2127
2166
|
member_ids: e.array(e.number())
|
|
2128
|
-
}).lock(),
|
|
2167
|
+
}).lock(), I = e.object({
|
|
2129
2168
|
topic_id: e.number(),
|
|
2130
2169
|
cover_url: e.string(),
|
|
2131
2170
|
name: e.string(),
|
|
2132
2171
|
description: e.string(),
|
|
2133
2172
|
tags: e.array(e.string()),
|
|
2134
2173
|
post_num: e.number()
|
|
2135
|
-
}).lock(),
|
|
2174
|
+
}).lock(), D = e.object({
|
|
2136
2175
|
post_id: e.number(),
|
|
2137
2176
|
forum: se,
|
|
2138
2177
|
posted_by: e.string(),
|
|
@@ -2146,7 +2185,7 @@ const $r = {
|
|
|
2146
2185
|
comments_num: e.number(),
|
|
2147
2186
|
liked: e.bool(),
|
|
2148
2187
|
image_urls: e.array(e.string()),
|
|
2149
|
-
topics: e.array(
|
|
2188
|
+
topics: e.array(I),
|
|
2150
2189
|
event_ids: e.array(e.number()),
|
|
2151
2190
|
is_pinned: e.bool(),
|
|
2152
2191
|
is_highlighted: e.bool(),
|
|
@@ -2154,7 +2193,7 @@ const $r = {
|
|
|
2154
2193
|
create_time: e.number()
|
|
2155
2194
|
}).lock(), ce = e.object({
|
|
2156
2195
|
err_msg: e.string().optional()
|
|
2157
|
-
}).optional().lock(),
|
|
2196
|
+
}).optional().lock(), Nr = e.object({
|
|
2158
2197
|
reply_id: e.number(),
|
|
2159
2198
|
reply_content: e.string().optional(),
|
|
2160
2199
|
replied_by: e.string(),
|
|
@@ -2173,7 +2212,7 @@ const $r = {
|
|
|
2173
2212
|
content: e.string(),
|
|
2174
2213
|
like_num: e.number(),
|
|
2175
2214
|
liked: e.bool(),
|
|
2176
|
-
reply_to:
|
|
2215
|
+
reply_to: Nr,
|
|
2177
2216
|
create_time: e.number()
|
|
2178
2217
|
}).lock(), k = e.object({
|
|
2179
2218
|
comment_id: e.number(),
|
|
@@ -2195,22 +2234,22 @@ const $r = {
|
|
|
2195
2234
|
create_time: e.number(),
|
|
2196
2235
|
status: ie,
|
|
2197
2236
|
replies: e.array(C).optional()
|
|
2198
|
-
}).lock(),
|
|
2237
|
+
}).lock(), Qr = e.object({
|
|
2199
2238
|
image_url: e.string(),
|
|
2200
2239
|
upload_url: e.string(),
|
|
2201
2240
|
existed: e.bool()
|
|
2202
2241
|
}).lock(), y = e.object({
|
|
2203
2242
|
notification_id: e.string(),
|
|
2204
|
-
notification_type:
|
|
2243
|
+
notification_type: Or,
|
|
2205
2244
|
is_read: e.bool(),
|
|
2206
2245
|
create_time: e.number(),
|
|
2207
2246
|
origin_user_id: e.string(),
|
|
2208
2247
|
origin_user_name: e.string(),
|
|
2209
2248
|
origin_user_avatar_url: e.string()
|
|
2210
|
-
}).lock(),
|
|
2249
|
+
}).lock(), Br = e.object({
|
|
2211
2250
|
system_message_subject: e.string(),
|
|
2212
2251
|
system_message_content: e.string()
|
|
2213
|
-
}).lock(),
|
|
2252
|
+
}).lock(), A = e.object({
|
|
2214
2253
|
post_id: e.number(),
|
|
2215
2254
|
post_subject: e.string(),
|
|
2216
2255
|
post_summary: e.string(),
|
|
@@ -2218,84 +2257,84 @@ const $r = {
|
|
|
2218
2257
|
}).lock(), V = e.object({
|
|
2219
2258
|
comment_id: e.number(),
|
|
2220
2259
|
comment_content: e.string()
|
|
2221
|
-
}).lock(),
|
|
2260
|
+
}).lock(), G = e.object({
|
|
2222
2261
|
reply_id: e.number(),
|
|
2223
2262
|
reply_content: e.string()
|
|
2224
|
-
}).lock(),
|
|
2263
|
+
}).lock(), Mr = e.object({
|
|
2225
2264
|
...y.shape,
|
|
2226
|
-
...
|
|
2265
|
+
...Br.shape,
|
|
2227
2266
|
notification_type: e.string().enum(m.System)
|
|
2228
|
-
}),
|
|
2267
|
+
}), Kr = e.object({
|
|
2229
2268
|
...y.shape,
|
|
2230
|
-
...
|
|
2269
|
+
...A.shape,
|
|
2231
2270
|
notification_type: e.string().enum(
|
|
2232
2271
|
m.PostPinned,
|
|
2233
2272
|
m.PostHighlighted,
|
|
2234
2273
|
m.PostDeleted,
|
|
2235
2274
|
m.PostLiked
|
|
2236
2275
|
)
|
|
2237
|
-
}),
|
|
2276
|
+
}), Hr = e.object({
|
|
2238
2277
|
...y.shape,
|
|
2239
|
-
...
|
|
2278
|
+
...A.shape,
|
|
2240
2279
|
...V.shape,
|
|
2241
2280
|
notification_type: e.string().enum(m.PostCommented)
|
|
2242
|
-
}),
|
|
2281
|
+
}), zr = e.object({
|
|
2243
2282
|
...y.shape,
|
|
2244
2283
|
...V.shape,
|
|
2245
|
-
...
|
|
2284
|
+
...G.shape,
|
|
2246
2285
|
notification_type: e.string().enum(m.CommentReplied)
|
|
2247
|
-
}),
|
|
2286
|
+
}), Jr = e.object({
|
|
2248
2287
|
...y.shape,
|
|
2249
2288
|
...V.shape,
|
|
2250
|
-
...
|
|
2289
|
+
...A.shape,
|
|
2251
2290
|
notification_type: e.string().enum(m.CommentLiked, m.CommentDeleted)
|
|
2252
|
-
}),
|
|
2291
|
+
}), Zr = e.object({
|
|
2253
2292
|
...y.shape,
|
|
2254
|
-
...
|
|
2293
|
+
...G.shape,
|
|
2255
2294
|
notification_type: e.string().enum(m.ReplyReplied),
|
|
2256
2295
|
comment_id: e.number(),
|
|
2257
2296
|
reply_to_reply_id: e.number(),
|
|
2258
2297
|
reply_to_reply_content: e.string()
|
|
2259
|
-
}),
|
|
2298
|
+
}), Xr = e.object({
|
|
2260
2299
|
...y.shape,
|
|
2261
|
-
...
|
|
2300
|
+
...G.shape,
|
|
2262
2301
|
...V.shape,
|
|
2263
2302
|
notification_type: e.string().enum(m.ReplyLiked, m.ReplyDeleted)
|
|
2264
|
-
}),
|
|
2265
|
-
Qr,
|
|
2266
|
-
Br,
|
|
2303
|
+
}), Yr = e.union(
|
|
2267
2304
|
Mr,
|
|
2268
2305
|
Kr,
|
|
2269
2306
|
Hr,
|
|
2270
2307
|
zr,
|
|
2271
|
-
Jr
|
|
2272
|
-
|
|
2273
|
-
|
|
2308
|
+
Jr,
|
|
2309
|
+
Zr,
|
|
2310
|
+
Xr
|
|
2311
|
+
).satisfies().lock(), Wr = s({ forums: e.array(se) }), ea = s({ topics: e.array(I) }), ta = s({ topic: I }), na = s({ post: D }), H = s({
|
|
2312
|
+
posts: e.array(D),
|
|
2274
2313
|
next_token: e.string().optional()
|
|
2275
|
-
}),
|
|
2276
|
-
post:
|
|
2314
|
+
}), ra = s({
|
|
2315
|
+
post: D.clone().optional(),
|
|
2277
2316
|
antispam: ce.clone().optional()
|
|
2278
|
-
}),
|
|
2317
|
+
}), aa = s({
|
|
2279
2318
|
replies: e.array(C),
|
|
2280
2319
|
next_token: e.string().optional()
|
|
2281
|
-
}),
|
|
2320
|
+
}), oa = s({ reply: C }), ia = s({
|
|
2282
2321
|
reply: C.clone().optional(),
|
|
2283
2322
|
antispam: ce.clone().optional()
|
|
2284
|
-
}),
|
|
2323
|
+
}), sa = s({ comment: k }), ca = s({
|
|
2285
2324
|
comments: e.array(k),
|
|
2286
2325
|
next_token: e.string().optional()
|
|
2287
|
-
}),
|
|
2326
|
+
}), ua = s({
|
|
2288
2327
|
comment: k.clone().optional(),
|
|
2289
2328
|
antispam: k.clone().optional()
|
|
2290
|
-
}),
|
|
2291
|
-
notifications: e.array(
|
|
2329
|
+
}), la = e.guard(Qr), ma = s({
|
|
2330
|
+
notifications: e.array(Yr),
|
|
2292
2331
|
next_token: e.string().optional()
|
|
2293
|
-
}),
|
|
2332
|
+
}), da = s({
|
|
2294
2333
|
system: e.number(),
|
|
2295
2334
|
comment: e.number(),
|
|
2296
2335
|
like: e.number()
|
|
2297
2336
|
});
|
|
2298
|
-
class
|
|
2337
|
+
class xa {
|
|
2299
2338
|
token;
|
|
2300
2339
|
req;
|
|
2301
2340
|
constructor(t) {
|
|
@@ -2307,7 +2346,7 @@ class Ta {
|
|
|
2307
2346
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=QaqUa2K0z0
|
|
2308
2347
|
*/
|
|
2309
2348
|
async getForums(t) {
|
|
2310
|
-
const { data: n } = await this.req.get("community/forums",
|
|
2349
|
+
const { data: n } = await this.req.get("community/forums", Wr, t);
|
|
2311
2350
|
return n?.forums || [];
|
|
2312
2351
|
}
|
|
2313
2352
|
/**
|
|
@@ -2316,7 +2355,7 @@ class Ta {
|
|
|
2316
2355
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=mIwpymAQom
|
|
2317
2356
|
*/
|
|
2318
2357
|
async getTopics(t) {
|
|
2319
|
-
const { data: n } = await this.req.get("community/topics",
|
|
2358
|
+
const { data: n } = await this.req.get("community/topics", ea, t);
|
|
2320
2359
|
return n?.topics || [];
|
|
2321
2360
|
}
|
|
2322
2361
|
/**
|
|
@@ -2325,7 +2364,7 @@ class Ta {
|
|
|
2325
2364
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=Jvw7xMK31K
|
|
2326
2365
|
*/
|
|
2327
2366
|
async getTopic(t, n) {
|
|
2328
|
-
const { data: r, code: a } = await this.req.get("community/topic",
|
|
2367
|
+
const { data: r, code: a } = await this.req.get("community/topic", ta, {
|
|
2329
2368
|
...n,
|
|
2330
2369
|
params: { topic_id: t }
|
|
2331
2370
|
});
|
|
@@ -2337,7 +2376,7 @@ class Ta {
|
|
|
2337
2376
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=XKI9lDVrPq
|
|
2338
2377
|
*/
|
|
2339
2378
|
async getPosts(t, n) {
|
|
2340
|
-
const { data: r, code: a, message: o } = await this.req.get("community/posts",
|
|
2379
|
+
const { data: r, code: a, message: o } = await this.req.get("community/posts", H, {
|
|
2341
2380
|
...n,
|
|
2342
2381
|
params: c(t)
|
|
2343
2382
|
});
|
|
@@ -2352,13 +2391,13 @@ class Ta {
|
|
|
2352
2391
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=yXubbZuDlC
|
|
2353
2392
|
*/
|
|
2354
2393
|
async getPinnedPosts(t, n, r, a) {
|
|
2355
|
-
const { data: o, code:
|
|
2394
|
+
const { data: o, code: d, message: p } = await this.req.get("community/pinned-posts", H, {
|
|
2356
2395
|
...a,
|
|
2357
2396
|
params: c({ forum_id: t, max_results: n, next_token: r })
|
|
2358
2397
|
});
|
|
2359
2398
|
return o ?? {
|
|
2360
2399
|
message: p,
|
|
2361
|
-
error:
|
|
2400
|
+
error: d
|
|
2362
2401
|
};
|
|
2363
2402
|
}
|
|
2364
2403
|
/**
|
|
@@ -2367,7 +2406,7 @@ class Ta {
|
|
|
2367
2406
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=hj1AZy5rcP
|
|
2368
2407
|
*/
|
|
2369
2408
|
async getPost(t, n) {
|
|
2370
|
-
const { data: r, code: a, message: o } = await this.req.get("community/post",
|
|
2409
|
+
const { data: r, code: a, message: o } = await this.req.get("community/post", na, {
|
|
2371
2410
|
...n,
|
|
2372
2411
|
params: { post_id: t }
|
|
2373
2412
|
});
|
|
@@ -2385,7 +2424,7 @@ class Ta {
|
|
|
2385
2424
|
const { data: r, code: a, message: o } = await this.req.post(
|
|
2386
2425
|
"community/post",
|
|
2387
2426
|
c(t),
|
|
2388
|
-
|
|
2427
|
+
ra,
|
|
2389
2428
|
n
|
|
2390
2429
|
);
|
|
2391
2430
|
return r ?? {
|
|
@@ -2399,7 +2438,7 @@ class Ta {
|
|
|
2399
2438
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=djKbX7lFdp
|
|
2400
2439
|
*/
|
|
2401
2440
|
async getComments(t, n) {
|
|
2402
|
-
const { data: r, code: a, message: o } = await this.req.get("community/comments",
|
|
2441
|
+
const { data: r, code: a, message: o } = await this.req.get("community/comments", ca, {
|
|
2403
2442
|
...n,
|
|
2404
2443
|
params: c(t)
|
|
2405
2444
|
});
|
|
@@ -2414,7 +2453,7 @@ class Ta {
|
|
|
2414
2453
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=RIc7oxVGae
|
|
2415
2454
|
*/
|
|
2416
2455
|
async getComment(t, n) {
|
|
2417
|
-
const { data: r, code: a, message: o } = await this.req.get("community/comment",
|
|
2456
|
+
const { data: r, code: a, message: o } = await this.req.get("community/comment", sa, {
|
|
2418
2457
|
...n,
|
|
2419
2458
|
params: { comment_id: t }
|
|
2420
2459
|
});
|
|
@@ -2433,7 +2472,7 @@ class Ta {
|
|
|
2433
2472
|
const { data: r, code: a, message: o } = await this.req.post(
|
|
2434
2473
|
"community/comment",
|
|
2435
2474
|
c(t),
|
|
2436
|
-
|
|
2475
|
+
ua,
|
|
2437
2476
|
n
|
|
2438
2477
|
);
|
|
2439
2478
|
return r ?? {
|
|
@@ -2447,7 +2486,7 @@ class Ta {
|
|
|
2447
2486
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=sVKBbY83MY
|
|
2448
2487
|
*/
|
|
2449
2488
|
async getReplies(t, n) {
|
|
2450
|
-
const { data: r } = await this.req.get("community/replies",
|
|
2489
|
+
const { data: r } = await this.req.get("community/replies", aa, {
|
|
2451
2490
|
...n,
|
|
2452
2491
|
params: c({ max_results: 20, ...t })
|
|
2453
2492
|
});
|
|
@@ -2462,7 +2501,7 @@ class Ta {
|
|
|
2462
2501
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=kxhcSXD3MG
|
|
2463
2502
|
*/
|
|
2464
2503
|
async getReply(t, n) {
|
|
2465
|
-
const { data: r, code: a, message: o } = await this.req.get("community/reply",
|
|
2504
|
+
const { data: r, code: a, message: o } = await this.req.get("community/reply", oa, {
|
|
2466
2505
|
...n,
|
|
2467
2506
|
params: { reply_id: t }
|
|
2468
2507
|
});
|
|
@@ -2481,7 +2520,7 @@ class Ta {
|
|
|
2481
2520
|
const { data: r, code: a, message: o } = await this.req.post(
|
|
2482
2521
|
"community/reply",
|
|
2483
2522
|
c(t),
|
|
2484
|
-
|
|
2523
|
+
ia,
|
|
2485
2524
|
n
|
|
2486
2525
|
);
|
|
2487
2526
|
return r ?? {
|
|
@@ -2532,7 +2571,7 @@ class Ta {
|
|
|
2532
2571
|
*/
|
|
2533
2572
|
async getMediaPresignedUrl(t, n) {
|
|
2534
2573
|
await this.token.autoLogin();
|
|
2535
|
-
const { data: r } = await this.req.get("community/media-presign-url",
|
|
2574
|
+
const { data: r } = await this.req.get("community/media-presign-url", la, {
|
|
2536
2575
|
...n,
|
|
2537
2576
|
params: t
|
|
2538
2577
|
});
|
|
@@ -2547,7 +2586,7 @@ class Ta {
|
|
|
2547
2586
|
*/
|
|
2548
2587
|
async getNotifications(t, n) {
|
|
2549
2588
|
await this.token.autoLogin();
|
|
2550
|
-
const { data: r } = await this.req.get("community/notifications",
|
|
2589
|
+
const { data: r } = await this.req.get("community/notifications", ma, {
|
|
2551
2590
|
...n,
|
|
2552
2591
|
params: c({ max_results: 20, ...t })
|
|
2553
2592
|
});
|
|
@@ -2565,7 +2604,7 @@ class Ta {
|
|
|
2565
2604
|
if (!await this.token.autoLogin()) return null;
|
|
2566
2605
|
const { data: n } = await this.req.get(
|
|
2567
2606
|
"community/unread-notifications-count",
|
|
2568
|
-
|
|
2607
|
+
da,
|
|
2569
2608
|
t
|
|
2570
2609
|
);
|
|
2571
2610
|
return n;
|
|
@@ -2581,17 +2620,17 @@ class Ta {
|
|
|
2581
2620
|
return r;
|
|
2582
2621
|
}
|
|
2583
2622
|
}
|
|
2584
|
-
const
|
|
2623
|
+
const ga = s({
|
|
2585
2624
|
nonce_str: e.string(),
|
|
2586
2625
|
timestamp: e.number(),
|
|
2587
2626
|
signature: e.string()
|
|
2588
2627
|
});
|
|
2589
|
-
var
|
|
2628
|
+
var pa = /* @__PURE__ */ ((i) => (i.RedirectUriDisMatch = "10003", i.AppidError = "10016", i.AuthorizationError = "10015", i.NoRightForScope = "10005", i.Frequently = "10009", i.AppBanded = "10004", i.ShouldFollow = "10006", i.ScopeNull = "10010", i.RedirectUriNull = "10011", i.AppidNull = "10012", i.StateNull = "10013", i))(pa || {});
|
|
2590
2629
|
function L(i) {
|
|
2591
2630
|
return h(i, "open_id", "union_id", "weixin_token");
|
|
2592
2631
|
}
|
|
2593
|
-
const
|
|
2594
|
-
class
|
|
2632
|
+
const z = "wx_login_cache";
|
|
2633
|
+
class La {
|
|
2595
2634
|
token;
|
|
2596
2635
|
$appid;
|
|
2597
2636
|
req;
|
|
@@ -2622,7 +2661,7 @@ class qa {
|
|
|
2622
2661
|
* 也可以直接调用 login 方法,并传入 weixin code 的读取函数
|
|
2623
2662
|
*/
|
|
2624
2663
|
async getLoginCache() {
|
|
2625
|
-
const t = this.token.storage.get(
|
|
2664
|
+
const t = this.token.storage.get(z);
|
|
2626
2665
|
if (!t)
|
|
2627
2666
|
return null;
|
|
2628
2667
|
const n = ye(t);
|
|
@@ -2651,14 +2690,14 @@ class qa {
|
|
|
2651
2690
|
const n = await this.getLoginCache();
|
|
2652
2691
|
if (n)
|
|
2653
2692
|
return n;
|
|
2654
|
-
const r = await ke(), { data: a, code: o, message:
|
|
2693
|
+
const r = await ke(), { data: a, code: o, message: d } = await this.req.post(
|
|
2655
2694
|
"weixin/login",
|
|
2656
2695
|
{ code: r, appid: this.appid },
|
|
2657
2696
|
L,
|
|
2658
2697
|
{ ...t, message: !1 }
|
|
2659
2698
|
);
|
|
2660
|
-
return a && (this.token.weixinToken = a.weixin_token, this.token.storage.set(
|
|
2661
|
-
message:
|
|
2699
|
+
return a && (this.token.weixinToken = a.weixin_token, this.token.storage.set(z, JSON.stringify(a))), a ?? {
|
|
2700
|
+
message: d,
|
|
2662
2701
|
error: o
|
|
2663
2702
|
};
|
|
2664
2703
|
}
|
|
@@ -2681,7 +2720,7 @@ class qa {
|
|
|
2681
2720
|
async webLogin(t = "snsapi_userinfo", n) {
|
|
2682
2721
|
const r = S("code"), a = Date.now(), o = +S("state");
|
|
2683
2722
|
if (!r || !o || o < a - 1e3 * 60 * 5 || o > a) {
|
|
2684
|
-
const me =
|
|
2723
|
+
const me = O(["code", "state"]);
|
|
2685
2724
|
location.replace(
|
|
2686
2725
|
`https://open.weixin.qq.com/connect/oauth2/authorize?appid=${this.appid}&redirect_uri=${encodeURIComponent(me)}&response_type=code&scope=${t}&state=${a}#wechat_redirect`
|
|
2687
2726
|
);
|
|
@@ -2692,8 +2731,8 @@ class qa {
|
|
|
2692
2731
|
message: "Error: " + r,
|
|
2693
2732
|
error: r
|
|
2694
2733
|
};
|
|
2695
|
-
const
|
|
2696
|
-
"replaceState" in history && history.replaceState({}, "",
|
|
2734
|
+
const d = O(["code", "state"]);
|
|
2735
|
+
"replaceState" in history && history.replaceState({}, "", d);
|
|
2697
2736
|
const {
|
|
2698
2737
|
data: p,
|
|
2699
2738
|
code: ue,
|
|
@@ -2731,7 +2770,7 @@ class qa {
|
|
|
2731
2770
|
* https://kdocs.cn/l/cf2mO2uRLqh9?linkname=CuWOqxr9Ue
|
|
2732
2771
|
*/
|
|
2733
2772
|
async getJSSDKConfig(t) {
|
|
2734
|
-
const { data: n } = await this.req.get("weixin/offiaccount/jssdk-sign",
|
|
2773
|
+
const { data: n } = await this.req.get("weixin/offiaccount/jssdk-sign", ga, {
|
|
2735
2774
|
...t,
|
|
2736
2775
|
params: {
|
|
2737
2776
|
appid: this.appid,
|
|
@@ -2748,16 +2787,16 @@ class qa {
|
|
|
2748
2787
|
}
|
|
2749
2788
|
export {
|
|
2750
2789
|
ce as AntispamValidator,
|
|
2751
|
-
|
|
2752
|
-
|
|
2790
|
+
ha as AuthToken,
|
|
2791
|
+
tr as CandidateVoteValidator,
|
|
2753
2792
|
ae as CashbackEngagementDataValidator,
|
|
2754
2793
|
xn as ClaimActivationKeyEngagementDataValidator,
|
|
2755
2794
|
lt as ClaimRewardStatus,
|
|
2756
2795
|
P as ClaimRewardStatusValidator,
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2796
|
+
mr as ClaimedItemValidator,
|
|
2797
|
+
X as ClubAddressValidator,
|
|
2798
|
+
wa as ClubApi,
|
|
2799
|
+
Y as ClubBenefitSummaryValidator,
|
|
2761
2800
|
Oe as ClubBenefitValidator,
|
|
2762
2801
|
qe as ClubCreditChangeScene,
|
|
2763
2802
|
xe as ClubCreditChangeSceneValidator,
|
|
@@ -2766,22 +2805,22 @@ export {
|
|
|
2766
2805
|
Ge as ClubCreditLogValidator,
|
|
2767
2806
|
Pe as ClubGlobalConfigValidator,
|
|
2768
2807
|
Le as ClubItemType,
|
|
2769
|
-
|
|
2808
|
+
J as ClubItemTypeValidator,
|
|
2770
2809
|
Ee as ClubPlayerValidator,
|
|
2771
|
-
|
|
2810
|
+
W as ClubProductValidator,
|
|
2772
2811
|
Se as ClubRedemptionStatus,
|
|
2773
2812
|
Ue as ClubRedemptionStatusValidator,
|
|
2774
2813
|
Ae as ClubUserCreditValidator,
|
|
2775
2814
|
De as ClubUserProfileValidator,
|
|
2776
|
-
|
|
2815
|
+
ar as CommentEngagementValidator,
|
|
2777
2816
|
k as CommentValidator,
|
|
2778
|
-
|
|
2779
|
-
|
|
2817
|
+
xa as CommunityApi,
|
|
2818
|
+
nr as ConversationValidator,
|
|
2780
2819
|
tt as EngageAccountType,
|
|
2781
2820
|
nt as EngageAccountTypeValidator,
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2821
|
+
lr as EngageResponseValidator,
|
|
2822
|
+
ir as EngageRewardValidator,
|
|
2823
|
+
Ta as EventApi,
|
|
2785
2824
|
qn as EventConfigValidator,
|
|
2786
2825
|
Tt as EventFeatureConfigOfCashbackValidator,
|
|
2787
2826
|
xt as EventFeatureConfigOfCheckInValidator,
|
|
@@ -2816,103 +2855,104 @@ export {
|
|
|
2816
2855
|
Vt as FeatureRewardValidator,
|
|
2817
2856
|
u as FeatureType,
|
|
2818
2857
|
ot as FeatureTypeValidator,
|
|
2819
|
-
|
|
2820
|
-
|
|
2858
|
+
Ir as ForumMode,
|
|
2859
|
+
Dr as ForumModeValidator,
|
|
2821
2860
|
se as ForumValidator,
|
|
2822
2861
|
v as GamerItemType,
|
|
2823
|
-
|
|
2862
|
+
ee as GamerItemTypeValidator,
|
|
2824
2863
|
Ce as Gender,
|
|
2825
2864
|
Ve as GenderValidator,
|
|
2826
2865
|
Ln as GiftCodeEngagementDataValidator,
|
|
2827
2866
|
Sn as InviteEngagementDataValidator,
|
|
2828
2867
|
_t as LotteryDrawAction,
|
|
2829
|
-
|
|
2868
|
+
Va as LotteryDrawActionValidator,
|
|
2830
2869
|
$n as LotteryDrawEngagementDataValidator,
|
|
2831
2870
|
Un as LotteryEngagementDataValidator,
|
|
2832
2871
|
w as LotteryTicketStatus,
|
|
2833
|
-
|
|
2872
|
+
Ra as LotteryTicketStatusValidator,
|
|
2834
2873
|
y as NotificationBaseValidator,
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2874
|
+
Gr as NotificationCategory,
|
|
2875
|
+
qa as NotificationCategoryValidator,
|
|
2876
|
+
zr as NotificationCommentReplyValidator,
|
|
2877
|
+
Jr as NotificationCommentValidator,
|
|
2839
2878
|
V as NotificationPayloadCommentValidator,
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2879
|
+
A as NotificationPayloadPostValidator,
|
|
2880
|
+
G as NotificationPayloadReplyValidator,
|
|
2881
|
+
Br as NotificationPayloadSystemValidator,
|
|
2882
|
+
Hr as NotificationPostCommentValidator,
|
|
2883
|
+
Kr as NotificationPostValidator,
|
|
2884
|
+
Zr as NotificationReplyRepliedValidator,
|
|
2885
|
+
Xr as NotificationReplyValidator,
|
|
2886
|
+
Mr as NotificationSystemValidator,
|
|
2848
2887
|
m as NotificationType,
|
|
2849
|
-
|
|
2850
|
-
|
|
2888
|
+
Or as NotificationTypeValidator,
|
|
2889
|
+
Yr as NotificationValidator,
|
|
2851
2890
|
Ie as PlayerRoleCardValidator,
|
|
2852
|
-
|
|
2853
|
-
|
|
2891
|
+
Z as PlayerRoleValidator,
|
|
2892
|
+
Ar as PostStatus,
|
|
2854
2893
|
ie as PostStatusValidator,
|
|
2855
|
-
|
|
2894
|
+
D as PostValidator,
|
|
2856
2895
|
Fn as PreregisterEngagementDataValidator,
|
|
2857
|
-
|
|
2896
|
+
Qr as PresignedUrlResponseValidator,
|
|
2858
2897
|
In as QuestEngagementDataValidator,
|
|
2859
2898
|
it as QuestObjective,
|
|
2860
|
-
|
|
2899
|
+
ne as QuestObjectiveValidator,
|
|
2861
2900
|
bt as QuestProgressAlgorithm,
|
|
2862
2901
|
yt as QuestProgressAlgorithmValidator,
|
|
2863
2902
|
Dn as QuestProgressValidator,
|
|
2864
2903
|
An as RedeemEngagementDataValidator,
|
|
2865
|
-
|
|
2904
|
+
fa as RedeemParamsValidator,
|
|
2866
2905
|
Gn as RedeemStocksResponseValidator,
|
|
2867
2906
|
Be as RedemptionValidator,
|
|
2868
2907
|
Ct as RegularRewardValidator,
|
|
2869
|
-
|
|
2908
|
+
Nr as ReplyToValidator,
|
|
2870
2909
|
C as ReplyValidator,
|
|
2871
|
-
|
|
2872
|
-
|
|
2910
|
+
ka as RewardItemType,
|
|
2911
|
+
te as RewardItemTypeValidator,
|
|
2873
2912
|
mt as RewardSource,
|
|
2874
2913
|
E as RewardSourceValidator,
|
|
2875
|
-
|
|
2914
|
+
g as RewardStatus,
|
|
2876
2915
|
ut as RewardStatusSuffix,
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2916
|
+
re as RewardStatusSuffixValidator,
|
|
2917
|
+
va as RewardStatusValidator,
|
|
2918
|
+
or as RewardValidator,
|
|
2880
2919
|
Fe as RoleBaseInfoValidator,
|
|
2881
2920
|
$e as ServerBaseInfoValidator,
|
|
2882
2921
|
On as ShareEngagementDataValidator,
|
|
2883
2922
|
Qn as SurveyEngagementDataValidator,
|
|
2884
2923
|
pt as TeamAction,
|
|
2885
|
-
|
|
2924
|
+
Ca as TeamActionValidator,
|
|
2886
2925
|
Mn as TeamEngagementDataValidator,
|
|
2887
2926
|
Bn as TeamEngagementValidator,
|
|
2888
|
-
|
|
2927
|
+
ja as TeamMemberValidator,
|
|
2889
2928
|
dt as TeamVisibility,
|
|
2890
2929
|
gt as TeamVisibilityValidator,
|
|
2891
|
-
|
|
2892
|
-
|
|
2930
|
+
I as TopicValidator,
|
|
2931
|
+
Jn as UgcCountResponseValidator,
|
|
2893
2932
|
Kn as UgcEngagementDataValidator,
|
|
2894
|
-
|
|
2895
|
-
Hn as
|
|
2933
|
+
Xn as UgcLeaderboardResponseValidator,
|
|
2934
|
+
Hn as UgcRecordBaseResponseValidator,
|
|
2935
|
+
zn as UgcRecordResponseValidator,
|
|
2896
2936
|
kt as UgcReviewStatus,
|
|
2897
2937
|
vt as UgcReviewStatusValidator,
|
|
2898
2938
|
wt as UgcSocialMedia,
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2939
|
+
$ as UgcSocialMediaValidator,
|
|
2940
|
+
Zn as UgcUploadImageValidator,
|
|
2941
|
+
F as UserEngagementDataValidator,
|
|
2942
|
+
sr as UserEngagementValidator,
|
|
2943
|
+
ur as UserFeatureStatusValidator,
|
|
2904
2944
|
R as UserRewardValidator,
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2945
|
+
cr as VerifyMobileResultValidator,
|
|
2946
|
+
er as Vote2ClaimRewardsResponseValidator,
|
|
2947
|
+
Wn as Vote2EngagementDataValidator,
|
|
2908
2948
|
ht as Vote2RewardType,
|
|
2909
2949
|
ft as Vote2RewardTypeValidator,
|
|
2910
|
-
|
|
2950
|
+
Yn as VoteEngagementDataValidator,
|
|
2911
2951
|
st as VoteOptionSource,
|
|
2912
2952
|
ct as VoteOptionSourceValidator,
|
|
2913
|
-
|
|
2953
|
+
La as WeixinApi,
|
|
2914
2954
|
Nn as WeixinSubscribeEngagementDataValidator,
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2955
|
+
pa as WeixinWebLoginErrorCode,
|
|
2956
|
+
rr as ZeroChatGPTDataValidator,
|
|
2957
|
+
ga as isWeixinSignResponse
|
|
2918
2958
|
};
|