@seayoo-web/gamer-api 2.4.5 → 2.5.1
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 +309 -265
- package/package.json +4 -4
- package/types/src/event.d.ts +32 -1
- package/types/src/event.engage/engage.d.ts +8 -2
- package/types/src/event.engage/engage.lotteryDraw.reward.d.ts +5 -1
- package/types/src/event.engage/engage.zeroChatGPT.d.ts +21 -0
- package/types/src/event.engage/index.d.ts +3 -2
- package/types/src/event.guards.d.ts +6 -0
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
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
|
-
var
|
|
3
|
+
var g = (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 R, useConsole as pe, Support as y, usePromise as _e, pruneURL as be, queryString as P, pruneObject as c, v as e, omitFields as V, typedObjectGuard as s, parseJSON as ye, removePara as
|
|
5
|
+
import { isPlainObject as R, useConsole as pe, Support as y, usePromise as _e, pruneURL as be, queryString as P, pruneObject as c, v as e, omitFields as V, typedObjectGuard as s, parseJSON as ye, removePara as M } from "@seayoo-web/utils";
|
|
6
6
|
function fe(a) {
|
|
7
7
|
return R(a, "gamer_token") && typeof a.gamer_token == "string";
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function Q(a) {
|
|
10
10
|
return R(a);
|
|
11
11
|
}
|
|
12
12
|
const w = pe("GamerApiSDK");
|
|
@@ -58,14 +58,14 @@ const ke = {
|
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
}, k = "gamer_token";
|
|
61
|
-
class
|
|
61
|
+
class qr {
|
|
62
62
|
constructor(t, r) {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
63
|
+
g(this, "$NetRequest");
|
|
64
|
+
g(this, "$idToken", "");
|
|
65
|
+
g(this, "$weixinToken", "");
|
|
66
|
+
g(this, "$gamerToken", "");
|
|
67
|
+
g(this, "req");
|
|
68
|
+
g(this, "storage");
|
|
69
69
|
this.storage = y.wx ? ve : ke;
|
|
70
70
|
const n = he(t) ? t : `https://${be(t)}`;
|
|
71
71
|
this.$NetRequest = r, this.req = r({
|
|
@@ -73,8 +73,8 @@ class Rr {
|
|
|
73
73
|
timeout: 1e4,
|
|
74
74
|
maxRetry: 2,
|
|
75
75
|
retryInterval: "2EB",
|
|
76
|
-
retryResolve({ method: d, status:
|
|
77
|
-
return d === "GET" &&
|
|
76
|
+
retryResolve({ method: d, status: l }) {
|
|
77
|
+
return d === "GET" && l < 0;
|
|
78
78
|
},
|
|
79
79
|
responseRule: {
|
|
80
80
|
ok: { resolve: "body" },
|
|
@@ -194,7 +194,7 @@ class Rr {
|
|
|
194
194
|
*/
|
|
195
195
|
async getSession() {
|
|
196
196
|
if (!await this.autoLogin()) return null;
|
|
197
|
-
const { data: t } = await this.req.get("session",
|
|
197
|
+
const { data: t } = await this.req.get("session", Q, {
|
|
198
198
|
message: !1
|
|
199
199
|
});
|
|
200
200
|
return t;
|
|
@@ -206,7 +206,7 @@ class Rr {
|
|
|
206
206
|
*/
|
|
207
207
|
async authRealName(t) {
|
|
208
208
|
if (!await this.autoLogin()) return null;
|
|
209
|
-
const { data: r } = await this.req.post("auth-real-name", c(t),
|
|
209
|
+
const { data: r } = await this.req.post("auth-real-name", c(t), Q);
|
|
210
210
|
return r;
|
|
211
211
|
}
|
|
212
212
|
}
|
|
@@ -305,7 +305,7 @@ const Ce = {
|
|
|
305
305
|
bio: e.string(),
|
|
306
306
|
gender: Re,
|
|
307
307
|
birthday: e.object({ year: e.number(), month: e.number(), day: e.number() })
|
|
308
|
-
}).lock(),
|
|
308
|
+
}).lock(), W = e.object({
|
|
309
309
|
address_id: e.number(),
|
|
310
310
|
recipient: e.string(),
|
|
311
311
|
mobile: e.string(),
|
|
@@ -319,14 +319,14 @@ const Ce = {
|
|
|
319
319
|
decreased_credit: e.number(),
|
|
320
320
|
expired_credit: e.number(),
|
|
321
321
|
balance_credit: e.number()
|
|
322
|
-
}).lock(),
|
|
322
|
+
}).lock(), Ge = e.object({
|
|
323
323
|
id: e.number(),
|
|
324
324
|
change_type: je,
|
|
325
325
|
change_scene: qe,
|
|
326
326
|
change_credit: e.number(),
|
|
327
327
|
balance: e.number(),
|
|
328
328
|
change_time: e.number()
|
|
329
|
-
}).lock(),
|
|
329
|
+
}).lock(), ee = e.object({
|
|
330
330
|
benefit_id: e.number(),
|
|
331
331
|
name: e.string(),
|
|
332
332
|
img_url: e.string(),
|
|
@@ -335,7 +335,7 @@ const Ce = {
|
|
|
335
335
|
max_level: e.number(),
|
|
336
336
|
product_id: e.number(),
|
|
337
337
|
tag: e.string()
|
|
338
|
-
}).lock(),
|
|
338
|
+
}).lock(), te = e.object({
|
|
339
339
|
product_id: e.number(),
|
|
340
340
|
catalog_id: e.number(),
|
|
341
341
|
catalog_name: e.string(),
|
|
@@ -361,10 +361,10 @@ const Ce = {
|
|
|
361
361
|
created_at: e.number(),
|
|
362
362
|
updated_at: e.number(),
|
|
363
363
|
redeemable_quantity: e.number().optional()
|
|
364
|
-
}).lock(),
|
|
365
|
-
...V(
|
|
366
|
-
product:
|
|
367
|
-
}).lock(),
|
|
364
|
+
}).lock(), Ae = e.object({
|
|
365
|
+
...V(ee.shape, "tag"),
|
|
366
|
+
product: te.clone().optional()
|
|
367
|
+
}).lock(), xr = e.union(
|
|
368
368
|
e.object({
|
|
369
369
|
server_id: e.string(),
|
|
370
370
|
role_id: e.string()
|
|
@@ -399,17 +399,17 @@ const Ce = {
|
|
|
399
399
|
status: Le,
|
|
400
400
|
created_at: e.number(),
|
|
401
401
|
extra_data: e.union(Ne.clone(), Oe.clone()).satisfies().optional()
|
|
402
|
-
}), Me = e.guard(Ee),
|
|
403
|
-
credit_logs: e.array(
|
|
402
|
+
}), Me = e.guard(Ee), K = s({ player: Pe }), Qe = s({ roles: e.array(Y) }), x = s({ role_card: Fe }), H = e.guard(De), z = e.guard(W), Ke = s({ addresses: e.array(W) }), He = e.guard(Ie), ze = s({
|
|
403
|
+
credit_logs: e.array(Ge),
|
|
404
404
|
next_token: e.string().optional()
|
|
405
|
-
}), Je = s({ products: e.array(
|
|
405
|
+
}), Je = s({ products: e.array(te) }), Ze = s({ benefits: e.array(ee) }), Xe = s({ benefit: Ae }), Ye = s({
|
|
406
406
|
redemptions: e.array(Be),
|
|
407
407
|
next_token: e.string().optional()
|
|
408
408
|
});
|
|
409
|
-
class
|
|
409
|
+
class Sr {
|
|
410
410
|
constructor(t) {
|
|
411
|
-
|
|
412
|
-
|
|
411
|
+
g(this, "token");
|
|
412
|
+
g(this, "req");
|
|
413
413
|
this.token = t, this.req = t.req;
|
|
414
414
|
}
|
|
415
415
|
/**
|
|
@@ -428,7 +428,7 @@ class jr {
|
|
|
428
428
|
*/
|
|
429
429
|
async getCurrentPlayer(t) {
|
|
430
430
|
await this.token.autoLogin();
|
|
431
|
-
const { data: r, code: n, message: i } = await this.req.get("club/current-player",
|
|
431
|
+
const { data: r, code: n, message: i } = await this.req.get("club/current-player", K, t);
|
|
432
432
|
return (r == null ? void 0 : r.player) ?? {
|
|
433
433
|
message: i,
|
|
434
434
|
error: n
|
|
@@ -444,7 +444,7 @@ class jr {
|
|
|
444
444
|
const { data: r, code: n, message: i } = await this.req.post(
|
|
445
445
|
"club/link-player",
|
|
446
446
|
{ id_token: this.token.idToken },
|
|
447
|
-
|
|
447
|
+
K,
|
|
448
448
|
t
|
|
449
449
|
);
|
|
450
450
|
return (r == null ? void 0 : r.player) ?? {
|
|
@@ -503,7 +503,7 @@ class jr {
|
|
|
503
503
|
* https://kdocs.cn/l/cgp4gSBMbOf1?linkname=TMWBCFcOr2
|
|
504
504
|
*/
|
|
505
505
|
async getUserProfile(t, r) {
|
|
506
|
-
const { data: n } = await this.req.get("club/user-profile",
|
|
506
|
+
const { data: n } = await this.req.get("club/user-profile", H, {
|
|
507
507
|
...r,
|
|
508
508
|
params: { member_id: t }
|
|
509
509
|
});
|
|
@@ -516,7 +516,7 @@ class jr {
|
|
|
516
516
|
*/
|
|
517
517
|
async updateUserProfile(t, r) {
|
|
518
518
|
await this.token.autoLogin();
|
|
519
|
-
const { data: n, code: i, message: o } = await this.req.post("club/user-profile", t,
|
|
519
|
+
const { data: n, code: i, message: o } = await this.req.post("club/user-profile", t, H, r);
|
|
520
520
|
return n ?? {
|
|
521
521
|
message: o,
|
|
522
522
|
error: i
|
|
@@ -539,7 +539,7 @@ class jr {
|
|
|
539
539
|
*/
|
|
540
540
|
async addAddress(t, r) {
|
|
541
541
|
if (!await this.token.autoLogin()) return null;
|
|
542
|
-
const { data: n } = await this.req.post("/club/add-address", c(t),
|
|
542
|
+
const { data: n } = await this.req.post("/club/add-address", c(t), z, r);
|
|
543
543
|
return n;
|
|
544
544
|
}
|
|
545
545
|
/**
|
|
@@ -552,7 +552,7 @@ class jr {
|
|
|
552
552
|
const { data: n, code: i, message: o } = await this.req.post(
|
|
553
553
|
"club/update-address",
|
|
554
554
|
c(t),
|
|
555
|
-
|
|
555
|
+
z,
|
|
556
556
|
r
|
|
557
557
|
);
|
|
558
558
|
return n ?? {
|
|
@@ -609,7 +609,7 @@ class jr {
|
|
|
609
609
|
*/
|
|
610
610
|
async getBenefits(t) {
|
|
611
611
|
if (!await this.token.autoLogin()) return [];
|
|
612
|
-
const { data: r } = await this.req.get("club/benefits",
|
|
612
|
+
const { data: r } = await this.req.get("club/benefits", Ze, t);
|
|
613
613
|
return (r == null ? void 0 : r.benefits) || [];
|
|
614
614
|
}
|
|
615
615
|
/**
|
|
@@ -619,7 +619,7 @@ class jr {
|
|
|
619
619
|
*/
|
|
620
620
|
async getBenefit(t, r) {
|
|
621
621
|
if (!await this.token.autoLogin()) return null;
|
|
622
|
-
const { data: n } = await this.req.get("club/benefit",
|
|
622
|
+
const { data: n } = await this.req.get("club/benefit", Xe, {
|
|
623
623
|
...r,
|
|
624
624
|
params: { benefit_id: t }
|
|
625
625
|
});
|
|
@@ -657,7 +657,7 @@ class jr {
|
|
|
657
657
|
*/
|
|
658
658
|
async getRedemptions(t, r) {
|
|
659
659
|
await this.token.autoLogin();
|
|
660
|
-
const { data: n } = await this.req.get("club/redemptions",
|
|
660
|
+
const { data: n } = await this.req.get("club/redemptions", Ye, {
|
|
661
661
|
...r,
|
|
662
662
|
params: c({ max_results: 20, ...t })
|
|
663
663
|
});
|
|
@@ -688,7 +688,7 @@ const j = {
|
|
|
688
688
|
ExternalCode: "external_gift_code",
|
|
689
689
|
/** 空奖励 */
|
|
690
690
|
VoidItem: "void_item"
|
|
691
|
-
},
|
|
691
|
+
}, ne = e.string().enum(j).lock(), Lr = j, re = ne, We = {
|
|
692
692
|
/** 世游通行证 ID / Combo ID */
|
|
693
693
|
UserId: "user_id",
|
|
694
694
|
/** 游戏角色 ID */
|
|
@@ -752,7 +752,7 @@ const j = {
|
|
|
752
752
|
MatchCounts: "player_match_counts",
|
|
753
753
|
/** 游戏对局天数 */
|
|
754
754
|
MatchDays: "player_match_days"
|
|
755
|
-
},
|
|
755
|
+
}, ie = e.string().enum(it).lock(), ot = {
|
|
756
756
|
/** 官方上传 */
|
|
757
757
|
System: "system",
|
|
758
758
|
/** 用户投稿 */
|
|
@@ -770,7 +770,7 @@ const j = {
|
|
|
770
770
|
Failed: "failed",
|
|
771
771
|
/** 奖励已发货 */
|
|
772
772
|
Delivered: "delivered"
|
|
773
|
-
},
|
|
773
|
+
}, Er = e.string().enum(_).lock(), $ = {
|
|
774
774
|
/**
|
|
775
775
|
* 奖励未领取,拼写错误以兼容后端历史版本,检查请使用 Unclaimed
|
|
776
776
|
*
|
|
@@ -785,7 +785,7 @@ const j = {
|
|
|
785
785
|
Failed: _.Failed,
|
|
786
786
|
/** 奖励已发货 */
|
|
787
787
|
Delivered: _.Delivered
|
|
788
|
-
},
|
|
788
|
+
}, oe = e.string().enum($).lock(), b = {
|
|
789
789
|
/** 未获得奖励 */
|
|
790
790
|
Ineligible: _.Ineligible,
|
|
791
791
|
/**
|
|
@@ -823,7 +823,7 @@ const j = {
|
|
|
823
823
|
Claimed: "claimed",
|
|
824
824
|
/** 领奖失败 */
|
|
825
825
|
Fail: "fail"
|
|
826
|
-
},
|
|
826
|
+
}, Pr = e.string().enum(v).lock(), lt = {
|
|
827
827
|
/** 发起组队 */
|
|
828
828
|
Assemble: "assemble",
|
|
829
829
|
/** 加入队伍 */
|
|
@@ -834,14 +834,14 @@ const j = {
|
|
|
834
834
|
ChangeVisibility: "change_visibility",
|
|
835
835
|
/** 查询组队信息 */
|
|
836
836
|
Query: "query"
|
|
837
|
-
},
|
|
837
|
+
}, $r = e.string().enum(lt).lock(), mt = {
|
|
838
838
|
/** 查询抽奖券 */
|
|
839
839
|
Query: "query",
|
|
840
840
|
/** 开奖 */
|
|
841
841
|
Draw: "draw",
|
|
842
842
|
/** 领奖 */
|
|
843
843
|
Claim: "claim"
|
|
844
|
-
},
|
|
844
|
+
}, Ur = e.string().enum(mt).lock(), dt = e.string().enum(V(j, "GiftCode", "LotteryTicket")), D = e.object({
|
|
845
845
|
reward_item_id: e.number(),
|
|
846
846
|
reward_amount: e.number(),
|
|
847
847
|
reward_item_name: e.string(),
|
|
@@ -861,7 +861,7 @@ const j = {
|
|
|
861
861
|
feature_reward_type: e.string().enum("regular"),
|
|
862
862
|
reward_details: e.array(gt)
|
|
863
863
|
})
|
|
864
|
-
).satisfies().lock(),
|
|
864
|
+
).satisfies().lock(), m = e.object({
|
|
865
865
|
feature_name: e.string(),
|
|
866
866
|
feature_id: e.number(),
|
|
867
867
|
description: e.string(),
|
|
@@ -872,7 +872,7 @@ const j = {
|
|
|
872
872
|
engage_account: et,
|
|
873
873
|
feature_rewards: pt.clone().optional()
|
|
874
874
|
}), _t = u.Cashback, bt = e.object({
|
|
875
|
-
...
|
|
875
|
+
...m.shape,
|
|
876
876
|
feature_type: e.string().enum(_t),
|
|
877
877
|
config: e.object({
|
|
878
878
|
order_start_time: e.number(),
|
|
@@ -881,23 +881,23 @@ const j = {
|
|
|
881
881
|
claim_rewards_end_time: e.number()
|
|
882
882
|
})
|
|
883
883
|
}), yt = u.CheckIn, ft = e.object({
|
|
884
|
-
...
|
|
884
|
+
...m.shape,
|
|
885
885
|
feature_type: e.string().enum(yt)
|
|
886
886
|
}), ht = u.ClaimActivationKey, wt = e.object({
|
|
887
|
-
...
|
|
887
|
+
...m.shape,
|
|
888
888
|
feature_type: e.string().enum(ht)
|
|
889
889
|
}), kt = u.ClaimRewards, vt = e.object({
|
|
890
|
-
...
|
|
890
|
+
...m.shape,
|
|
891
891
|
feature_type: e.string().enum(kt)
|
|
892
892
|
}), Ct = u.Comment, Rt = e.object({
|
|
893
|
-
...
|
|
893
|
+
...m.shape,
|
|
894
894
|
feature_type: e.string().enum(Ct),
|
|
895
895
|
config: e.object({
|
|
896
896
|
comments: e.array(e.string()),
|
|
897
897
|
send_rate: e.number()
|
|
898
898
|
})
|
|
899
899
|
}), Vt = u.Follow, jt = e.object({
|
|
900
|
-
...
|
|
900
|
+
...m.shape,
|
|
901
901
|
feature_type: e.string().enum(Vt),
|
|
902
902
|
config: e.object({
|
|
903
903
|
platform: e.string(),
|
|
@@ -911,7 +911,7 @@ const j = {
|
|
|
911
911
|
icon_url: e.string(),
|
|
912
912
|
count: e.number()
|
|
913
913
|
}), xt = e.object({
|
|
914
|
-
...
|
|
914
|
+
...m.shape,
|
|
915
915
|
feature_type: e.string().enum(Tt),
|
|
916
916
|
config: e.object({
|
|
917
917
|
gift_items: e.array(qt),
|
|
@@ -919,13 +919,13 @@ const j = {
|
|
|
919
919
|
mp_qrcode_url: e.string().optional()
|
|
920
920
|
})
|
|
921
921
|
}), St = u.Invite, Lt = e.object({
|
|
922
|
-
...
|
|
922
|
+
...m.shape,
|
|
923
923
|
feature_type: e.string().enum(St),
|
|
924
924
|
config: e.object({
|
|
925
925
|
share_url: e.string()
|
|
926
926
|
})
|
|
927
927
|
}), Et = u.InvitedRegister, Pt = e.object({
|
|
928
|
-
...
|
|
928
|
+
...m.shape,
|
|
929
929
|
feature_type: e.string().enum(Et)
|
|
930
930
|
}), $t = e.string().enum(V(j, "GiftCode", "LotteryTicket")), Ut = u.Lottery, Ft = e.object({
|
|
931
931
|
reward_item_id: e.number(),
|
|
@@ -936,7 +936,7 @@ const j = {
|
|
|
936
936
|
reward_amount: e.number(),
|
|
937
937
|
reward_remaining_stock: e.number()
|
|
938
938
|
}), Dt = e.object({
|
|
939
|
-
...
|
|
939
|
+
...m.shape,
|
|
940
940
|
feature_type: e.string().enum(Ut),
|
|
941
941
|
config: e.object({
|
|
942
942
|
consume_item_id: e.number(),
|
|
@@ -946,21 +946,21 @@ const j = {
|
|
|
946
946
|
consume_item_desc: e.string().optional(),
|
|
947
947
|
rewards: e.array(Ft)
|
|
948
948
|
})
|
|
949
|
-
}), It = u.LotteryDraw,
|
|
950
|
-
...
|
|
949
|
+
}), It = u.LotteryDraw, Gt = e.object({
|
|
950
|
+
...m.shape,
|
|
951
951
|
feature_type: e.string().enum(It),
|
|
952
952
|
config: e.object({
|
|
953
953
|
draw_not_before: e.number(),
|
|
954
954
|
draw_not_after: e.number()
|
|
955
955
|
})
|
|
956
|
-
}),
|
|
957
|
-
...
|
|
958
|
-
feature_type: e.string().enum(
|
|
956
|
+
}), At = u.Preregister, Nt = e.object({
|
|
957
|
+
...m.shape,
|
|
958
|
+
feature_type: e.string().enum(At)
|
|
959
959
|
}), Ot = u.Quest, Bt = e.object({
|
|
960
|
-
...
|
|
960
|
+
...m.shape,
|
|
961
961
|
feature_type: e.string().enum(Ot),
|
|
962
962
|
config: e.object({
|
|
963
|
-
objective:
|
|
963
|
+
objective: ie,
|
|
964
964
|
completion_value: e.number(),
|
|
965
965
|
team: e.object({
|
|
966
966
|
feature_id: e.number().optional(),
|
|
@@ -973,10 +973,10 @@ const j = {
|
|
|
973
973
|
}).optional()
|
|
974
974
|
})
|
|
975
975
|
}), Mt = u.Register, Qt = e.object({
|
|
976
|
-
...
|
|
976
|
+
...m.shape,
|
|
977
977
|
feature_type: e.string().enum(Mt)
|
|
978
978
|
}), Kt = u.Share, Ht = e.object({
|
|
979
|
-
...
|
|
979
|
+
...m.shape,
|
|
980
980
|
feature_type: e.string().enum(Kt),
|
|
981
981
|
config: e.object({
|
|
982
982
|
share_platform: e.string(),
|
|
@@ -984,21 +984,21 @@ const j = {
|
|
|
984
984
|
icon_url: e.string().optional()
|
|
985
985
|
})
|
|
986
986
|
}), zt = u.Subscribe, Jt = e.object({
|
|
987
|
-
...
|
|
987
|
+
...m.shape,
|
|
988
988
|
feature_type: e.string().enum(zt),
|
|
989
989
|
config: e.object({
|
|
990
990
|
weixin_template_ids: e.array(e.string())
|
|
991
991
|
})
|
|
992
|
-
}),
|
|
993
|
-
...
|
|
994
|
-
feature_type: e.string().enum(
|
|
992
|
+
}), Zt = u.Survey, Xt = e.object({
|
|
993
|
+
...m.shape,
|
|
994
|
+
feature_type: e.string().enum(Zt),
|
|
995
995
|
config: e.object({
|
|
996
996
|
survey_id: e.string(),
|
|
997
997
|
survey_url: e.string()
|
|
998
998
|
})
|
|
999
|
-
}),
|
|
1000
|
-
...
|
|
1001
|
-
feature_type: e.string().enum(
|
|
999
|
+
}), Yt = u.Team, Wt = e.object({
|
|
1000
|
+
...m.shape,
|
|
1001
|
+
feature_type: e.string().enum(Yt),
|
|
1002
1002
|
config: e.object({
|
|
1003
1003
|
max_members: e.number().min(1),
|
|
1004
1004
|
min_members: e.number().min(1)
|
|
@@ -1014,7 +1014,7 @@ const j = {
|
|
|
1014
1014
|
finalists: e.bool(),
|
|
1015
1015
|
last_vote_time: e.number()
|
|
1016
1016
|
}), nn = e.object({
|
|
1017
|
-
...
|
|
1017
|
+
...m.shape,
|
|
1018
1018
|
feature_type: e.string().enum(en),
|
|
1019
1019
|
config: e.object({
|
|
1020
1020
|
vote_feature_ids: e.array(e.number()),
|
|
@@ -1034,13 +1034,13 @@ const j = {
|
|
|
1034
1034
|
Lt,
|
|
1035
1035
|
Pt,
|
|
1036
1036
|
Dt,
|
|
1037
|
-
|
|
1037
|
+
Gt,
|
|
1038
1038
|
Nt,
|
|
1039
1039
|
Bt,
|
|
1040
1040
|
Qt,
|
|
1041
1041
|
Ht,
|
|
1042
1042
|
Jt,
|
|
1043
|
-
|
|
1043
|
+
Xt,
|
|
1044
1044
|
Wt,
|
|
1045
1045
|
nn,
|
|
1046
1046
|
wt
|
|
@@ -1065,12 +1065,12 @@ const j = {
|
|
|
1065
1065
|
avatar_url: e.string().optional()
|
|
1066
1066
|
}), ln = e.object({
|
|
1067
1067
|
lottery_count: e.number()
|
|
1068
|
-
}),
|
|
1068
|
+
}), I = e.object({
|
|
1069
1069
|
reward_id: e.number(),
|
|
1070
1070
|
reward_item_id: e.number(),
|
|
1071
1071
|
reward_source: F,
|
|
1072
1072
|
reward_item_name: e.string(),
|
|
1073
|
-
reward_item_type:
|
|
1073
|
+
reward_item_type: ne,
|
|
1074
1074
|
reward_item_icon_url: e.string(),
|
|
1075
1075
|
reward_item_desc: e.string().optional(),
|
|
1076
1076
|
reward_item_rating: e.number(),
|
|
@@ -1082,8 +1082,6 @@ const j = {
|
|
|
1082
1082
|
engagement_id: e.number(),
|
|
1083
1083
|
feature_type: rt,
|
|
1084
1084
|
receive_time: e.number(),
|
|
1085
|
-
// https://kdocs.cn/l/ckWFDcOsYEUA?linkname=merUzJsVYH
|
|
1086
|
-
// 后续会格式化为具体的类型,此处的校验需要对应增加
|
|
1087
1085
|
extra_data: e.record(e.unknown()).optional()
|
|
1088
1086
|
}), mn = e.string().enum(v.Unknown, v.Pending), dn = e.union(
|
|
1089
1087
|
e.object({
|
|
@@ -1093,14 +1091,14 @@ const j = {
|
|
|
1093
1091
|
e.object({
|
|
1094
1092
|
ticket: e.string(),
|
|
1095
1093
|
status: e.string().enum(V(v, "Unknown", "Pending")),
|
|
1096
|
-
reward:
|
|
1094
|
+
reward: I
|
|
1097
1095
|
})
|
|
1098
1096
|
).satisfies(), gn = e.object({
|
|
1099
1097
|
tickets: e.array(dn)
|
|
1100
1098
|
}), pn = e.object({
|
|
1101
1099
|
platforms: e.array(e.string())
|
|
1102
1100
|
}), _n = e.object({
|
|
1103
|
-
objective:
|
|
1101
|
+
objective: ie,
|
|
1104
1102
|
progress: e.number(),
|
|
1105
1103
|
completion_value: e.number().optional(),
|
|
1106
1104
|
team: e.object({
|
|
@@ -1125,7 +1123,7 @@ const j = {
|
|
|
1125
1123
|
team_code: e.string(),
|
|
1126
1124
|
leader_name: e.string(),
|
|
1127
1125
|
total_members: e.number()
|
|
1128
|
-
}),
|
|
1126
|
+
}), Fr = e.object({
|
|
1129
1127
|
is_leader: e.bool(),
|
|
1130
1128
|
is_myself: e.bool().optional(),
|
|
1131
1129
|
role_name: e.string(),
|
|
@@ -1143,13 +1141,18 @@ const j = {
|
|
|
1143
1141
|
}), kn = e.object({
|
|
1144
1142
|
option_sn: e.string()
|
|
1145
1143
|
}), vn = e.object({
|
|
1144
|
+
role: e.string(),
|
|
1145
|
+
content: e.string()
|
|
1146
|
+
}), Cn = e.object({
|
|
1147
|
+
conversations: e.array(vn)
|
|
1148
|
+
}), Rn = e.object({
|
|
1146
1149
|
user_id: e.string(),
|
|
1147
1150
|
name: e.string(),
|
|
1148
1151
|
avatar_url: e.string(),
|
|
1149
1152
|
comment: e.string(),
|
|
1150
1153
|
video_note: e.number(),
|
|
1151
1154
|
created_at: e.number()
|
|
1152
|
-
}),
|
|
1155
|
+
}), G = e.union(
|
|
1153
1156
|
pn,
|
|
1154
1157
|
ln,
|
|
1155
1158
|
fn,
|
|
@@ -1163,91 +1166,96 @@ const j = {
|
|
|
1163
1166
|
_n,
|
|
1164
1167
|
gn,
|
|
1165
1168
|
sn,
|
|
1169
|
+
Cn,
|
|
1166
1170
|
e.custom(
|
|
1167
1171
|
"EmptyObject",
|
|
1168
1172
|
(a) => R(a) && Object.keys(a).length === 0
|
|
1169
1173
|
)
|
|
1170
|
-
).satisfies().lock(),
|
|
1174
|
+
).satisfies().lock(), Vn = e.object({
|
|
1171
1175
|
reward_id: e.number(),
|
|
1172
1176
|
reward_item_id: e.number(),
|
|
1173
|
-
reward_item_type:
|
|
1177
|
+
reward_item_type: re,
|
|
1174
1178
|
reward_count: e.number(),
|
|
1175
|
-
reward_status:
|
|
1179
|
+
reward_status: oe,
|
|
1176
1180
|
reward_source: F,
|
|
1177
1181
|
reward_item_name: e.string(),
|
|
1178
1182
|
reward_item_icon_url: e.string(),
|
|
1179
1183
|
reward_item_desc: e.string().optional(),
|
|
1180
1184
|
reward_item_rating: e.number(),
|
|
1181
1185
|
receive_time: e.number(),
|
|
1182
|
-
extra_data: e.union(...
|
|
1183
|
-
}),
|
|
1186
|
+
extra_data: e.union(...G.validators, e.record(e.unknown())).satisfies().optional()
|
|
1187
|
+
}), jn = e.object({
|
|
1184
1188
|
reward_id: e.number(),
|
|
1185
1189
|
reward_item_id: e.number(),
|
|
1186
1190
|
reward_item_name: e.string(),
|
|
1187
|
-
reward_item_type:
|
|
1191
|
+
reward_item_type: re,
|
|
1188
1192
|
reward_item_icon_url: e.string(),
|
|
1189
1193
|
reward_item_desc: e.string().optional(),
|
|
1190
1194
|
reward_amount: e.number(),
|
|
1191
|
-
reward_status:
|
|
1195
|
+
reward_status: oe,
|
|
1192
1196
|
reward_source: F,
|
|
1193
1197
|
extra_data: e.record(e.unknown()).optional()
|
|
1194
|
-
}),
|
|
1198
|
+
}), Tn = e.object({
|
|
1195
1199
|
engagement_id: e.number(),
|
|
1196
1200
|
user_id: e.string(),
|
|
1197
1201
|
event_id: e.number(),
|
|
1198
1202
|
feature_id: e.number(),
|
|
1199
1203
|
sequence: e.number(),
|
|
1200
|
-
data:
|
|
1204
|
+
data: G.clone().optional(),
|
|
1201
1205
|
server_id: e.string().optional(),
|
|
1202
1206
|
role_id: e.string().optional(),
|
|
1203
1207
|
created_at: e.number(),
|
|
1204
|
-
rewards: e.array(
|
|
1205
|
-
}).lock(),
|
|
1208
|
+
rewards: e.array(Vn).optional()
|
|
1209
|
+
}).lock(), qn = e.object({
|
|
1206
1210
|
allowed: e.bool(),
|
|
1207
1211
|
registered: e.bool()
|
|
1208
|
-
}),
|
|
1212
|
+
}), xn = e.object({
|
|
1209
1213
|
feature_id: e.number(),
|
|
1210
1214
|
can_engage: e.bool(),
|
|
1211
1215
|
has_unclaimed_rewards: e.bool()
|
|
1212
|
-
}),
|
|
1216
|
+
}), Sn = e.object({
|
|
1213
1217
|
engagement_id: e.number(),
|
|
1214
1218
|
engagement: e.object({
|
|
1215
1219
|
engagement_id: e.number(),
|
|
1216
1220
|
sequence: e.number(),
|
|
1217
1221
|
feature_id: e.number(),
|
|
1218
|
-
data:
|
|
1222
|
+
data: G.clone().optional()
|
|
1219
1223
|
}).optional(),
|
|
1220
|
-
rewards: e.array(
|
|
1224
|
+
rewards: e.array(jn).optional(),
|
|
1221
1225
|
scan: e.bool().optional()
|
|
1222
|
-
}),
|
|
1226
|
+
}), Ln = e.object({
|
|
1223
1227
|
reward_id: e.number(),
|
|
1224
1228
|
reward_status: U
|
|
1225
|
-
}),
|
|
1226
|
-
engagements: e.union(e.array(
|
|
1227
|
-
}),
|
|
1228
|
-
status: e.array(
|
|
1229
|
-
}),
|
|
1230
|
-
|
|
1231
|
-
next_token: e.string().optional()
|
|
1232
|
-
}), Fn = e.guard(qn), Dn = s({
|
|
1233
|
-
claimed_items: e.array(xn)
|
|
1229
|
+
}), En = e.guard(on), Pn = e.guard(qn), L = s({ count: e.number() }), $n = s({ first_visit: e.bool() }), Un = s({
|
|
1230
|
+
engagements: e.union(e.array(Rn), e.array(hn))
|
|
1231
|
+
}), Fn = s({
|
|
1232
|
+
status: e.array(xn)
|
|
1233
|
+
}), Dn = s({
|
|
1234
|
+
engagements_counts: e.record(e.number())
|
|
1234
1235
|
}), In = s({
|
|
1236
|
+
engagements: e.array(Tn),
|
|
1237
|
+
next_token: e.string().optional()
|
|
1238
|
+
}), Gn = e.guard(Sn), An = s({
|
|
1239
|
+
claimed_items: e.array(Ln)
|
|
1240
|
+
}), Nn = s({
|
|
1241
|
+
rewards: e.array(I)
|
|
1242
|
+
}), On = s({
|
|
1235
1243
|
reward_status: U
|
|
1236
|
-
}),
|
|
1237
|
-
user_rewards: e.array(
|
|
1244
|
+
}), Bn = s({
|
|
1245
|
+
user_rewards: e.array(I),
|
|
1238
1246
|
next_token: e.string().optional()
|
|
1239
|
-
}),
|
|
1247
|
+
}), Mn = s({
|
|
1240
1248
|
scene: e.string()
|
|
1241
|
-
}),
|
|
1249
|
+
}), Qn = s({
|
|
1242
1250
|
params: e.string()
|
|
1243
|
-
}),
|
|
1251
|
+
}), Kn = s({
|
|
1244
1252
|
img: e.string()
|
|
1245
1253
|
});
|
|
1246
|
-
class
|
|
1254
|
+
class Dr {
|
|
1247
1255
|
constructor(t, r) {
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1256
|
+
g(this, "token");
|
|
1257
|
+
g(this, "event", 0);
|
|
1258
|
+
g(this, "req");
|
|
1251
1259
|
this.token = t, this.event = +r, this.req = t.req;
|
|
1252
1260
|
}
|
|
1253
1261
|
/**
|
|
@@ -1256,7 +1264,7 @@ class Pr {
|
|
|
1256
1264
|
* https://kdocs.cn/l/cf2mO2uRLqh9?linkname=OWGSPF3Ysl
|
|
1257
1265
|
*/
|
|
1258
1266
|
async verifyMobileAllowed(t, r, n) {
|
|
1259
|
-
const { data: i } = await this.req.get("verify-mobile-allowed",
|
|
1267
|
+
const { data: i } = await this.req.get("verify-mobile-allowed", Pn, {
|
|
1260
1268
|
...n,
|
|
1261
1269
|
params: { game_id: t, mobile: r }
|
|
1262
1270
|
});
|
|
@@ -1268,7 +1276,7 @@ class Pr {
|
|
|
1268
1276
|
* https://kdocs.cn/l/ckWFDcOsYEUA?linkname=wFXxtdNKPm
|
|
1269
1277
|
*/
|
|
1270
1278
|
async getConfig(t) {
|
|
1271
|
-
const { data: r } = await this.req.get(`event/${this.event}/event-config`,
|
|
1279
|
+
const { data: r } = await this.req.get(`event/${this.event}/event-config`, En, t);
|
|
1272
1280
|
return r;
|
|
1273
1281
|
}
|
|
1274
1282
|
/**
|
|
@@ -1303,7 +1311,7 @@ class Pr {
|
|
|
1303
1311
|
* https://kdocs.cn/l/ckWFDcOsYEUA?linkname=THtZ4ewIQW
|
|
1304
1312
|
*/
|
|
1305
1313
|
async getEngagements(t, r) {
|
|
1306
|
-
const { data: n } = await this.req.get(`event/${this.event}/feature-engagements`,
|
|
1314
|
+
const { data: n } = await this.req.get(`event/${this.event}/feature-engagements`, Un, {
|
|
1307
1315
|
...r,
|
|
1308
1316
|
params: { feature_id: t }
|
|
1309
1317
|
});
|
|
@@ -1319,7 +1327,7 @@ class Pr {
|
|
|
1319
1327
|
const { data: n, code: i, message: o } = await this.req.post(
|
|
1320
1328
|
`event/${this.event}/visit`,
|
|
1321
1329
|
c(t || {}),
|
|
1322
|
-
|
|
1330
|
+
$n,
|
|
1323
1331
|
r
|
|
1324
1332
|
);
|
|
1325
1333
|
return n ?? {
|
|
@@ -1338,13 +1346,26 @@ class Pr {
|
|
|
1338
1346
|
*/
|
|
1339
1347
|
async getUserFeatureStatus(t, r) {
|
|
1340
1348
|
if (!await this.token.autoLogin()) return [];
|
|
1341
|
-
const { data: n } = await this.req.get("event/user-feature-status",
|
|
1349
|
+
const { data: n } = await this.req.get("event/user-feature-status", Fn, {
|
|
1342
1350
|
...r,
|
|
1343
1351
|
message: !1,
|
|
1344
1352
|
params: c({ ...t, event_id: this.event })
|
|
1345
1353
|
});
|
|
1346
1354
|
return (n == null ? void 0 : n.status) || [];
|
|
1347
1355
|
}
|
|
1356
|
+
/**
|
|
1357
|
+
* 获取用户在目标活动下的某个玩法的参与次数
|
|
1358
|
+
*
|
|
1359
|
+
* https://kdocs.cn/l/ckWFDcOsYEUA?linkname=uYCsjWyL36
|
|
1360
|
+
*/
|
|
1361
|
+
async getUserEngagementCount(t, r) {
|
|
1362
|
+
if (!await this.token.autoLogin()) return {};
|
|
1363
|
+
const { data: n } = await this.req.get("event/user-engagements-count", Dn, {
|
|
1364
|
+
message: !1,
|
|
1365
|
+
params: c({ ...r, event_id: this.event, feature_id: t })
|
|
1366
|
+
});
|
|
1367
|
+
return (n == null ? void 0 : n.engagements_counts) || {};
|
|
1368
|
+
}
|
|
1348
1369
|
/**
|
|
1349
1370
|
* 获取当前登录用户参与某个玩法的记录
|
|
1350
1371
|
*
|
|
@@ -1358,7 +1379,7 @@ class Pr {
|
|
|
1358
1379
|
engagements: [],
|
|
1359
1380
|
next_token: ""
|
|
1360
1381
|
};
|
|
1361
|
-
const { data: i } = await this.req.get("event/user-engagements",
|
|
1382
|
+
const { data: i } = await this.req.get("event/user-engagements", In, {
|
|
1362
1383
|
...n,
|
|
1363
1384
|
params: c({
|
|
1364
1385
|
max_results: 20,
|
|
@@ -1383,25 +1404,27 @@ class Pr {
|
|
|
1383
1404
|
*/
|
|
1384
1405
|
async engage(t, r, n, i) {
|
|
1385
1406
|
await this.token.autoLogin();
|
|
1386
|
-
const { data: o, code: d, message:
|
|
1407
|
+
const { data: o, code: d, message: l } = await this.req.post(
|
|
1387
1408
|
`event/${this.event}/engage`,
|
|
1388
1409
|
c({
|
|
1389
1410
|
feature_id: t,
|
|
1390
1411
|
engagement: r,
|
|
1391
1412
|
...n
|
|
1392
1413
|
}),
|
|
1393
|
-
|
|
1414
|
+
Gn,
|
|
1394
1415
|
i
|
|
1395
1416
|
);
|
|
1396
1417
|
return o && o.rewards && (o.rewards = o.rewards.map((h) => (h.reward_status = h.reward_status === $.UnclaimedErr ? $.Unclaimed : h.reward_status, h))), o ?? {
|
|
1397
|
-
message:
|
|
1418
|
+
message: l,
|
|
1398
1419
|
error: d
|
|
1399
|
-
//
|
|
1420
|
+
// 激活码已领完
|
|
1400
1421
|
};
|
|
1401
1422
|
}
|
|
1402
1423
|
/**
|
|
1403
1424
|
* 用户领取除红包和实物奖励以外的所有奖励
|
|
1404
1425
|
*
|
|
1426
|
+
* @deprecated 请优先使用 `claimRewardsV2` 接口
|
|
1427
|
+
*
|
|
1405
1428
|
* https://kdocs.cn/l/ckWFDcOsYEUA?linkname=lCGuqgvUDP
|
|
1406
1429
|
*/
|
|
1407
1430
|
async claimRewards(t, r) {
|
|
@@ -1412,10 +1435,31 @@ class Pr {
|
|
|
1412
1435
|
...t,
|
|
1413
1436
|
server_id: t.server_id ? +t.server_id : void 0
|
|
1414
1437
|
}),
|
|
1415
|
-
|
|
1438
|
+
An,
|
|
1416
1439
|
r
|
|
1417
1440
|
), d = n == null ? void 0 : n.claimed_items;
|
|
1418
|
-
return d ? d.map((
|
|
1441
|
+
return d ? d.map((l) => (l.reward_status = l.reward_status === b.UnclaimedErr ? b.Unclaimed : l.reward_status, l)) : {
|
|
1442
|
+
message: o,
|
|
1443
|
+
error: i
|
|
1444
|
+
};
|
|
1445
|
+
}
|
|
1446
|
+
/**
|
|
1447
|
+
* 用户领取除红包和实物奖励以外的所有奖励
|
|
1448
|
+
*
|
|
1449
|
+
* https://kdocs.cn/l/ckWFDcOsYEUA?linkname=vdc4SrqXjF
|
|
1450
|
+
*/
|
|
1451
|
+
async claimRewardsV2(t, r) {
|
|
1452
|
+
await this.token.autoLogin();
|
|
1453
|
+
const { data: n, code: i, message: o } = await this.req.post(
|
|
1454
|
+
"event/claim-rewards-v2",
|
|
1455
|
+
c({
|
|
1456
|
+
...t,
|
|
1457
|
+
server_id: t.server_id ? +t.server_id : void 0
|
|
1458
|
+
}),
|
|
1459
|
+
Nn,
|
|
1460
|
+
r
|
|
1461
|
+
), d = n == null ? void 0 : n.rewards;
|
|
1462
|
+
return d ? d.map((l) => (l.reward_status = l.reward_status === b.UnclaimedErr ? b.Unclaimed : l.reward_status, l)) : {
|
|
1419
1463
|
message: o,
|
|
1420
1464
|
error: i
|
|
1421
1465
|
};
|
|
@@ -1430,7 +1474,7 @@ class Pr {
|
|
|
1430
1474
|
const { data: n, code: i, message: o } = await this.req.post(
|
|
1431
1475
|
"event/claim-weixin-hongbao",
|
|
1432
1476
|
{ reward_id: t },
|
|
1433
|
-
|
|
1477
|
+
On,
|
|
1434
1478
|
r
|
|
1435
1479
|
);
|
|
1436
1480
|
return n ? (n.reward_status = n.reward_status === b.UnclaimedErr ? b.Unclaimed : n.reward_status, n) : {
|
|
@@ -1471,7 +1515,7 @@ class Pr {
|
|
|
1471
1515
|
const { data: n } = await this.req.post(
|
|
1472
1516
|
"event/user-rewards",
|
|
1473
1517
|
c({ max_results: 20, ...t, event_id: this.event }),
|
|
1474
|
-
|
|
1518
|
+
Bn,
|
|
1475
1519
|
r
|
|
1476
1520
|
);
|
|
1477
1521
|
return {
|
|
@@ -1511,7 +1555,7 @@ class Pr {
|
|
|
1511
1555
|
*/
|
|
1512
1556
|
async getUnlimitQrcodeScene(t, r) {
|
|
1513
1557
|
if (!await this.token.autoLogin()) return null;
|
|
1514
|
-
const { data: n } = await this.req.get("event/unlimit-qrcode-scene",
|
|
1558
|
+
const { data: n } = await this.req.get("event/unlimit-qrcode-scene", Mn, {
|
|
1515
1559
|
...r,
|
|
1516
1560
|
params: { params: t }
|
|
1517
1561
|
});
|
|
@@ -1525,7 +1569,7 @@ class Pr {
|
|
|
1525
1569
|
* @param scene - 小程序码 scene 值
|
|
1526
1570
|
*/
|
|
1527
1571
|
async getParamsByQrcodeScene(t, r) {
|
|
1528
|
-
const { data: n } = await this.req.get("event/params-by-qrcode-scene",
|
|
1572
|
+
const { data: n } = await this.req.get("event/params-by-qrcode-scene", Qn, {
|
|
1529
1573
|
...r,
|
|
1530
1574
|
params: { scene: t }
|
|
1531
1575
|
});
|
|
@@ -1541,18 +1585,18 @@ class Pr {
|
|
|
1541
1585
|
const { data: n } = await this.req.post(
|
|
1542
1586
|
"event/unlimit-qrcode",
|
|
1543
1587
|
c(t),
|
|
1544
|
-
|
|
1588
|
+
Kn,
|
|
1545
1589
|
r
|
|
1546
1590
|
);
|
|
1547
1591
|
return (n == null ? void 0 : n.img) ?? null;
|
|
1548
1592
|
}
|
|
1549
1593
|
}
|
|
1550
|
-
const
|
|
1594
|
+
const Hn = {
|
|
1551
1595
|
/** 所有人均可以发帖 */
|
|
1552
1596
|
All: "all",
|
|
1553
1597
|
/** 指定用户可发帖 */
|
|
1554
1598
|
Limit: "limit"
|
|
1555
|
-
},
|
|
1599
|
+
}, zn = e.string().enum(Hn).lock(), Jn = {
|
|
1556
1600
|
/** 待审核(仅自己可见) */
|
|
1557
1601
|
Pending: "pending",
|
|
1558
1602
|
/** 审核通过 */
|
|
@@ -1561,14 +1605,14 @@ const Bn = {
|
|
|
1561
1605
|
Failed: "failed",
|
|
1562
1606
|
/** 嫌疑(仅自己可见) */
|
|
1563
1607
|
Suspect: "suspect"
|
|
1564
|
-
}, ae = e.string().enum(
|
|
1608
|
+
}, ae = e.string().enum(Jn).lock(), Zn = {
|
|
1565
1609
|
/** 系统通知 */
|
|
1566
1610
|
System: "system",
|
|
1567
1611
|
/** 评论我的 */
|
|
1568
1612
|
Comment: "comment",
|
|
1569
1613
|
/** 点赞通知 */
|
|
1570
1614
|
Like: "like"
|
|
1571
|
-
},
|
|
1615
|
+
}, Ir = e.string().enum(Zn).lock(), p = {
|
|
1572
1616
|
/** 系统通知 */
|
|
1573
1617
|
System: "system",
|
|
1574
1618
|
/** 帖子被置顶 */
|
|
@@ -1593,13 +1637,13 @@ const Bn = {
|
|
|
1593
1637
|
ReplyLiked: "reply_liked",
|
|
1594
1638
|
/** 回复被删除 */
|
|
1595
1639
|
ReplyDeleted: "reply_deleted"
|
|
1596
|
-
},
|
|
1640
|
+
}, Xn = e.string().enum(p).lock(), se = e.object({
|
|
1597
1641
|
forum_id: e.number(),
|
|
1598
1642
|
icon_url: e.string(),
|
|
1599
1643
|
name: e.string(),
|
|
1600
1644
|
tags: e.array(e.string()),
|
|
1601
1645
|
sort: e.number(),
|
|
1602
|
-
mode:
|
|
1646
|
+
mode: zn,
|
|
1603
1647
|
member_ids: e.array(e.number())
|
|
1604
1648
|
}).lock(), A = e.object({
|
|
1605
1649
|
topic_id: e.number(),
|
|
@@ -1608,7 +1652,7 @@ const Bn = {
|
|
|
1608
1652
|
description: e.string(),
|
|
1609
1653
|
tags: e.array(e.string()),
|
|
1610
1654
|
post_num: e.number()
|
|
1611
|
-
}).lock(),
|
|
1655
|
+
}).lock(), N = e.object({
|
|
1612
1656
|
post_id: e.number(),
|
|
1613
1657
|
forum: se,
|
|
1614
1658
|
posted_by: e.string(),
|
|
@@ -1630,7 +1674,7 @@ const Bn = {
|
|
|
1630
1674
|
create_time: e.number()
|
|
1631
1675
|
}).lock(), ce = e.object({
|
|
1632
1676
|
err_msg: e.string().optional()
|
|
1633
|
-
}).lock(),
|
|
1677
|
+
}).lock(), Yn = e.object({
|
|
1634
1678
|
reply_id: e.number(),
|
|
1635
1679
|
reply_content: e.string().optional(),
|
|
1636
1680
|
replied_by: e.string(),
|
|
@@ -1649,7 +1693,7 @@ const Bn = {
|
|
|
1649
1693
|
content: e.string(),
|
|
1650
1694
|
like_num: e.number(),
|
|
1651
1695
|
liked: e.bool(),
|
|
1652
|
-
reply_to:
|
|
1696
|
+
reply_to: Yn,
|
|
1653
1697
|
create_time: e.number()
|
|
1654
1698
|
}).lock(), C = e.object({
|
|
1655
1699
|
comment_id: e.number(),
|
|
@@ -1671,22 +1715,22 @@ const Bn = {
|
|
|
1671
1715
|
create_time: e.number(),
|
|
1672
1716
|
status: ae,
|
|
1673
1717
|
replies: e.array(T).optional()
|
|
1674
|
-
}).lock(),
|
|
1718
|
+
}).lock(), Wn = e.object({
|
|
1675
1719
|
image_url: e.string(),
|
|
1676
1720
|
upload_url: e.string(),
|
|
1677
1721
|
existed: e.bool()
|
|
1678
1722
|
}).lock(), f = e.object({
|
|
1679
1723
|
notification_id: e.string(),
|
|
1680
|
-
notification_type:
|
|
1724
|
+
notification_type: Xn,
|
|
1681
1725
|
is_read: e.bool(),
|
|
1682
1726
|
create_time: e.number(),
|
|
1683
1727
|
origin_user_id: e.string(),
|
|
1684
1728
|
origin_user_name: e.string(),
|
|
1685
1729
|
origin_user_avatar_url: e.string()
|
|
1686
|
-
}).lock(),
|
|
1730
|
+
}).lock(), er = e.object({
|
|
1687
1731
|
system_message_subject: e.string(),
|
|
1688
1732
|
system_message_content: e.string()
|
|
1689
|
-
}).lock(),
|
|
1733
|
+
}).lock(), O = e.object({
|
|
1690
1734
|
post_id: e.number(),
|
|
1691
1735
|
post_subject: e.string(),
|
|
1692
1736
|
post_summary: e.string(),
|
|
@@ -1694,84 +1738,84 @@ const Bn = {
|
|
|
1694
1738
|
}).lock(), q = e.object({
|
|
1695
1739
|
comment_id: e.number(),
|
|
1696
1740
|
comment_content: e.string()
|
|
1697
|
-
}).lock(),
|
|
1741
|
+
}).lock(), B = e.object({
|
|
1698
1742
|
reply_id: e.number(),
|
|
1699
1743
|
reply_content: e.string()
|
|
1700
|
-
}).lock(),
|
|
1744
|
+
}).lock(), tr = e.object({
|
|
1701
1745
|
...f.shape,
|
|
1702
|
-
...
|
|
1746
|
+
...er.shape,
|
|
1703
1747
|
notification_type: e.string().enum(p.System)
|
|
1704
|
-
}),
|
|
1748
|
+
}), nr = e.object({
|
|
1705
1749
|
...f.shape,
|
|
1706
|
-
...
|
|
1750
|
+
...O.shape,
|
|
1707
1751
|
notification_type: e.string().enum(
|
|
1708
1752
|
p.PostPinned,
|
|
1709
1753
|
p.PostHighlighted,
|
|
1710
1754
|
p.PostDeleted,
|
|
1711
1755
|
p.PostLiked
|
|
1712
1756
|
)
|
|
1713
|
-
}),
|
|
1757
|
+
}), rr = e.object({
|
|
1714
1758
|
...f.shape,
|
|
1715
|
-
...
|
|
1759
|
+
...O.shape,
|
|
1716
1760
|
...q.shape,
|
|
1717
1761
|
notification_type: e.string().enum(p.PostCommented)
|
|
1718
|
-
}),
|
|
1762
|
+
}), ir = e.object({
|
|
1719
1763
|
...f.shape,
|
|
1720
1764
|
...q.shape,
|
|
1721
|
-
...
|
|
1765
|
+
...B.shape,
|
|
1722
1766
|
notification_type: e.string().enum(p.CommentReplied)
|
|
1723
|
-
}),
|
|
1767
|
+
}), or = e.object({
|
|
1724
1768
|
...f.shape,
|
|
1725
1769
|
...q.shape,
|
|
1726
|
-
...
|
|
1770
|
+
...O.shape,
|
|
1727
1771
|
notification_type: e.string().enum(p.CommentLiked, p.CommentDeleted)
|
|
1728
|
-
}),
|
|
1772
|
+
}), ar = e.object({
|
|
1729
1773
|
...f.shape,
|
|
1730
|
-
...
|
|
1774
|
+
...B.shape,
|
|
1731
1775
|
notification_type: e.string().enum(p.ReplyReplied),
|
|
1732
1776
|
comment_id: e.number(),
|
|
1733
1777
|
reply_to_reply_id: e.number(),
|
|
1734
1778
|
reply_to_reply_content: e.string()
|
|
1735
|
-
}),
|
|
1779
|
+
}), sr = e.object({
|
|
1736
1780
|
...f.shape,
|
|
1737
|
-
...
|
|
1781
|
+
...B.shape,
|
|
1738
1782
|
...q.shape,
|
|
1739
1783
|
notification_type: e.string().enum(p.ReplyLiked, p.ReplyDeleted)
|
|
1740
|
-
}),
|
|
1741
|
-
Yn,
|
|
1742
|
-
Zn,
|
|
1743
|
-
Wn,
|
|
1744
|
-
er,
|
|
1784
|
+
}), cr = e.union(
|
|
1745
1785
|
tr,
|
|
1746
1786
|
nr,
|
|
1747
|
-
rr
|
|
1748
|
-
|
|
1749
|
-
|
|
1787
|
+
rr,
|
|
1788
|
+
ir,
|
|
1789
|
+
or,
|
|
1790
|
+
ar,
|
|
1791
|
+
sr
|
|
1792
|
+
).satisfies().lock(), ur = s({ forums: e.array(se) }), lr = s({ topics: e.array(A) }), mr = s({ topic: A }), dr = s({ post: N }), J = s({
|
|
1793
|
+
posts: e.array(N),
|
|
1750
1794
|
next_token: e.string().optional()
|
|
1751
|
-
}),
|
|
1795
|
+
}), gr = s({ post: N, antispam: ce }), pr = s({
|
|
1752
1796
|
replies: e.array(T),
|
|
1753
1797
|
next_token: e.string().optional()
|
|
1754
|
-
}),
|
|
1798
|
+
}), _r = s({ reply: T }), br = s({
|
|
1755
1799
|
reply: T.clone().optional(),
|
|
1756
1800
|
antispam: ce.clone().optional()
|
|
1757
|
-
}),
|
|
1801
|
+
}), yr = s({ comment: C }), fr = s({
|
|
1758
1802
|
comments: e.array(C),
|
|
1759
1803
|
next_token: e.string().optional()
|
|
1760
|
-
}),
|
|
1804
|
+
}), hr = s({
|
|
1761
1805
|
comment: C.clone().optional(),
|
|
1762
1806
|
antispam: C.clone().optional()
|
|
1763
|
-
}),
|
|
1764
|
-
notifications: e.array(
|
|
1807
|
+
}), wr = e.guard(Wn), kr = s({
|
|
1808
|
+
notifications: e.array(cr),
|
|
1765
1809
|
next_token: e.string().optional()
|
|
1766
|
-
}),
|
|
1810
|
+
}), vr = s({
|
|
1767
1811
|
system: e.number(),
|
|
1768
1812
|
comment: e.number(),
|
|
1769
1813
|
like: e.number()
|
|
1770
1814
|
});
|
|
1771
|
-
class
|
|
1815
|
+
class Gr {
|
|
1772
1816
|
constructor(t) {
|
|
1773
|
-
|
|
1774
|
-
|
|
1817
|
+
g(this, "token");
|
|
1818
|
+
g(this, "req");
|
|
1775
1819
|
this.token = t, this.req = t.req;
|
|
1776
1820
|
}
|
|
1777
1821
|
/**
|
|
@@ -1780,7 +1824,7 @@ class Ur {
|
|
|
1780
1824
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=QaqUa2K0z0
|
|
1781
1825
|
*/
|
|
1782
1826
|
async getForums(t) {
|
|
1783
|
-
const { data: r } = await this.req.get("community/forums",
|
|
1827
|
+
const { data: r } = await this.req.get("community/forums", ur, t);
|
|
1784
1828
|
return (r == null ? void 0 : r.forums) || [];
|
|
1785
1829
|
}
|
|
1786
1830
|
/**
|
|
@@ -1789,7 +1833,7 @@ class Ur {
|
|
|
1789
1833
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=mIwpymAQom
|
|
1790
1834
|
*/
|
|
1791
1835
|
async getTopics(t) {
|
|
1792
|
-
const { data: r } = await this.req.get("community/topics",
|
|
1836
|
+
const { data: r } = await this.req.get("community/topics", lr, t);
|
|
1793
1837
|
return (r == null ? void 0 : r.topics) || [];
|
|
1794
1838
|
}
|
|
1795
1839
|
/**
|
|
@@ -1798,7 +1842,7 @@ class Ur {
|
|
|
1798
1842
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=Jvw7xMK31K
|
|
1799
1843
|
*/
|
|
1800
1844
|
async getTopic(t, r) {
|
|
1801
|
-
const { data: n, code: i } = await this.req.get("community/topic",
|
|
1845
|
+
const { data: n, code: i } = await this.req.get("community/topic", mr, {
|
|
1802
1846
|
...r,
|
|
1803
1847
|
params: { topic_id: t }
|
|
1804
1848
|
});
|
|
@@ -1810,7 +1854,7 @@ class Ur {
|
|
|
1810
1854
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=XKI9lDVrPq
|
|
1811
1855
|
*/
|
|
1812
1856
|
async getPosts(t, r) {
|
|
1813
|
-
const { data: n, code: i, message: o } = await this.req.get("community/posts",
|
|
1857
|
+
const { data: n, code: i, message: o } = await this.req.get("community/posts", J, {
|
|
1814
1858
|
...r,
|
|
1815
1859
|
params: c(t)
|
|
1816
1860
|
});
|
|
@@ -1825,12 +1869,12 @@ class Ur {
|
|
|
1825
1869
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=yXubbZuDlC
|
|
1826
1870
|
*/
|
|
1827
1871
|
async getPinnedPosts(t, r, n, i) {
|
|
1828
|
-
const { data: o, code: d, message:
|
|
1872
|
+
const { data: o, code: d, message: l } = await this.req.get("community/pinned-posts", J, {
|
|
1829
1873
|
...i,
|
|
1830
1874
|
params: c({ forum_id: t, max_results: r, next_token: n })
|
|
1831
1875
|
});
|
|
1832
1876
|
return o ?? {
|
|
1833
|
-
message:
|
|
1877
|
+
message: l,
|
|
1834
1878
|
error: d
|
|
1835
1879
|
};
|
|
1836
1880
|
}
|
|
@@ -1840,7 +1884,7 @@ class Ur {
|
|
|
1840
1884
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=hj1AZy5rcP
|
|
1841
1885
|
*/
|
|
1842
1886
|
async getPost(t, r) {
|
|
1843
|
-
const { data: n, code: i, message: o } = await this.req.get("community/post",
|
|
1887
|
+
const { data: n, code: i, message: o } = await this.req.get("community/post", dr, {
|
|
1844
1888
|
...r,
|
|
1845
1889
|
params: { post_id: t }
|
|
1846
1890
|
});
|
|
@@ -1858,7 +1902,7 @@ class Ur {
|
|
|
1858
1902
|
const { data: n, code: i, message: o } = await this.req.post(
|
|
1859
1903
|
"community/post",
|
|
1860
1904
|
c(t),
|
|
1861
|
-
|
|
1905
|
+
gr,
|
|
1862
1906
|
r
|
|
1863
1907
|
);
|
|
1864
1908
|
return n ?? {
|
|
@@ -1872,7 +1916,7 @@ class Ur {
|
|
|
1872
1916
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=djKbX7lFdp
|
|
1873
1917
|
*/
|
|
1874
1918
|
async getComments(t, r) {
|
|
1875
|
-
const { data: n, code: i, message: o } = await this.req.get("community/comments",
|
|
1919
|
+
const { data: n, code: i, message: o } = await this.req.get("community/comments", fr, {
|
|
1876
1920
|
...r,
|
|
1877
1921
|
params: c(t)
|
|
1878
1922
|
});
|
|
@@ -1887,7 +1931,7 @@ class Ur {
|
|
|
1887
1931
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=RIc7oxVGae
|
|
1888
1932
|
*/
|
|
1889
1933
|
async getComment(t, r) {
|
|
1890
|
-
const { data: n, code: i, message: o } = await this.req.get("community/comment",
|
|
1934
|
+
const { data: n, code: i, message: o } = await this.req.get("community/comment", yr, {
|
|
1891
1935
|
...r,
|
|
1892
1936
|
params: { comment_id: t }
|
|
1893
1937
|
});
|
|
@@ -1906,7 +1950,7 @@ class Ur {
|
|
|
1906
1950
|
const { data: n, code: i, message: o } = await this.req.post(
|
|
1907
1951
|
"community/comment",
|
|
1908
1952
|
c(t),
|
|
1909
|
-
|
|
1953
|
+
hr,
|
|
1910
1954
|
r
|
|
1911
1955
|
);
|
|
1912
1956
|
return n ?? {
|
|
@@ -1920,7 +1964,7 @@ class Ur {
|
|
|
1920
1964
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=sVKBbY83MY
|
|
1921
1965
|
*/
|
|
1922
1966
|
async getReplies(t, r) {
|
|
1923
|
-
const { data: n } = await this.req.get("community/replies",
|
|
1967
|
+
const { data: n } = await this.req.get("community/replies", pr, {
|
|
1924
1968
|
...r,
|
|
1925
1969
|
params: c({ max_results: 20, ...t })
|
|
1926
1970
|
});
|
|
@@ -1935,7 +1979,7 @@ class Ur {
|
|
|
1935
1979
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=kxhcSXD3MG
|
|
1936
1980
|
*/
|
|
1937
1981
|
async getReply(t, r) {
|
|
1938
|
-
const { data: n, code: i, message: o } = await this.req.get("community/reply",
|
|
1982
|
+
const { data: n, code: i, message: o } = await this.req.get("community/reply", _r, {
|
|
1939
1983
|
...r,
|
|
1940
1984
|
params: { reply_id: t }
|
|
1941
1985
|
});
|
|
@@ -1954,7 +1998,7 @@ class Ur {
|
|
|
1954
1998
|
const { data: n, code: i, message: o } = await this.req.post(
|
|
1955
1999
|
"community/reply",
|
|
1956
2000
|
c(t),
|
|
1957
|
-
|
|
2001
|
+
br,
|
|
1958
2002
|
r
|
|
1959
2003
|
);
|
|
1960
2004
|
return n ?? {
|
|
@@ -2005,7 +2049,7 @@ class Ur {
|
|
|
2005
2049
|
*/
|
|
2006
2050
|
async getMediaPresignedUrl(t, r) {
|
|
2007
2051
|
await this.token.autoLogin();
|
|
2008
|
-
const { data: n } = await this.req.get("community/media-presign-url",
|
|
2052
|
+
const { data: n } = await this.req.get("community/media-presign-url", wr, {
|
|
2009
2053
|
...r,
|
|
2010
2054
|
params: t
|
|
2011
2055
|
});
|
|
@@ -2020,7 +2064,7 @@ class Ur {
|
|
|
2020
2064
|
*/
|
|
2021
2065
|
async getNotifications(t, r) {
|
|
2022
2066
|
await this.token.autoLogin();
|
|
2023
|
-
const { data: n } = await this.req.get("community/notifications",
|
|
2067
|
+
const { data: n } = await this.req.get("community/notifications", kr, {
|
|
2024
2068
|
...r,
|
|
2025
2069
|
params: c({ max_results: 20, ...t })
|
|
2026
2070
|
});
|
|
@@ -2038,7 +2082,7 @@ class Ur {
|
|
|
2038
2082
|
if (!await this.token.autoLogin()) return null;
|
|
2039
2083
|
const { data: r } = await this.req.get(
|
|
2040
2084
|
"community/unread-notifications-count",
|
|
2041
|
-
|
|
2085
|
+
vr,
|
|
2042
2086
|
t
|
|
2043
2087
|
);
|
|
2044
2088
|
return r;
|
|
@@ -2054,17 +2098,17 @@ class Ur {
|
|
|
2054
2098
|
return n;
|
|
2055
2099
|
}
|
|
2056
2100
|
}
|
|
2057
|
-
const
|
|
2101
|
+
const Cr = s({
|
|
2058
2102
|
nonce_str: e.string(),
|
|
2059
2103
|
timestamp: e.number(),
|
|
2060
2104
|
signature: e.string()
|
|
2061
2105
|
});
|
|
2062
|
-
var
|
|
2106
|
+
var Rr = /* @__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))(Rr || {});
|
|
2063
2107
|
function E(a) {
|
|
2064
2108
|
return R(a, "open_id", "union_id", "weixin_token");
|
|
2065
2109
|
}
|
|
2066
|
-
const
|
|
2067
|
-
class
|
|
2110
|
+
const Z = "wx_login_cache";
|
|
2111
|
+
class Ar {
|
|
2068
2112
|
/**
|
|
2069
2113
|
* 创建微信相关功能接口
|
|
2070
2114
|
*
|
|
@@ -2079,9 +2123,9 @@ class Fr {
|
|
|
2079
2123
|
* https://developers.weixin.qq.com/miniprogram/dev/api/open-api/account-info/wx.getAccountInfoSync.html
|
|
2080
2124
|
*/
|
|
2081
2125
|
constructor(t, r) {
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2126
|
+
g(this, "token");
|
|
2127
|
+
g(this, "$appid");
|
|
2128
|
+
g(this, "req");
|
|
2085
2129
|
this.token = t, this.req = t.req, this.$appid = r, this.getLoginCache();
|
|
2086
2130
|
}
|
|
2087
2131
|
get appid() {
|
|
@@ -2095,7 +2139,7 @@ class Fr {
|
|
|
2095
2139
|
* 也可以直接调用 login 方法,并传入 weixin code 的读取函数
|
|
2096
2140
|
*/
|
|
2097
2141
|
async getLoginCache() {
|
|
2098
|
-
const t = this.token.storage.get(
|
|
2142
|
+
const t = this.token.storage.get(Z);
|
|
2099
2143
|
if (!t)
|
|
2100
2144
|
return null;
|
|
2101
2145
|
const r = ye(t);
|
|
@@ -2130,7 +2174,7 @@ class Fr {
|
|
|
2130
2174
|
E,
|
|
2131
2175
|
{ ...t, message: !1 }
|
|
2132
2176
|
);
|
|
2133
|
-
return i && (this.token.weixinToken = i.weixin_token, this.token.storage.set(
|
|
2177
|
+
return i && (this.token.weixinToken = i.weixin_token, this.token.storage.set(Z, JSON.stringify(i)), await this.token.autoLogin()), i ?? {
|
|
2134
2178
|
message: d,
|
|
2135
2179
|
error: o
|
|
2136
2180
|
};
|
|
@@ -2154,7 +2198,7 @@ class Fr {
|
|
|
2154
2198
|
async webLogin(t = "snsapi_userinfo", r) {
|
|
2155
2199
|
const n = P("code"), i = Date.now(), o = +P("state");
|
|
2156
2200
|
if (!n || !o || o < i - 1e3 * 60 * 5 || o > i) {
|
|
2157
|
-
const le =
|
|
2201
|
+
const le = M(["code", "state"]);
|
|
2158
2202
|
location.replace(
|
|
2159
2203
|
`https://open.weixin.qq.com/connect/oauth2/authorize?appid=${this.appid}&redirect_uri=${encodeURIComponent(le)}&response_type=code&scope=${t}&state=${i}#wechat_redirect`
|
|
2160
2204
|
);
|
|
@@ -2165,14 +2209,14 @@ class Fr {
|
|
|
2165
2209
|
message: "Error: " + n,
|
|
2166
2210
|
error: n
|
|
2167
2211
|
};
|
|
2168
|
-
const d =
|
|
2212
|
+
const d = M(["code", "state"]);
|
|
2169
2213
|
"replaceState" in history && history.replaceState({}, "", d);
|
|
2170
2214
|
const {
|
|
2171
|
-
data:
|
|
2215
|
+
data: l,
|
|
2172
2216
|
code: h,
|
|
2173
2217
|
message: ue
|
|
2174
2218
|
} = await this.req.post("weixin/login", { code: n, appid: this.appid }, E, r);
|
|
2175
|
-
return
|
|
2219
|
+
return l && (this.token.weixinToken = l.weixin_token, await this.token.autoLogin()), l ?? {
|
|
2176
2220
|
message: ue,
|
|
2177
2221
|
error: h
|
|
2178
2222
|
};
|
|
@@ -2204,7 +2248,7 @@ class Fr {
|
|
|
2204
2248
|
* https://kdocs.cn/l/cf2mO2uRLqh9?linkname=CuWOqxr9Ue
|
|
2205
2249
|
*/
|
|
2206
2250
|
async getJSSDKConfig(t) {
|
|
2207
|
-
const { data: r } = await this.req.get("weixin/offiaccount/jssdk-sign",
|
|
2251
|
+
const { data: r } = await this.req.get("weixin/offiaccount/jssdk-sign", Cr, {
|
|
2208
2252
|
...t,
|
|
2209
2253
|
params: {
|
|
2210
2254
|
appid: this.appid,
|
|
@@ -2221,38 +2265,38 @@ class Fr {
|
|
|
2221
2265
|
}
|
|
2222
2266
|
export {
|
|
2223
2267
|
ce as AntispamValidator,
|
|
2224
|
-
|
|
2268
|
+
qr as AuthToken,
|
|
2225
2269
|
an as CashbackEngagementDataValidator,
|
|
2226
2270
|
sn as ClaimActivationKeyEngagementDataValidator,
|
|
2227
2271
|
b as ClaimRewardStatus,
|
|
2228
2272
|
U as ClaimRewardStatusValidator,
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2273
|
+
Ln as ClaimedItemValidator,
|
|
2274
|
+
W as ClubAddressValidator,
|
|
2275
|
+
Sr as ClubApi,
|
|
2276
|
+
ee as ClubBenefitSummaryValidator,
|
|
2277
|
+
Ae as ClubBenefitValidator,
|
|
2234
2278
|
Te as ClubCreditChangeScene,
|
|
2235
2279
|
qe as ClubCreditChangeSceneValidator,
|
|
2236
2280
|
Ve as ClubCreditChangeType,
|
|
2237
2281
|
je as ClubCreditChangeTypeValidator,
|
|
2238
|
-
|
|
2282
|
+
Ge as ClubCreditLogValidator,
|
|
2239
2283
|
Ee as ClubGlobalConfigValidator,
|
|
2240
2284
|
xe as ClubItemType,
|
|
2241
2285
|
X as ClubItemTypeValidator,
|
|
2242
2286
|
Pe as ClubPlayerValidator,
|
|
2243
|
-
|
|
2287
|
+
te as ClubProductValidator,
|
|
2244
2288
|
Se as ClubRedemptionStatus,
|
|
2245
2289
|
Le as ClubRedemptionStatusValidator,
|
|
2246
2290
|
Ie as ClubUserCreditValidator,
|
|
2247
2291
|
De as ClubUserProfileValidator,
|
|
2248
|
-
|
|
2292
|
+
Rn as CommentEngagementValidator,
|
|
2249
2293
|
C as CommentValidator,
|
|
2250
|
-
|
|
2294
|
+
Gr as CommunityApi,
|
|
2251
2295
|
We as EngageAccountType,
|
|
2252
2296
|
et as EngageAccountTypeValidator,
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2297
|
+
Sn as EngageResponseValidator,
|
|
2298
|
+
jn as EngageRewardValidator,
|
|
2299
|
+
Dr as EventApi,
|
|
2256
2300
|
on as EventConfigValidator,
|
|
2257
2301
|
bt as EventFeatureConfigOfCashbackValidator,
|
|
2258
2302
|
ft as EventFeatureConfigOfCheckInValidator,
|
|
@@ -2263,14 +2307,14 @@ export {
|
|
|
2263
2307
|
xt as EventFeatureConfigOfGiftCodeValidator,
|
|
2264
2308
|
Lt as EventFeatureConfigOfInviteValidator,
|
|
2265
2309
|
Pt as EventFeatureConfigOfInvitedRegisterValidator,
|
|
2266
|
-
|
|
2310
|
+
Gt as EventFeatureConfigOfLotteryDrawValidator,
|
|
2267
2311
|
Dt as EventFeatureConfigOfLotteryValidator,
|
|
2268
2312
|
Nt as EventFeatureConfigOfPreregisterValidator,
|
|
2269
2313
|
Bt as EventFeatureConfigOfQuestValidator,
|
|
2270
2314
|
Qt as EventFeatureConfigOfRegisterValidator,
|
|
2271
2315
|
Ht as EventFeatureConfigOfShareValidator,
|
|
2272
2316
|
Jt as EventFeatureConfigOfSubscribeValidator,
|
|
2273
|
-
|
|
2317
|
+
Xt as EventFeatureConfigOfSurveyValidator,
|
|
2274
2318
|
Wt as EventFeatureConfigOfTeamValidator,
|
|
2275
2319
|
nn as EventFeatureConfigOfVoteValidator,
|
|
2276
2320
|
rn as EventFeatureConfigValidator,
|
|
@@ -2282,84 +2326,84 @@ export {
|
|
|
2282
2326
|
pt as FeatureRewardValidator,
|
|
2283
2327
|
u as FeatureType,
|
|
2284
2328
|
rt as FeatureTypeValidator,
|
|
2285
|
-
|
|
2286
|
-
|
|
2329
|
+
Hn as ForumMode,
|
|
2330
|
+
zn as ForumModeValidator,
|
|
2287
2331
|
se as ForumValidator,
|
|
2288
2332
|
j as GamerItemType,
|
|
2289
|
-
|
|
2333
|
+
ne as GamerItemTypeValidator,
|
|
2290
2334
|
Ce as Gender,
|
|
2291
2335
|
Re as GenderValidator,
|
|
2292
2336
|
cn as GiftCodeEngagementDataValidator,
|
|
2293
2337
|
un as InviteEngagementDataValidator,
|
|
2294
2338
|
mt as LotteryDrawAction,
|
|
2295
|
-
|
|
2339
|
+
Ur as LotteryDrawActionValidator,
|
|
2296
2340
|
gn as LotteryDrawEngagementDataValidator,
|
|
2297
2341
|
ln as LotteryEngagementDataValidator,
|
|
2298
2342
|
v as LotteryTicketStatus,
|
|
2299
|
-
|
|
2343
|
+
Pr as LotteryTicketStatusValidator,
|
|
2300
2344
|
f as NotificationBaseValidator,
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2345
|
+
Zn as NotificationCategory,
|
|
2346
|
+
Ir as NotificationCategoryValidator,
|
|
2347
|
+
ir as NotificationCommentReplyValidator,
|
|
2348
|
+
or as NotificationCommentValidator,
|
|
2305
2349
|
q as NotificationPayloadCommentValidator,
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2350
|
+
O as NotificationPayloadPostValidator,
|
|
2351
|
+
B as NotificationPayloadReplyValidator,
|
|
2352
|
+
er as NotificationPayloadSystemValidator,
|
|
2353
|
+
rr as NotificationPostCommentValidator,
|
|
2354
|
+
nr as NotificationPostValidator,
|
|
2355
|
+
ar as NotificationReplyRepliedValidator,
|
|
2356
|
+
sr as NotificationReplyValidator,
|
|
2357
|
+
tr as NotificationSystemValidator,
|
|
2314
2358
|
p as NotificationType,
|
|
2315
|
-
|
|
2316
|
-
|
|
2359
|
+
Xn as NotificationTypeValidator,
|
|
2360
|
+
cr as NotificationValidator,
|
|
2317
2361
|
Fe as PlayerRoleCardValidator,
|
|
2318
2362
|
Y as PlayerRoleValidator,
|
|
2319
|
-
|
|
2363
|
+
Jn as PostStatus,
|
|
2320
2364
|
ae as PostStatusValidator,
|
|
2321
|
-
|
|
2365
|
+
N as PostValidator,
|
|
2322
2366
|
pn as PreregisterEngagementDataValidator,
|
|
2323
|
-
|
|
2367
|
+
Wn as PresignedUrlResponseValidator,
|
|
2324
2368
|
_n as QuestEngagementDataValidator,
|
|
2325
2369
|
it as QuestObjective,
|
|
2326
|
-
|
|
2327
|
-
|
|
2370
|
+
ie as QuestObjectiveValidator,
|
|
2371
|
+
xr as RedeemParamsValidator,
|
|
2328
2372
|
Be as RedemptionValidator,
|
|
2329
2373
|
gt as RegularRewardValidator,
|
|
2330
|
-
|
|
2374
|
+
Yn as ReplyToValidator,
|
|
2331
2375
|
T as ReplyValidator,
|
|
2332
|
-
|
|
2333
|
-
|
|
2376
|
+
Lr as RewardItemType,
|
|
2377
|
+
re as RewardItemTypeValidator,
|
|
2334
2378
|
st as RewardSource,
|
|
2335
2379
|
F as RewardSourceValidator,
|
|
2336
2380
|
_ as RewardStatus,
|
|
2337
2381
|
$ as RewardStatusSuffix,
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2382
|
+
oe as RewardStatusSuffixValidator,
|
|
2383
|
+
Er as RewardStatusValidator,
|
|
2384
|
+
Vn as RewardValidator,
|
|
2341
2385
|
Ue as RoleBaseInfoValidator,
|
|
2342
2386
|
$e as ServerBaseInfoValidator,
|
|
2343
2387
|
bn as ShareEngagementDataValidator,
|
|
2344
2388
|
fn as SurveyEngagementDataValidator,
|
|
2345
2389
|
lt as TeamAction,
|
|
2346
|
-
|
|
2390
|
+
$r as TeamActionValidator,
|
|
2347
2391
|
wn as TeamEngagementDataValidator,
|
|
2348
2392
|
hn as TeamEngagementValidator,
|
|
2349
|
-
|
|
2393
|
+
Fr as TeamMemberValidator,
|
|
2350
2394
|
ct as TeamVisibility,
|
|
2351
2395
|
ut as TeamVisibilityValidator,
|
|
2352
2396
|
A as TopicValidator,
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2397
|
+
G as UserEngagementDataValidator,
|
|
2398
|
+
Tn as UserEngagementValidator,
|
|
2399
|
+
xn as UserFeatureStatusValidator,
|
|
2400
|
+
I as UserRewardValidator,
|
|
2401
|
+
qn as VerifyMobileResultValidator,
|
|
2358
2402
|
kn as VoteEngagementDataValidator,
|
|
2359
2403
|
ot as VoteOptionSource,
|
|
2360
2404
|
at as VoteOptionSourceValidator,
|
|
2361
|
-
|
|
2405
|
+
Ar as WeixinApi,
|
|
2362
2406
|
yn as WeixinSubscribeEngagementDataValidator,
|
|
2363
|
-
|
|
2364
|
-
|
|
2407
|
+
Rr as WeixinWebLoginErrorCode,
|
|
2408
|
+
Cr as isWeixinSignResponse
|
|
2365
2409
|
};
|