@seayoo-web/gamer-api 2.1.1 → 2.2.0
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 +438 -429
- package/package.json +3 -3
- package/types/src/event.config/feature.claimActivationKey.d.ts +7 -0
- package/types/src/event.config/feature.d.ts +4 -2
- package/types/src/event.define.d.ts +3 -5
- package/types/src/event.engage/engage.claimActivationKey.d.ts +5 -0
- package/types/src/event.engage/engage.d.ts +4 -2
- package/types/src/event.enums.d.ts +2 -0
package/dist/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var l = (i, t, n) =>
|
|
4
|
-
import { isComboWebView as
|
|
5
|
-
import { isPlainObject as v, useConsole as
|
|
6
|
-
function
|
|
1
|
+
var ue = Object.defineProperty;
|
|
2
|
+
var le = (i, t, n) => t in i ? ue(i, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : i[t] = n;
|
|
3
|
+
var l = (i, t, n) => le(i, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
+
import { isComboWebView as me } from "@seayoo-web/combo-webview";
|
|
5
|
+
import { isPlainObject as v, useConsole as de, Support as b, usePromise as ge, pruneURL as pe, queryString as L, pruneObject as a, v as e, omitFields as C, typedObjectGuard as o, parseJSON as _e, removePara as N } from "@seayoo-web/utils";
|
|
6
|
+
function be(i) {
|
|
7
7
|
return v(i, "gamer_token") && typeof i.gamer_token == "string";
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function O(i) {
|
|
10
10
|
return v(i);
|
|
11
11
|
}
|
|
12
|
-
const f =
|
|
13
|
-
function
|
|
12
|
+
const f = de("GamerApiSDK");
|
|
13
|
+
function ye(i) {
|
|
14
14
|
return /^\/[a-z\d-]+$/.test(i);
|
|
15
15
|
}
|
|
16
|
-
async function
|
|
17
|
-
const { promise: i, resolve: t } =
|
|
16
|
+
async function fe() {
|
|
17
|
+
const { promise: i, resolve: t } = ge();
|
|
18
18
|
return wx.login({
|
|
19
19
|
success(n) {
|
|
20
20
|
t(n.code);
|
|
@@ -24,7 +24,7 @@ async function he() {
|
|
|
24
24
|
}
|
|
25
25
|
}), await i;
|
|
26
26
|
}
|
|
27
|
-
const
|
|
27
|
+
const he = {
|
|
28
28
|
get(i) {
|
|
29
29
|
return localStorage.getItem(i) || "";
|
|
30
30
|
},
|
|
@@ -34,7 +34,7 @@ const we = {
|
|
|
34
34
|
remove(i) {
|
|
35
35
|
localStorage.removeItem(i);
|
|
36
36
|
}
|
|
37
|
-
},
|
|
37
|
+
}, we = {
|
|
38
38
|
get(i) {
|
|
39
39
|
try {
|
|
40
40
|
if (b.wx) return wx.getStorageSync(i) || "";
|
|
@@ -58,7 +58,7 @@ const we = {
|
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
}, h = "gamer_token";
|
|
61
|
-
class
|
|
61
|
+
class vr {
|
|
62
62
|
constructor(t, n) {
|
|
63
63
|
l(this, "$NetRequest");
|
|
64
64
|
l(this, "$idToken", "");
|
|
@@ -66,8 +66,8 @@ class hr {
|
|
|
66
66
|
l(this, "$gamerToken", "");
|
|
67
67
|
l(this, "req");
|
|
68
68
|
l(this, "storage");
|
|
69
|
-
this.storage = b.wx ?
|
|
70
|
-
const r =
|
|
69
|
+
this.storage = b.wx ? we : he;
|
|
70
|
+
const r = ye(t) ? t : `https://${pe(t)}`;
|
|
71
71
|
this.$NetRequest = n, this.req = n({
|
|
72
72
|
baseURL: `${r}/v1`,
|
|
73
73
|
timeout: 1e4,
|
|
@@ -88,7 +88,7 @@ class hr {
|
|
|
88
88
|
requestTransformer: (s) => {
|
|
89
89
|
this.$gamerToken && (s.headers.Authorization = `Bearer ${this.$gamerToken}`);
|
|
90
90
|
}
|
|
91
|
-
}),
|
|
91
|
+
}), me() ? this.$gamerToken = L("gamer_token") : this.loadGamerTokenCache();
|
|
92
92
|
}
|
|
93
93
|
get NetRequest() {
|
|
94
94
|
return this.$NetRequest;
|
|
@@ -170,7 +170,7 @@ class hr {
|
|
|
170
170
|
const { code: t, data: n } = await this.req.post(
|
|
171
171
|
"login-with-token",
|
|
172
172
|
a({ id_token: this.idToken, weixin_token: b.wx ? this.weixinToken : null }),
|
|
173
|
-
|
|
173
|
+
be,
|
|
174
174
|
{ message: !1 }
|
|
175
175
|
);
|
|
176
176
|
switch (t) {
|
|
@@ -192,7 +192,7 @@ class hr {
|
|
|
192
192
|
*/
|
|
193
193
|
async getSession() {
|
|
194
194
|
if (!await this.autoLogin()) return null;
|
|
195
|
-
const { data: t } = await this.req.get("session",
|
|
195
|
+
const { data: t } = await this.req.get("session", O, {
|
|
196
196
|
message: !1
|
|
197
197
|
});
|
|
198
198
|
return t;
|
|
@@ -204,25 +204,25 @@ class hr {
|
|
|
204
204
|
*/
|
|
205
205
|
async authRealName(t) {
|
|
206
206
|
if (!await this.autoLogin()) return null;
|
|
207
|
-
const { data: n } = await this.req.post("auth-real-name", a(t),
|
|
207
|
+
const { data: n } = await this.req.post("auth-real-name", a(t), O);
|
|
208
208
|
return n;
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
|
-
const
|
|
211
|
+
const ke = {
|
|
212
212
|
/** 未知 */
|
|
213
213
|
Unknown: "unknown",
|
|
214
214
|
/** 男 */
|
|
215
215
|
Male: "male",
|
|
216
216
|
/** 女 */
|
|
217
217
|
Female: "female"
|
|
218
|
-
},
|
|
218
|
+
}, ve = e.string().enum(ke).lock(), Ce = {
|
|
219
219
|
/** 积分增加 */
|
|
220
220
|
Increase: "increase",
|
|
221
221
|
/** 积分减少 */
|
|
222
222
|
Decrease: "decrease",
|
|
223
223
|
/** 积分过期 */
|
|
224
224
|
Expired: "expired"
|
|
225
|
-
},
|
|
225
|
+
}, Re = e.string().enum(Ce).lock(), Ve = {
|
|
226
226
|
/** 游戏内购买 */
|
|
227
227
|
Order: "order",
|
|
228
228
|
/** 游戏内消耗 */
|
|
@@ -235,21 +235,21 @@ const ve = {
|
|
|
235
235
|
Admin: "admin",
|
|
236
236
|
/** 运营活动 */
|
|
237
237
|
Event: "event"
|
|
238
|
-
},
|
|
238
|
+
}, je = e.string().enum(Ve).lock(), Te = {
|
|
239
239
|
/** 游戏内奖励 */
|
|
240
240
|
GameReward: "game_reward",
|
|
241
241
|
/** 实物商品 */
|
|
242
242
|
Physical: "physical",
|
|
243
243
|
/** 虚拟商品 */
|
|
244
244
|
Virtual: "virtual"
|
|
245
|
-
}, z = e.string().enum(
|
|
245
|
+
}, z = e.string().enum(Te).lock(), qe = {
|
|
246
246
|
/** 待发放 */
|
|
247
247
|
Pending: "pending",
|
|
248
248
|
/** 已发放 */
|
|
249
249
|
Issued: "issued",
|
|
250
250
|
/** 发放失败 */
|
|
251
251
|
Failed: "failed"
|
|
252
|
-
},
|
|
252
|
+
}, xe = e.string().enum(qe).lock(), Se = e.object({
|
|
253
253
|
default_avatar_url: e.string(),
|
|
254
254
|
official_avatar_urls: e.array(e.string()),
|
|
255
255
|
default_nickname: e.string(),
|
|
@@ -267,7 +267,7 @@ const ve = {
|
|
|
267
267
|
exp_description: e.string(),
|
|
268
268
|
credit_description: e.string(),
|
|
269
269
|
send_role_mail_rate_limit: e.number()
|
|
270
|
-
}).lock(),
|
|
270
|
+
}).lock(), Le = e.object({
|
|
271
271
|
member_id: e.string(),
|
|
272
272
|
player_id: e.string(),
|
|
273
273
|
exp: e.number(),
|
|
@@ -276,18 +276,18 @@ const ve = {
|
|
|
276
276
|
credit_expiring: e.number(),
|
|
277
277
|
level_change_time: e.number(),
|
|
278
278
|
level_expire_time: e.number()
|
|
279
|
-
}).lock(),
|
|
279
|
+
}).lock(), Pe = e.object({
|
|
280
280
|
server_id: e.string(),
|
|
281
281
|
server_name: e.string()
|
|
282
|
-
}).lock(),
|
|
282
|
+
}).lock(), Ee = e.object({
|
|
283
283
|
role_id: e.string(),
|
|
284
284
|
role_name: e.string()
|
|
285
285
|
}).lock(), J = e.object({
|
|
286
|
-
...$e.shape,
|
|
287
286
|
...Ee.shape,
|
|
287
|
+
...Pe.shape,
|
|
288
288
|
role_level: e.number(),
|
|
289
289
|
last_login_time: e.number()
|
|
290
|
-
}).lock(),
|
|
290
|
+
}).lock(), $e = e.object({
|
|
291
291
|
...J.shape,
|
|
292
292
|
/** 角色战力 */
|
|
293
293
|
role_fighting: e.number(),
|
|
@@ -297,13 +297,13 @@ const ve = {
|
|
|
297
297
|
kin_name: e.string().optional(),
|
|
298
298
|
/** 宗门职位 */
|
|
299
299
|
kin_position: e.string().optional()
|
|
300
|
-
}).lock(),
|
|
300
|
+
}).lock(), Ue = e.object({
|
|
301
301
|
name: e.string(),
|
|
302
302
|
avatar_url: e.string(),
|
|
303
303
|
bio: e.string(),
|
|
304
|
-
gender:
|
|
304
|
+
gender: ve,
|
|
305
305
|
birthday: e.object({ year: e.number(), month: e.number(), day: e.number() })
|
|
306
|
-
}).lock(),
|
|
306
|
+
}).lock(), X = e.object({
|
|
307
307
|
address_id: e.number(),
|
|
308
308
|
recipient: e.string(),
|
|
309
309
|
mobile: e.string(),
|
|
@@ -312,19 +312,19 @@ const ve = {
|
|
|
312
312
|
district: e.string(),
|
|
313
313
|
address: e.string(),
|
|
314
314
|
is_default: e.bool()
|
|
315
|
-
}).lock(),
|
|
315
|
+
}).lock(), Fe = e.object({
|
|
316
316
|
increased_credit: e.number(),
|
|
317
317
|
decreased_credit: e.number(),
|
|
318
318
|
expired_credit: e.number(),
|
|
319
319
|
balance_credit: e.number()
|
|
320
|
-
}).lock(),
|
|
320
|
+
}).lock(), De = e.object({
|
|
321
321
|
id: e.number(),
|
|
322
|
-
change_type:
|
|
323
|
-
change_scene:
|
|
322
|
+
change_type: Re,
|
|
323
|
+
change_scene: je,
|
|
324
324
|
change_credit: e.number(),
|
|
325
325
|
balance: e.number(),
|
|
326
326
|
change_time: e.number()
|
|
327
|
-
}).lock(),
|
|
327
|
+
}).lock(), Y = e.object({
|
|
328
328
|
benefit_id: e.number(),
|
|
329
329
|
name: e.string(),
|
|
330
330
|
img_url: e.string(),
|
|
@@ -333,7 +333,7 @@ const ve = {
|
|
|
333
333
|
max_level: e.number(),
|
|
334
334
|
product_id: e.number(),
|
|
335
335
|
tag: e.string()
|
|
336
|
-
}).lock(),
|
|
336
|
+
}).lock(), Z = e.object({
|
|
337
337
|
product_id: e.number(),
|
|
338
338
|
catalog_id: e.number(),
|
|
339
339
|
catalog_name: e.string(),
|
|
@@ -359,10 +359,10 @@ const ve = {
|
|
|
359
359
|
created_at: e.number(),
|
|
360
360
|
updated_at: e.number(),
|
|
361
361
|
redeemable_quantity: e.number().optional()
|
|
362
|
-
}).lock(),
|
|
363
|
-
...C(
|
|
364
|
-
product:
|
|
365
|
-
}).lock(),
|
|
362
|
+
}).lock(), Ie = e.object({
|
|
363
|
+
...C(Y.shape, "tag"),
|
|
364
|
+
product: Z.clone().optional()
|
|
365
|
+
}).lock(), Cr = e.union(
|
|
366
366
|
e.object({
|
|
367
367
|
server_id: e.string(),
|
|
368
368
|
role_id: e.string()
|
|
@@ -370,7 +370,7 @@ const ve = {
|
|
|
370
370
|
e.object({
|
|
371
371
|
address_id: e.number()
|
|
372
372
|
})
|
|
373
|
-
).satisfies().lock(),
|
|
373
|
+
).satisfies().lock(), Ge = e.object({
|
|
374
374
|
recipient: e.string(),
|
|
375
375
|
mobile: e.string(),
|
|
376
376
|
province: e.string(),
|
|
@@ -383,7 +383,7 @@ const ve = {
|
|
|
383
383
|
server_id: e.string(),
|
|
384
384
|
role_id: e.string(),
|
|
385
385
|
role_name: e.string()
|
|
386
|
-
}).lock(),
|
|
386
|
+
}).lock(), Ne = e.object({
|
|
387
387
|
redemption_id: e.number(),
|
|
388
388
|
player_id: e.string(),
|
|
389
389
|
product_id: e.number(),
|
|
@@ -394,17 +394,17 @@ const ve = {
|
|
|
394
394
|
catalog_name: e.string(),
|
|
395
395
|
quantity: e.number(),
|
|
396
396
|
amount: e.number(),
|
|
397
|
-
status:
|
|
397
|
+
status: xe,
|
|
398
398
|
created_at: e.number(),
|
|
399
|
-
extra_data: e.union(
|
|
400
|
-
}),
|
|
401
|
-
credit_logs: e.array(
|
|
399
|
+
extra_data: e.union(Ge.clone(), Ae.clone()).satisfies().optional()
|
|
400
|
+
}), Oe = e.guard(Se), B = o({ player: Le }), Be = o({ roles: e.array(J) }), T = o({ role_card: $e }), M = e.guard(Ue), Q = e.guard(X), Me = o({ addresses: e.array(X) }), Qe = e.guard(Fe), Ke = o({
|
|
401
|
+
credit_logs: e.array(De),
|
|
402
402
|
next_token: e.string().optional()
|
|
403
|
-
}),
|
|
404
|
-
redemptions: e.array(
|
|
403
|
+
}), He = o({ products: e.array(Z) }), ze = o({ benefits: e.array(Y) }), Je = o({ benefit: Ie }), Xe = o({
|
|
404
|
+
redemptions: e.array(Ne),
|
|
405
405
|
next_token: e.string().optional()
|
|
406
406
|
});
|
|
407
|
-
class
|
|
407
|
+
class Rr {
|
|
408
408
|
constructor(t) {
|
|
409
409
|
l(this, "token");
|
|
410
410
|
l(this, "req");
|
|
@@ -416,7 +416,7 @@ class kr {
|
|
|
416
416
|
* https://kdocs.cn/l/cgp4gSBMbOf1?linkname=tuhsPt3ihp
|
|
417
417
|
*/
|
|
418
418
|
async getConfig() {
|
|
419
|
-
const { data: t } = await this.req.get("club/config",
|
|
419
|
+
const { data: t } = await this.req.get("club/config", Oe);
|
|
420
420
|
return t;
|
|
421
421
|
}
|
|
422
422
|
/**
|
|
@@ -426,7 +426,7 @@ class kr {
|
|
|
426
426
|
*/
|
|
427
427
|
async getCurrentPlayer() {
|
|
428
428
|
await this.token.autoLogin();
|
|
429
|
-
const { data: t, code: n } = await this.req.get("club/current-player",
|
|
429
|
+
const { data: t, code: n } = await this.req.get("club/current-player", B);
|
|
430
430
|
return (t == null ? void 0 : t.player) ?? { error: n };
|
|
431
431
|
}
|
|
432
432
|
/**
|
|
@@ -441,7 +441,7 @@ class kr {
|
|
|
441
441
|
{
|
|
442
442
|
id_token: this.token.idToken
|
|
443
443
|
},
|
|
444
|
-
|
|
444
|
+
B
|
|
445
445
|
);
|
|
446
446
|
return (t == null ? void 0 : t.player) ?? {
|
|
447
447
|
error: n
|
|
@@ -454,7 +454,7 @@ class kr {
|
|
|
454
454
|
*/
|
|
455
455
|
async getRoles(t, n) {
|
|
456
456
|
if (!await this.token.autoLogin()) return [];
|
|
457
|
-
const { data: r } = await this.req.get("club/roles",
|
|
457
|
+
const { data: r } = await this.req.get("club/roles", Be, {
|
|
458
458
|
params: a({ player_id: t, refresh: n })
|
|
459
459
|
});
|
|
460
460
|
return (r == null ? void 0 : r.roles) || [];
|
|
@@ -496,7 +496,7 @@ class kr {
|
|
|
496
496
|
* https://kdocs.cn/l/cgp4gSBMbOf1?linkname=TMWBCFcOr2
|
|
497
497
|
*/
|
|
498
498
|
async getUserProfile(t) {
|
|
499
|
-
const { data: n } = await this.req.get("club/user-profile",
|
|
499
|
+
const { data: n } = await this.req.get("club/user-profile", M, {
|
|
500
500
|
params: { member_id: t }
|
|
501
501
|
});
|
|
502
502
|
return n;
|
|
@@ -508,7 +508,7 @@ class kr {
|
|
|
508
508
|
*/
|
|
509
509
|
async updateUserProfile(t) {
|
|
510
510
|
await this.token.autoLogin();
|
|
511
|
-
const { data: n, code: r } = await this.req.post("club/user-profile", t,
|
|
511
|
+
const { data: n, code: r } = await this.req.post("club/user-profile", t, M);
|
|
512
512
|
return n ?? {
|
|
513
513
|
error: r
|
|
514
514
|
};
|
|
@@ -520,7 +520,7 @@ class kr {
|
|
|
520
520
|
*/
|
|
521
521
|
async getAddresses() {
|
|
522
522
|
if (!await this.token.autoLogin()) return [];
|
|
523
|
-
const { data: t } = await this.req.get("club/addresses",
|
|
523
|
+
const { data: t } = await this.req.get("club/addresses", Me);
|
|
524
524
|
return (t == null ? void 0 : t.addresses) ?? [];
|
|
525
525
|
}
|
|
526
526
|
/**
|
|
@@ -530,7 +530,7 @@ class kr {
|
|
|
530
530
|
*/
|
|
531
531
|
async addAddress(t) {
|
|
532
532
|
if (!await this.token.autoLogin()) return null;
|
|
533
|
-
const { data: n } = await this.req.post("/club/add-address", a(t),
|
|
533
|
+
const { data: n } = await this.req.post("/club/add-address", a(t), Q);
|
|
534
534
|
return n;
|
|
535
535
|
}
|
|
536
536
|
/**
|
|
@@ -540,7 +540,7 @@ class kr {
|
|
|
540
540
|
*/
|
|
541
541
|
async updateAddress(t) {
|
|
542
542
|
await this.token.autoLogin();
|
|
543
|
-
const { data: n, code: r } = await this.req.post("club/update-address", a(t),
|
|
543
|
+
const { data: n, code: r } = await this.req.post("club/update-address", a(t), Q);
|
|
544
544
|
return n ?? { error: r };
|
|
545
545
|
}
|
|
546
546
|
/**
|
|
@@ -560,7 +560,7 @@ class kr {
|
|
|
560
560
|
*/
|
|
561
561
|
async getUserCredit(t) {
|
|
562
562
|
await this.token.autoLogin();
|
|
563
|
-
const { data: n, code: r } = await this.req.get("club/user-credit",
|
|
563
|
+
const { data: n, code: r } = await this.req.get("club/user-credit", Qe, { params: a(t) });
|
|
564
564
|
return n ?? { error: r };
|
|
565
565
|
}
|
|
566
566
|
/**
|
|
@@ -570,7 +570,7 @@ class kr {
|
|
|
570
570
|
*/
|
|
571
571
|
async getCreditLogs(t) {
|
|
572
572
|
await this.token.autoLogin();
|
|
573
|
-
const { data: n } = await this.req.get("club/credit-logs",
|
|
573
|
+
const { data: n } = await this.req.get("club/credit-logs", Ke, {
|
|
574
574
|
params: a({ max_results: 20, ...t })
|
|
575
575
|
});
|
|
576
576
|
return { credit_logs: (n == null ? void 0 : n.credit_logs) || [], next_token: n == null ? void 0 : n.next_token };
|
|
@@ -582,7 +582,7 @@ class kr {
|
|
|
582
582
|
*/
|
|
583
583
|
async getBenefits() {
|
|
584
584
|
if (!await this.token.autoLogin()) return [];
|
|
585
|
-
const { data: t } = await this.req.get("club/benefits",
|
|
585
|
+
const { data: t } = await this.req.get("club/benefits", ze);
|
|
586
586
|
return (t == null ? void 0 : t.benefits) || [];
|
|
587
587
|
}
|
|
588
588
|
/**
|
|
@@ -592,7 +592,7 @@ class kr {
|
|
|
592
592
|
*/
|
|
593
593
|
async getBenefit(t) {
|
|
594
594
|
if (!await this.token.autoLogin()) return null;
|
|
595
|
-
const { data: n } = await this.req.get("club/benefit",
|
|
595
|
+
const { data: n } = await this.req.get("club/benefit", Je, {
|
|
596
596
|
params: { benefit_id: t }
|
|
597
597
|
});
|
|
598
598
|
return (n == null ? void 0 : n.benefit) || null;
|
|
@@ -603,7 +603,7 @@ class kr {
|
|
|
603
603
|
* https://kdocs.cn/l/cgp4gSBMbOf1?linkname=r3vC3PzfMQ
|
|
604
604
|
*/
|
|
605
605
|
async getProducts(t) {
|
|
606
|
-
const { data: n } = await this.req.get("club/products",
|
|
606
|
+
const { data: n } = await this.req.get("club/products", He, {
|
|
607
607
|
params: t
|
|
608
608
|
});
|
|
609
609
|
return (n == null ? void 0 : n.products) || [];
|
|
@@ -627,7 +627,7 @@ class kr {
|
|
|
627
627
|
*/
|
|
628
628
|
async getRedemptions(t) {
|
|
629
629
|
await this.token.autoLogin();
|
|
630
|
-
const { data: n } = await this.req.get("club/redemptions",
|
|
630
|
+
const { data: n } = await this.req.get("club/redemptions", Xe, {
|
|
631
631
|
params: a({ max_results: 20, ...t })
|
|
632
632
|
});
|
|
633
633
|
return { redemptions: (n == null ? void 0 : n.redemptions) || [], next_token: n == null ? void 0 : n.next_token };
|
|
@@ -652,17 +652,17 @@ const R = {
|
|
|
652
652
|
ExternalCode: "external_gift_code",
|
|
653
653
|
/** 空奖励 */
|
|
654
654
|
VoidItem: "void_item"
|
|
655
|
-
},
|
|
655
|
+
}, W = e.string().enum(R).lock(), Vr = R, ee = W, Ye = {
|
|
656
656
|
/** 世游通行证 ID / Combo ID */
|
|
657
657
|
UserId: "user_id",
|
|
658
658
|
/** 游戏角色 ID */
|
|
659
659
|
RoleId: "role_id"
|
|
660
|
-
},
|
|
660
|
+
}, Ze = e.string().enum(Ye).lock(), We = {
|
|
661
661
|
None: "none",
|
|
662
662
|
Daily: "daily",
|
|
663
663
|
Weekly: "weekly",
|
|
664
664
|
Monthly: "monthly"
|
|
665
|
-
},
|
|
665
|
+
}, et = e.string().enum(We).lock(), c = {
|
|
666
666
|
/** 预约 */
|
|
667
667
|
Preregister: "preregister",
|
|
668
668
|
/** 抽奖 */
|
|
@@ -698,8 +698,10 @@ const R = {
|
|
|
698
698
|
/** 开奖 */
|
|
699
699
|
LotteryDraw: "lottery_draw",
|
|
700
700
|
/** 签到 */
|
|
701
|
-
CheckIn: "check_in"
|
|
702
|
-
|
|
701
|
+
CheckIn: "check_in",
|
|
702
|
+
/** 领取激活码 */
|
|
703
|
+
ClaimActivationKey: "claim_activation_key"
|
|
704
|
+
}, tt = e.string().enum(c).lock(), nt = {
|
|
703
705
|
/** 累计游戏内活跃值 */
|
|
704
706
|
Active: "player_active_points",
|
|
705
707
|
/** 累计登录,单位 人天 */
|
|
@@ -714,14 +716,14 @@ const R = {
|
|
|
714
716
|
MatchCounts: "player_match_counts",
|
|
715
717
|
/** 游戏对局天数 */
|
|
716
718
|
MatchDays: "player_match_days"
|
|
717
|
-
},
|
|
719
|
+
}, te = e.string().enum(nt).lock(), rt = {
|
|
718
720
|
/** 官方上传 */
|
|
719
721
|
System: "system",
|
|
720
722
|
/** 用户投稿 */
|
|
721
723
|
UserSubmission: "user_submission",
|
|
722
724
|
/** 投票入围 */
|
|
723
725
|
Shortlisted: "shortlisted"
|
|
724
|
-
},
|
|
726
|
+
}, it = e.string().enum(rt).lock(), g = {
|
|
725
727
|
/** 未获得奖励 */
|
|
726
728
|
Ineligible: "ineligible",
|
|
727
729
|
/** 奖励未领取 */
|
|
@@ -732,7 +734,7 @@ const R = {
|
|
|
732
734
|
Failed: "failed",
|
|
733
735
|
/** 奖励已发货 */
|
|
734
736
|
Delivered: "delivered"
|
|
735
|
-
},
|
|
737
|
+
}, jr = e.string().enum(g).lock(), P = {
|
|
736
738
|
/**
|
|
737
739
|
* 奖励未领取,拼写错误以兼容后端历史版本,检查请使用 Unclaimed
|
|
738
740
|
*
|
|
@@ -747,7 +749,7 @@ const R = {
|
|
|
747
749
|
Failed: g.Failed,
|
|
748
750
|
/** 奖励已发货 */
|
|
749
751
|
Delivered: g.Delivered
|
|
750
|
-
},
|
|
752
|
+
}, ne = e.string().enum(P).lock(), _ = {
|
|
751
753
|
/** 未获得奖励 */
|
|
752
754
|
Ineligible: g.Ineligible,
|
|
753
755
|
/**
|
|
@@ -764,17 +766,17 @@ const R = {
|
|
|
764
766
|
Failed: g.Failed,
|
|
765
767
|
/** 奖励已发货 */
|
|
766
768
|
Delivered: g.Delivered
|
|
767
|
-
}, E = e.string().enum(_).lock(),
|
|
769
|
+
}, E = e.string().enum(_).lock(), ot = {
|
|
768
770
|
/** 玩法产出奖励 */
|
|
769
771
|
Output: "output",
|
|
770
772
|
/** 玩法参与奖励 */
|
|
771
773
|
Engage: "engage"
|
|
772
|
-
}, $ = e.string().enum(
|
|
774
|
+
}, $ = e.string().enum(ot).lock(), at = {
|
|
773
775
|
/** 私有队伍 */
|
|
774
776
|
Private: "private",
|
|
775
777
|
/** 公开队伍 */
|
|
776
778
|
Public: "public"
|
|
777
|
-
},
|
|
779
|
+
}, st = e.string().enum(at).lock(), w = {
|
|
778
780
|
/** 未知状态 */
|
|
779
781
|
Unknown: "unknown",
|
|
780
782
|
/** 等待开奖 */
|
|
@@ -785,7 +787,7 @@ const R = {
|
|
|
785
787
|
Claimed: "claimed",
|
|
786
788
|
/** 领奖失败 */
|
|
787
789
|
Fail: "fail"
|
|
788
|
-
},
|
|
790
|
+
}, Tr = e.string().enum(w).lock(), ct = {
|
|
789
791
|
/** 发起组队 */
|
|
790
792
|
Assemble: "assemble",
|
|
791
793
|
/** 加入队伍 */
|
|
@@ -796,68 +798,71 @@ const R = {
|
|
|
796
798
|
ChangeVisibility: "change_visibility",
|
|
797
799
|
/** 查询组队信息 */
|
|
798
800
|
Query: "query"
|
|
799
|
-
},
|
|
801
|
+
}, qr = e.string().enum(ct).lock(), ut = {
|
|
800
802
|
/** 查询抽奖券 */
|
|
801
803
|
Query: "query",
|
|
802
804
|
/** 开奖 */
|
|
803
805
|
Draw: "draw",
|
|
804
806
|
/** 领奖 */
|
|
805
807
|
Claim: "claim"
|
|
806
|
-
},
|
|
808
|
+
}, xr = e.string().enum(ut).lock(), lt = e.string().enum(C(R, "GiftCode", "LotteryTicket")), U = e.object({
|
|
807
809
|
reward_item_id: e.number(),
|
|
808
810
|
reward_amount: e.number(),
|
|
809
811
|
reward_item_name: e.string(),
|
|
810
812
|
reward_item_icon_url: e.string(),
|
|
811
813
|
reward_item_desc: e.string().optional(),
|
|
812
|
-
reward_item_type:
|
|
814
|
+
reward_item_type: lt,
|
|
813
815
|
reward_item_rating: e.number()
|
|
814
|
-
}).lock(),
|
|
816
|
+
}).lock(), mt = e.object({
|
|
815
817
|
engage_count: e.number(),
|
|
816
818
|
rewards: e.array(U)
|
|
817
|
-
}).lock(),
|
|
819
|
+
}).lock(), dt = e.union(
|
|
818
820
|
e.object({
|
|
819
821
|
feature_reward_type: e.string().enum("every"),
|
|
820
822
|
reward_details: e.array(U)
|
|
821
823
|
}),
|
|
822
824
|
e.object({
|
|
823
825
|
feature_reward_type: e.string().enum("regular"),
|
|
824
|
-
reward_details: e.array(
|
|
826
|
+
reward_details: e.array(mt)
|
|
825
827
|
})
|
|
826
828
|
).satisfies().lock(), u = e.object({
|
|
827
829
|
feature_name: e.string(),
|
|
828
830
|
feature_id: e.number(),
|
|
829
831
|
description: e.string(),
|
|
830
|
-
cycle:
|
|
832
|
+
cycle: et,
|
|
831
833
|
limit: e.number(),
|
|
832
834
|
since: e.number(),
|
|
833
835
|
until: e.number(),
|
|
834
|
-
engage_account:
|
|
835
|
-
feature_rewards:
|
|
836
|
-
}),
|
|
836
|
+
engage_account: Ze,
|
|
837
|
+
feature_rewards: dt.clone().optional()
|
|
838
|
+
}), gt = c.Cashback, pt = e.object({
|
|
837
839
|
...u.shape,
|
|
838
|
-
feature_type: e.string().enum(
|
|
840
|
+
feature_type: e.string().enum(gt),
|
|
839
841
|
config: e.object({
|
|
840
842
|
order_start_time: e.number(),
|
|
841
843
|
order_end_time: e.number(),
|
|
842
844
|
claim_rewards_start_time: e.number(),
|
|
843
845
|
claim_rewards_end_time: e.number()
|
|
844
846
|
})
|
|
845
|
-
}),
|
|
847
|
+
}), _t = c.CheckIn, bt = e.object({
|
|
848
|
+
...u.shape,
|
|
849
|
+
feature_type: e.string().enum(_t)
|
|
850
|
+
}), yt = c.ClaimActivationKey, ft = e.object({
|
|
846
851
|
...u.shape,
|
|
847
|
-
feature_type: e.string().enum(
|
|
848
|
-
}),
|
|
852
|
+
feature_type: e.string().enum(yt)
|
|
853
|
+
}), ht = c.ClaimRewards, wt = e.object({
|
|
849
854
|
...u.shape,
|
|
850
|
-
feature_type: e.string().enum(
|
|
851
|
-
}),
|
|
855
|
+
feature_type: e.string().enum(ht)
|
|
856
|
+
}), kt = c.Comment, vt = e.object({
|
|
852
857
|
...u.shape,
|
|
853
|
-
feature_type: e.string().enum(
|
|
858
|
+
feature_type: e.string().enum(kt),
|
|
854
859
|
config: e.object({
|
|
855
860
|
comments: e.array(e.string()),
|
|
856
861
|
send_rate: e.number()
|
|
857
862
|
})
|
|
858
|
-
}),
|
|
863
|
+
}), Ct = c.Follow, Rt = e.object({
|
|
859
864
|
...u.shape,
|
|
860
|
-
feature_type: e.string().enum(
|
|
865
|
+
feature_type: e.string().enum(Ct),
|
|
861
866
|
config: e.object({
|
|
862
867
|
platform: e.string(),
|
|
863
868
|
platform_icon: e.string().optional(),
|
|
@@ -865,61 +870,61 @@ const R = {
|
|
|
865
870
|
qr_code_url: e.string().optional(),
|
|
866
871
|
platform_desc: e.string().optional()
|
|
867
872
|
})
|
|
868
|
-
}),
|
|
873
|
+
}), Vt = c.GiftCode, jt = e.object({
|
|
869
874
|
name: e.string(),
|
|
870
875
|
icon_url: e.string(),
|
|
871
876
|
count: e.number()
|
|
872
|
-
}),
|
|
877
|
+
}), Tt = e.object({
|
|
873
878
|
...u.shape,
|
|
874
|
-
feature_type: e.string().enum(
|
|
879
|
+
feature_type: e.string().enum(Vt),
|
|
875
880
|
config: e.object({
|
|
876
|
-
gift_items: e.array(
|
|
881
|
+
gift_items: e.array(jt),
|
|
877
882
|
mp_url: e.string().optional(),
|
|
878
883
|
mp_qrcode_url: e.string().optional()
|
|
879
884
|
})
|
|
880
|
-
}),
|
|
885
|
+
}), qt = c.Invite, xt = e.object({
|
|
881
886
|
...u.shape,
|
|
882
|
-
feature_type: e.string().enum(
|
|
887
|
+
feature_type: e.string().enum(qt),
|
|
883
888
|
config: e.object({
|
|
884
889
|
share_url: e.string()
|
|
885
890
|
})
|
|
886
|
-
}),
|
|
891
|
+
}), St = c.InvitedRegister, Lt = e.object({
|
|
887
892
|
...u.shape,
|
|
888
|
-
feature_type: e.string().enum(
|
|
889
|
-
}),
|
|
893
|
+
feature_type: e.string().enum(St)
|
|
894
|
+
}), Pt = e.string().enum(C(R, "GiftCode", "LotteryTicket")), Et = c.Lottery, $t = e.object({
|
|
890
895
|
reward_item_id: e.number(),
|
|
891
896
|
reward_item_name: e.string(),
|
|
892
|
-
reward_item_type:
|
|
897
|
+
reward_item_type: Pt,
|
|
893
898
|
reward_item_icon_url: e.string(),
|
|
894
899
|
reward_item_desc: e.string().optional(),
|
|
895
900
|
reward_amount: e.number(),
|
|
896
901
|
reward_remaining_stock: e.number()
|
|
897
|
-
}),
|
|
902
|
+
}), Ut = e.object({
|
|
898
903
|
...u.shape,
|
|
899
|
-
feature_type: e.string().enum(
|
|
904
|
+
feature_type: e.string().enum(Et),
|
|
900
905
|
config: e.object({
|
|
901
906
|
consume_item_id: e.number(),
|
|
902
907
|
consume_item_name: e.number(),
|
|
903
908
|
consume_item_icon_url: e.string(),
|
|
904
909
|
consume_item_count: e.number(),
|
|
905
910
|
consume_item_desc: e.string().optional(),
|
|
906
|
-
rewards: e.array(
|
|
911
|
+
rewards: e.array($t)
|
|
907
912
|
})
|
|
908
|
-
}),
|
|
913
|
+
}), Ft = c.LotteryDraw, Dt = e.object({
|
|
909
914
|
...u.shape,
|
|
910
|
-
feature_type: e.string().enum(
|
|
915
|
+
feature_type: e.string().enum(Ft),
|
|
911
916
|
config: e.object({
|
|
912
917
|
draw_not_before: e.number(),
|
|
913
918
|
draw_not_after: e.number()
|
|
914
919
|
})
|
|
915
|
-
}),
|
|
920
|
+
}), It = c.Preregister, Gt = e.object({
|
|
916
921
|
...u.shape,
|
|
917
|
-
feature_type: e.string().enum(
|
|
918
|
-
}),
|
|
922
|
+
feature_type: e.string().enum(It)
|
|
923
|
+
}), At = c.Quest, Nt = e.object({
|
|
919
924
|
...u.shape,
|
|
920
|
-
feature_type: e.string().enum(
|
|
925
|
+
feature_type: e.string().enum(At),
|
|
921
926
|
config: e.object({
|
|
922
|
-
objective:
|
|
927
|
+
objective: te,
|
|
923
928
|
completion_value: e.number(),
|
|
924
929
|
team: e.object({
|
|
925
930
|
feature_id: e.number().optional(),
|
|
@@ -931,20 +936,20 @@ const R = {
|
|
|
931
936
|
required_matches: e.number().min(1).optional()
|
|
932
937
|
}).optional()
|
|
933
938
|
})
|
|
934
|
-
}),
|
|
939
|
+
}), Ot = c.Register, Bt = e.object({
|
|
935
940
|
...u.shape,
|
|
936
|
-
feature_type: e.string().enum(
|
|
937
|
-
}),
|
|
941
|
+
feature_type: e.string().enum(Ot)
|
|
942
|
+
}), Mt = c.Share, Qt = e.object({
|
|
938
943
|
...u.shape,
|
|
939
|
-
feature_type: e.string().enum(
|
|
944
|
+
feature_type: e.string().enum(Mt),
|
|
940
945
|
config: e.object({
|
|
941
946
|
share_platform: e.string(),
|
|
942
947
|
jump_url: e.string().optional(),
|
|
943
948
|
icon_url: e.string().optional()
|
|
944
949
|
})
|
|
945
|
-
}),
|
|
950
|
+
}), Kt = c.Subscribe, Ht = e.object({
|
|
946
951
|
...u.shape,
|
|
947
|
-
feature_type: e.string().enum(
|
|
952
|
+
feature_type: e.string().enum(Kt),
|
|
948
953
|
config: e.object({
|
|
949
954
|
weixin_template_ids: e.array(e.string())
|
|
950
955
|
})
|
|
@@ -955,14 +960,14 @@ const R = {
|
|
|
955
960
|
survey_id: e.string(),
|
|
956
961
|
survey_url: e.string()
|
|
957
962
|
})
|
|
958
|
-
}),
|
|
963
|
+
}), Xt = c.Team, Yt = e.object({
|
|
959
964
|
...u.shape,
|
|
960
|
-
feature_type: e.string().enum(
|
|
965
|
+
feature_type: e.string().enum(Xt),
|
|
961
966
|
config: e.object({
|
|
962
967
|
max_members: e.number().min(1),
|
|
963
968
|
min_members: e.number().min(1)
|
|
964
969
|
})
|
|
965
|
-
}),
|
|
970
|
+
}), Zt = c.Vote, Wt = e.object({
|
|
966
971
|
sn: e.string(),
|
|
967
972
|
name: e.string(),
|
|
968
973
|
img_urls: e.array(e.string()).optional(),
|
|
@@ -972,61 +977,64 @@ const R = {
|
|
|
972
977
|
amount: e.number(),
|
|
973
978
|
finalists: e.bool(),
|
|
974
979
|
last_vote_time: e.number()
|
|
975
|
-
}),
|
|
980
|
+
}), en = e.object({
|
|
976
981
|
...u.shape,
|
|
977
|
-
feature_type: e.string().enum(
|
|
982
|
+
feature_type: e.string().enum(Zt),
|
|
978
983
|
config: e.object({
|
|
979
984
|
vote_feature_ids: e.array(e.number()),
|
|
980
985
|
submission_feature_ids: e.array(e.number()),
|
|
981
986
|
finalists_amount: e.number(),
|
|
982
|
-
source:
|
|
983
|
-
options: e.array(
|
|
987
|
+
source: it,
|
|
988
|
+
options: e.array(Wt),
|
|
984
989
|
rewards: e.array(U)
|
|
985
990
|
})
|
|
986
|
-
}),
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
991
|
+
}), tn = e.union(
|
|
992
|
+
pt,
|
|
993
|
+
bt,
|
|
994
|
+
wt,
|
|
995
|
+
vt,
|
|
996
|
+
Rt,
|
|
997
|
+
Tt,
|
|
998
|
+
xt,
|
|
999
|
+
Lt,
|
|
1000
|
+
Ut,
|
|
1001
|
+
Dt,
|
|
1002
|
+
Gt,
|
|
998
1003
|
Nt,
|
|
999
|
-
|
|
1000
|
-
|
|
1004
|
+
Bt,
|
|
1005
|
+
Qt,
|
|
1001
1006
|
Ht,
|
|
1002
1007
|
Jt,
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1008
|
+
Yt,
|
|
1009
|
+
en,
|
|
1010
|
+
ft
|
|
1011
|
+
).key("feature_type").satisfies(), nn = e.object({
|
|
1006
1012
|
event_name: e.string(),
|
|
1007
1013
|
rules: e.string(),
|
|
1008
1014
|
since: e.number(),
|
|
1009
1015
|
until: e.number(),
|
|
1010
1016
|
visit_count: e.number().optional(),
|
|
1011
|
-
features: e.array(
|
|
1012
|
-
}).lock(), q = e.union(e.string().pattern("NumberString", /^\d+$/), e.number()),
|
|
1017
|
+
features: e.array(tn)
|
|
1018
|
+
}).lock(), q = e.union(e.string().pattern("NumberString", /^\d+$/), e.number()), rn = e.object({
|
|
1013
1019
|
order_total_amount: q,
|
|
1014
1020
|
cashback_total_amount: q,
|
|
1015
1021
|
game_item_count: q
|
|
1016
|
-
}), rn = e.object({
|
|
1017
|
-
gift_code: e.string()
|
|
1018
1022
|
}), on = e.object({
|
|
1023
|
+
activation_key: e.string().disallow("")
|
|
1024
|
+
}), an = e.object({
|
|
1025
|
+
gift_code: e.string()
|
|
1026
|
+
}), sn = e.object({
|
|
1019
1027
|
user_id: e.string(),
|
|
1020
1028
|
name: e.string().optional(),
|
|
1021
1029
|
avatar_url: e.string().optional()
|
|
1022
|
-
}),
|
|
1030
|
+
}), cn = e.object({
|
|
1023
1031
|
lottery_count: e.number()
|
|
1024
|
-
}),
|
|
1032
|
+
}), re = e.object({
|
|
1025
1033
|
reward_id: e.number(),
|
|
1026
1034
|
reward_item_id: e.number(),
|
|
1027
1035
|
reward_source: $,
|
|
1028
1036
|
reward_item_name: e.string(),
|
|
1029
|
-
reward_item_type:
|
|
1037
|
+
reward_item_type: W,
|
|
1030
1038
|
reward_item_icon_url: e.string(),
|
|
1031
1039
|
reward_item_desc: e.string().optional(),
|
|
1032
1040
|
reward_item_rating: e.number(),
|
|
@@ -1036,27 +1044,27 @@ const R = {
|
|
|
1036
1044
|
event_name: e.string(),
|
|
1037
1045
|
feature_id: e.number(),
|
|
1038
1046
|
engagement_id: e.number(),
|
|
1039
|
-
feature_type:
|
|
1047
|
+
feature_type: tt,
|
|
1040
1048
|
receive_time: e.number(),
|
|
1041
1049
|
// https://kdocs.cn/l/ckWFDcOsYEUA?linkname=merUzJsVYH
|
|
1042
1050
|
// 后续会格式化为具体的类型,此处的校验需要对应增加
|
|
1043
1051
|
extra_data: e.record(e.unknown()).optional()
|
|
1044
|
-
}),
|
|
1052
|
+
}), un = e.string().enum(w.Unknown, w.Pending), ln = e.union(
|
|
1045
1053
|
e.object({
|
|
1046
1054
|
ticket: e.string(),
|
|
1047
|
-
status:
|
|
1055
|
+
status: un
|
|
1048
1056
|
}),
|
|
1049
1057
|
e.object({
|
|
1050
1058
|
ticket: e.string(),
|
|
1051
1059
|
status: e.string().enum(C(w, "Unknown", "Pending")),
|
|
1052
|
-
reward:
|
|
1060
|
+
reward: re
|
|
1053
1061
|
})
|
|
1054
|
-
).satisfies(),
|
|
1055
|
-
tickets: e.array(
|
|
1056
|
-
}),
|
|
1062
|
+
).satisfies(), mn = e.object({
|
|
1063
|
+
tickets: e.array(ln)
|
|
1064
|
+
}), dn = e.object({
|
|
1057
1065
|
platforms: e.array(e.string())
|
|
1058
|
-
}),
|
|
1059
|
-
objective:
|
|
1066
|
+
}), gn = e.object({
|
|
1067
|
+
objective: te,
|
|
1060
1068
|
progress: e.number(),
|
|
1061
1069
|
completion_value: e.number().optional(),
|
|
1062
1070
|
team: e.object({
|
|
@@ -1071,24 +1079,24 @@ const R = {
|
|
|
1071
1079
|
})
|
|
1072
1080
|
)
|
|
1073
1081
|
}).optional()
|
|
1074
|
-
}),
|
|
1082
|
+
}), pn = e.object({
|
|
1075
1083
|
platform: e.string()
|
|
1076
|
-
}),
|
|
1084
|
+
}), _n = e.object({
|
|
1077
1085
|
weixin_openid: e.string()
|
|
1078
|
-
}),
|
|
1086
|
+
}), bn = e.object({
|
|
1079
1087
|
serial_number: e.number()
|
|
1080
|
-
}),
|
|
1088
|
+
}), yn = e.object({
|
|
1081
1089
|
team_code: e.string(),
|
|
1082
1090
|
leader_name: e.string(),
|
|
1083
1091
|
total_members: e.number()
|
|
1084
|
-
}),
|
|
1092
|
+
}), Sr = e.object({
|
|
1085
1093
|
is_leader: e.bool(),
|
|
1086
1094
|
is_myself: e.bool().optional(),
|
|
1087
1095
|
role_name: e.string(),
|
|
1088
1096
|
server_name: e.string()
|
|
1089
|
-
}),
|
|
1097
|
+
}), fn = e.object({
|
|
1090
1098
|
team_code: e.string(),
|
|
1091
|
-
visibility:
|
|
1099
|
+
visibility: st,
|
|
1092
1100
|
members: e.array(
|
|
1093
1101
|
e.object({
|
|
1094
1102
|
is_leader: e.bool(),
|
|
@@ -1096,111 +1104,110 @@ const R = {
|
|
|
1096
1104
|
server_name: e.string()
|
|
1097
1105
|
})
|
|
1098
1106
|
)
|
|
1099
|
-
}),
|
|
1107
|
+
}), hn = e.object({
|
|
1100
1108
|
option_sn: e.string()
|
|
1101
|
-
}),
|
|
1109
|
+
}), wn = e.object({
|
|
1102
1110
|
user_id: e.string(),
|
|
1103
1111
|
name: e.string(),
|
|
1104
1112
|
avatar_url: e.string(),
|
|
1105
1113
|
comment: e.string(),
|
|
1106
1114
|
video_note: e.number(),
|
|
1107
1115
|
created_at: e.number()
|
|
1108
|
-
}),
|
|
1109
|
-
ln,
|
|
1110
|
-
an,
|
|
1111
|
-
pn,
|
|
1112
|
-
on,
|
|
1116
|
+
}), F = e.union(
|
|
1113
1117
|
dn,
|
|
1114
|
-
|
|
1115
|
-
gn,
|
|
1116
|
-
nn,
|
|
1117
|
-
rn,
|
|
1118
|
+
cn,
|
|
1118
1119
|
bn,
|
|
1120
|
+
sn,
|
|
1121
|
+
pn,
|
|
1122
|
+
hn,
|
|
1123
|
+
_n,
|
|
1124
|
+
rn,
|
|
1125
|
+
an,
|
|
1126
|
+
fn,
|
|
1127
|
+
gn,
|
|
1119
1128
|
mn,
|
|
1120
|
-
|
|
1129
|
+
on,
|
|
1121
1130
|
e.custom(
|
|
1122
1131
|
"EmptyObject",
|
|
1123
1132
|
(i) => v(i) && Object.keys(i).length === 0
|
|
1124
1133
|
)
|
|
1125
|
-
).satisfies().lock(),
|
|
1134
|
+
).satisfies().lock(), kn = e.object({
|
|
1126
1135
|
reward_id: e.number(),
|
|
1127
1136
|
reward_item_id: e.number(),
|
|
1128
|
-
reward_item_type:
|
|
1137
|
+
reward_item_type: ee,
|
|
1129
1138
|
reward_count: e.number(),
|
|
1130
|
-
reward_status:
|
|
1139
|
+
reward_status: ne,
|
|
1131
1140
|
reward_source: $,
|
|
1132
1141
|
reward_item_name: e.string(),
|
|
1133
1142
|
reward_item_icon_url: e.string(),
|
|
1134
1143
|
reward_item_desc: e.string().optional(),
|
|
1135
1144
|
reward_item_rating: e.number(),
|
|
1136
1145
|
receive_time: e.number(),
|
|
1137
|
-
extra_data: e.union(...
|
|
1138
|
-
}),
|
|
1146
|
+
extra_data: e.union(...F.validators, e.record(e.unknown())).satisfies().optional()
|
|
1147
|
+
}), vn = e.object({
|
|
1139
1148
|
reward_id: e.number(),
|
|
1140
1149
|
reward_item_id: e.number(),
|
|
1141
1150
|
reward_item_name: e.string(),
|
|
1142
|
-
reward_item_type:
|
|
1151
|
+
reward_item_type: ee,
|
|
1143
1152
|
reward_item_icon_url: e.string(),
|
|
1144
1153
|
reward_item_desc: e.string().optional(),
|
|
1145
1154
|
reward_amount: e.number(),
|
|
1146
|
-
reward_status:
|
|
1155
|
+
reward_status: ne,
|
|
1147
1156
|
reward_source: $,
|
|
1148
1157
|
extra_data: e.record(e.unknown()).optional()
|
|
1149
|
-
}),
|
|
1158
|
+
}), Cn = e.object({
|
|
1150
1159
|
engagement_id: e.number(),
|
|
1151
1160
|
user_id: e.string(),
|
|
1152
1161
|
event_id: e.number(),
|
|
1153
1162
|
feature_id: e.number(),
|
|
1154
1163
|
sequence: e.number(),
|
|
1155
|
-
data:
|
|
1164
|
+
data: F.clone().optional(),
|
|
1156
1165
|
server_id: e.string().optional(),
|
|
1157
1166
|
role_id: e.string().optional(),
|
|
1158
1167
|
created_at: e.number(),
|
|
1159
|
-
rewards: e.array(
|
|
1160
|
-
}).lock(),
|
|
1168
|
+
rewards: e.array(kn).optional()
|
|
1169
|
+
}).lock(), Rn = e.object({
|
|
1161
1170
|
allowed: e.bool(),
|
|
1162
1171
|
registered: e.bool()
|
|
1163
|
-
}),
|
|
1172
|
+
}), Vn = e.object({
|
|
1164
1173
|
feature_id: e.number(),
|
|
1165
1174
|
can_engage: e.bool(),
|
|
1166
1175
|
has_unclaimed_rewards: e.bool()
|
|
1167
|
-
}),
|
|
1176
|
+
}), jn = e.object({
|
|
1168
1177
|
engagement_id: e.number(),
|
|
1169
1178
|
engagement: e.object({
|
|
1170
|
-
|
|
1171
|
-
feature_id: e.number(),
|
|
1179
|
+
engagement_id: e.number(),
|
|
1172
1180
|
sequence: e.number(),
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
data: ie.clone().optional()
|
|
1181
|
+
feature_id: e.number(),
|
|
1182
|
+
data: F.clone().optional()
|
|
1176
1183
|
}).optional(),
|
|
1177
|
-
rewards: e.array(
|
|
1184
|
+
rewards: e.array(vn).optional(),
|
|
1178
1185
|
scan: e.bool().optional()
|
|
1179
|
-
}),
|
|
1186
|
+
}), Tn = e.object({
|
|
1180
1187
|
reward_id: e.number(),
|
|
1181
1188
|
reward_status: E
|
|
1182
|
-
}),
|
|
1183
|
-
engagements: e.union(e.array(
|
|
1184
|
-
}),
|
|
1185
|
-
status: e.array(
|
|
1186
|
-
}), Sn = o({
|
|
1187
|
-
engagements: e.array(ie),
|
|
1188
|
-
next_token: e.string().optional()
|
|
1189
|
-
}), Ln = e.guard(Cn), Pn = o({
|
|
1190
|
-
claimed_items: e.array(Rn)
|
|
1189
|
+
}), qn = e.guard(nn), xn = e.guard(Rn), x = o({ count: e.number() }), Sn = o({ first_visit: e.bool() }), Ln = o({
|
|
1190
|
+
engagements: e.union(e.array(wn), e.array(yn))
|
|
1191
|
+
}), Pn = o({
|
|
1192
|
+
status: e.array(Vn)
|
|
1191
1193
|
}), En = o({
|
|
1194
|
+
engagements: e.array(Cn),
|
|
1195
|
+
next_token: e.string().optional()
|
|
1196
|
+
}), $n = e.guard(jn), Un = o({
|
|
1197
|
+
claimed_items: e.array(Tn)
|
|
1198
|
+
}), Fn = o({
|
|
1192
1199
|
reward_status: E
|
|
1193
|
-
}),
|
|
1194
|
-
user_rewards: e.array(
|
|
1200
|
+
}), Dn = o({
|
|
1201
|
+
user_rewards: e.array(re),
|
|
1195
1202
|
next_token: e.string().optional()
|
|
1196
|
-
}),
|
|
1203
|
+
}), In = o({
|
|
1197
1204
|
scene: e.string()
|
|
1198
|
-
}),
|
|
1205
|
+
}), Gn = o({
|
|
1199
1206
|
params: e.string()
|
|
1200
|
-
}),
|
|
1207
|
+
}), An = o({
|
|
1201
1208
|
img: e.string()
|
|
1202
1209
|
});
|
|
1203
|
-
class
|
|
1210
|
+
class Lr {
|
|
1204
1211
|
constructor(t, n) {
|
|
1205
1212
|
l(this, "token");
|
|
1206
1213
|
l(this, "event", 0);
|
|
@@ -1213,7 +1220,7 @@ class qr {
|
|
|
1213
1220
|
* https://kdocs.cn/l/cf2mO2uRLqh9?linkname=OWGSPF3Ysl
|
|
1214
1221
|
*/
|
|
1215
1222
|
async verifyMobileAllowed(t, n) {
|
|
1216
|
-
const { data: r } = await this.req.get("verify-mobile-allowed",
|
|
1223
|
+
const { data: r } = await this.req.get("verify-mobile-allowed", xn, {
|
|
1217
1224
|
params: { game_id: t, mobile: n }
|
|
1218
1225
|
});
|
|
1219
1226
|
return r;
|
|
@@ -1224,7 +1231,7 @@ class qr {
|
|
|
1224
1231
|
* https://kdocs.cn/l/ckWFDcOsYEUA?linkname=wFXxtdNKPm
|
|
1225
1232
|
*/
|
|
1226
1233
|
async getConfig() {
|
|
1227
|
-
const { data: t } = await this.req.get(`event/${this.event}/event-config`,
|
|
1234
|
+
const { data: t } = await this.req.get(`event/${this.event}/event-config`, qn);
|
|
1228
1235
|
return t;
|
|
1229
1236
|
}
|
|
1230
1237
|
/**
|
|
@@ -1257,7 +1264,7 @@ class qr {
|
|
|
1257
1264
|
* https://kdocs.cn/l/ckWFDcOsYEUA?linkname=THtZ4ewIQW
|
|
1258
1265
|
*/
|
|
1259
1266
|
async getEngagements(t) {
|
|
1260
|
-
const { data: n } = await this.req.get(`event/${this.event}/feature-engagements`,
|
|
1267
|
+
const { data: n } = await this.req.get(`event/${this.event}/feature-engagements`, Ln, {
|
|
1261
1268
|
params: { feature_id: t }
|
|
1262
1269
|
});
|
|
1263
1270
|
return (n == null ? void 0 : n.engagements) || [];
|
|
@@ -1272,7 +1279,7 @@ class qr {
|
|
|
1272
1279
|
const { data: n, code: r } = await this.req.post(
|
|
1273
1280
|
`event/${this.event}/visit`,
|
|
1274
1281
|
a(t || {}),
|
|
1275
|
-
|
|
1282
|
+
Sn
|
|
1276
1283
|
);
|
|
1277
1284
|
return n ?? {
|
|
1278
1285
|
error: r
|
|
@@ -1289,7 +1296,7 @@ class qr {
|
|
|
1289
1296
|
*/
|
|
1290
1297
|
async getUserFeatureStatus(t) {
|
|
1291
1298
|
if (!await this.token.autoLogin()) return [];
|
|
1292
|
-
const { data: n } = await this.req.get("event/user-feature-status",
|
|
1299
|
+
const { data: n } = await this.req.get("event/user-feature-status", Pn, {
|
|
1293
1300
|
params: a({ ...t, event_id: this.event }),
|
|
1294
1301
|
message: !1
|
|
1295
1302
|
});
|
|
@@ -1304,7 +1311,7 @@ class qr {
|
|
|
1304
1311
|
*/
|
|
1305
1312
|
async getUserEngagements(t, n) {
|
|
1306
1313
|
if (!await this.token.autoLogin()) return [];
|
|
1307
|
-
const { data: r } = await this.req.get("event/user-engagements",
|
|
1314
|
+
const { data: r } = await this.req.get("event/user-engagements", En, {
|
|
1308
1315
|
params: a({
|
|
1309
1316
|
max_results: 20,
|
|
1310
1317
|
...n,
|
|
@@ -1335,7 +1342,7 @@ class qr {
|
|
|
1335
1342
|
engagement: n,
|
|
1336
1343
|
...r
|
|
1337
1344
|
}),
|
|
1338
|
-
|
|
1345
|
+
$n
|
|
1339
1346
|
);
|
|
1340
1347
|
return s && s.rewards && (s.rewards = s.rewards.map((p) => (p.reward_status = p.reward_status === P.UnclaimedErr ? P.Unclaimed : p.reward_status, p))), s ?? {
|
|
1341
1348
|
error: d
|
|
@@ -1348,7 +1355,7 @@ class qr {
|
|
|
1348
1355
|
*/
|
|
1349
1356
|
async claimRewards(t) {
|
|
1350
1357
|
await this.token.autoLogin();
|
|
1351
|
-
const { data: n, code: r } = await this.req.post("event/claim-rewards", a(t),
|
|
1358
|
+
const { data: n, code: r } = await this.req.post("event/claim-rewards", a(t), Un), s = n == null ? void 0 : n.claimed_items;
|
|
1352
1359
|
return s ? s.map((d) => (d.reward_status = d.reward_status === _.UnclaimedErr ? _.Unclaimed : d.reward_status, d)) : {
|
|
1353
1360
|
error: r
|
|
1354
1361
|
};
|
|
@@ -1363,7 +1370,7 @@ class qr {
|
|
|
1363
1370
|
const { data: n, code: r } = await this.req.post(
|
|
1364
1371
|
"event/claim-weixin-hongbao",
|
|
1365
1372
|
{ reward_id: t },
|
|
1366
|
-
|
|
1373
|
+
Fn
|
|
1367
1374
|
);
|
|
1368
1375
|
return n ? (n.reward_status = n.reward_status === _.UnclaimedErr ? _.Unclaimed : n.reward_status, n) : {
|
|
1369
1376
|
error: r
|
|
@@ -1379,7 +1386,7 @@ class qr {
|
|
|
1379
1386
|
const { data: n } = await this.req.post(
|
|
1380
1387
|
"event/user-rewards",
|
|
1381
1388
|
a({ max_results: 20, ...t, event_id: this.event }),
|
|
1382
|
-
|
|
1389
|
+
Dn
|
|
1383
1390
|
);
|
|
1384
1391
|
return {
|
|
1385
1392
|
user_rewards: ((n == null ? void 0 : n.user_rewards) || []).map((r) => (r.reward_status = r.reward_status === _.UnclaimedErr ? _.Unclaimed : r.reward_status, r)),
|
|
@@ -1417,7 +1424,7 @@ class qr {
|
|
|
1417
1424
|
*/
|
|
1418
1425
|
async getUnlimitQrcodeScene(t) {
|
|
1419
1426
|
if (!await this.token.autoLogin()) return null;
|
|
1420
|
-
const { data: n } = await this.req.get("event/unlimit-qrcode-scene",
|
|
1427
|
+
const { data: n } = await this.req.get("event/unlimit-qrcode-scene", In, {
|
|
1421
1428
|
params: { params: t }
|
|
1422
1429
|
});
|
|
1423
1430
|
return (n == null ? void 0 : n.scene) ?? null;
|
|
@@ -1430,7 +1437,7 @@ class qr {
|
|
|
1430
1437
|
* @param scene - 小程序码 scene 值
|
|
1431
1438
|
*/
|
|
1432
1439
|
async getParamsByQrcodeScene(t) {
|
|
1433
|
-
const { data: n } = await this.req.get("event/params-by-qrcode-scene",
|
|
1440
|
+
const { data: n } = await this.req.get("event/params-by-qrcode-scene", Gn, {
|
|
1434
1441
|
params: { scene: t }
|
|
1435
1442
|
});
|
|
1436
1443
|
return (n == null ? void 0 : n.params) ?? null;
|
|
@@ -1442,16 +1449,16 @@ class qr {
|
|
|
1442
1449
|
*/
|
|
1443
1450
|
async generateUnlimitQrcode(t) {
|
|
1444
1451
|
if (!await this.token.autoLogin()) return null;
|
|
1445
|
-
const { data: n } = await this.req.post("event/unlimit-qrcode", a(t),
|
|
1452
|
+
const { data: n } = await this.req.post("event/unlimit-qrcode", a(t), An);
|
|
1446
1453
|
return (n == null ? void 0 : n.img) ?? null;
|
|
1447
1454
|
}
|
|
1448
1455
|
}
|
|
1449
|
-
const
|
|
1456
|
+
const Nn = {
|
|
1450
1457
|
/** 所有人均可以发帖 */
|
|
1451
1458
|
All: "all",
|
|
1452
1459
|
/** 指定用户可发帖 */
|
|
1453
1460
|
Limit: "limit"
|
|
1454
|
-
},
|
|
1461
|
+
}, On = e.string().enum(Nn).lock(), Bn = {
|
|
1455
1462
|
/** 待审核(仅自己可见) */
|
|
1456
1463
|
Pending: "pending",
|
|
1457
1464
|
/** 审核通过 */
|
|
@@ -1460,14 +1467,14 @@ const In = {
|
|
|
1460
1467
|
Failed: "failed",
|
|
1461
1468
|
/** 嫌疑(仅自己可见) */
|
|
1462
1469
|
Suspect: "suspect"
|
|
1463
|
-
},
|
|
1470
|
+
}, ie = e.string().enum(Bn).lock(), Mn = {
|
|
1464
1471
|
/** 系统通知 */
|
|
1465
1472
|
System: "system",
|
|
1466
1473
|
/** 评论我的 */
|
|
1467
1474
|
Comment: "comment",
|
|
1468
1475
|
/** 点赞通知 */
|
|
1469
1476
|
Like: "like"
|
|
1470
|
-
},
|
|
1477
|
+
}, Pr = e.string().enum(Mn).lock(), m = {
|
|
1471
1478
|
/** 系统通知 */
|
|
1472
1479
|
System: "system",
|
|
1473
1480
|
/** 帖子被置顶 */
|
|
@@ -1492,24 +1499,24 @@ const In = {
|
|
|
1492
1499
|
ReplyLiked: "reply_liked",
|
|
1493
1500
|
/** 回复被删除 */
|
|
1494
1501
|
ReplyDeleted: "reply_deleted"
|
|
1495
|
-
},
|
|
1502
|
+
}, Qn = e.string().enum(m).lock(), oe = e.object({
|
|
1496
1503
|
forum_id: e.number(),
|
|
1497
1504
|
icon_url: e.string(),
|
|
1498
1505
|
name: e.string(),
|
|
1499
1506
|
tags: e.array(e.string()),
|
|
1500
1507
|
sort: e.number(),
|
|
1501
|
-
mode:
|
|
1508
|
+
mode: On,
|
|
1502
1509
|
member_ids: e.array(e.number())
|
|
1503
|
-
}).lock(),
|
|
1510
|
+
}).lock(), D = e.object({
|
|
1504
1511
|
topic_id: e.number(),
|
|
1505
1512
|
cover_url: e.string(),
|
|
1506
1513
|
name: e.string(),
|
|
1507
1514
|
description: e.string(),
|
|
1508
1515
|
tags: e.array(e.string()),
|
|
1509
1516
|
post_num: e.number()
|
|
1510
|
-
}).lock(),
|
|
1517
|
+
}).lock(), I = e.object({
|
|
1511
1518
|
post_id: e.number(),
|
|
1512
|
-
forum:
|
|
1519
|
+
forum: oe,
|
|
1513
1520
|
posted_by: e.string(),
|
|
1514
1521
|
nickname: e.string(),
|
|
1515
1522
|
avatar_url: e.string(),
|
|
@@ -1521,15 +1528,15 @@ const In = {
|
|
|
1521
1528
|
comments_num: e.number(),
|
|
1522
1529
|
liked: e.bool(),
|
|
1523
1530
|
image_urls: e.array(e.string()),
|
|
1524
|
-
topics: e.array(
|
|
1531
|
+
topics: e.array(D),
|
|
1525
1532
|
event_ids: e.array(e.number()),
|
|
1526
1533
|
is_pinned: e.bool(),
|
|
1527
1534
|
is_highlighted: e.bool(),
|
|
1528
|
-
status:
|
|
1535
|
+
status: ie,
|
|
1529
1536
|
create_time: e.number()
|
|
1530
|
-
}).lock(),
|
|
1537
|
+
}).lock(), ae = e.object({
|
|
1531
1538
|
err_msg: e.string().optional()
|
|
1532
|
-
}).lock(),
|
|
1539
|
+
}).lock(), Kn = e.object({
|
|
1533
1540
|
reply_id: e.number(),
|
|
1534
1541
|
reply_content: e.string().optional(),
|
|
1535
1542
|
replied_by: e.string(),
|
|
@@ -1548,7 +1555,7 @@ const In = {
|
|
|
1548
1555
|
content: e.string(),
|
|
1549
1556
|
like_num: e.number(),
|
|
1550
1557
|
liked: e.bool(),
|
|
1551
|
-
reply_to:
|
|
1558
|
+
reply_to: Kn,
|
|
1552
1559
|
create_time: e.number()
|
|
1553
1560
|
}).lock(), k = e.object({
|
|
1554
1561
|
comment_id: e.number(),
|
|
@@ -1568,24 +1575,24 @@ const In = {
|
|
|
1568
1575
|
liked: e.bool(),
|
|
1569
1576
|
image_url: e.string(),
|
|
1570
1577
|
create_time: e.number(),
|
|
1571
|
-
status:
|
|
1578
|
+
status: ie,
|
|
1572
1579
|
replies: e.array(V).optional()
|
|
1573
|
-
}).lock(),
|
|
1580
|
+
}).lock(), Hn = e.object({
|
|
1574
1581
|
image_url: e.string(),
|
|
1575
1582
|
upload_url: e.string(),
|
|
1576
1583
|
existed: e.bool()
|
|
1577
1584
|
}).lock(), y = e.object({
|
|
1578
1585
|
notification_id: e.string(),
|
|
1579
|
-
notification_type:
|
|
1586
|
+
notification_type: Qn,
|
|
1580
1587
|
is_read: e.bool(),
|
|
1581
1588
|
create_time: e.number(),
|
|
1582
1589
|
origin_user_id: e.string(),
|
|
1583
1590
|
origin_user_name: e.string(),
|
|
1584
1591
|
origin_user_avatar_url: e.string()
|
|
1585
|
-
}).lock(),
|
|
1592
|
+
}).lock(), zn = e.object({
|
|
1586
1593
|
system_message_subject: e.string(),
|
|
1587
1594
|
system_message_content: e.string()
|
|
1588
|
-
}).lock(),
|
|
1595
|
+
}).lock(), G = e.object({
|
|
1589
1596
|
post_id: e.number(),
|
|
1590
1597
|
post_subject: e.string(),
|
|
1591
1598
|
post_summary: e.string(),
|
|
@@ -1593,81 +1600,81 @@ const In = {
|
|
|
1593
1600
|
}).lock(), j = e.object({
|
|
1594
1601
|
comment_id: e.number(),
|
|
1595
1602
|
comment_content: e.string()
|
|
1596
|
-
}).lock(),
|
|
1603
|
+
}).lock(), A = e.object({
|
|
1597
1604
|
reply_id: e.number(),
|
|
1598
1605
|
reply_content: e.string()
|
|
1599
|
-
}).lock(),
|
|
1606
|
+
}).lock(), Jn = e.object({
|
|
1600
1607
|
...y.shape,
|
|
1601
|
-
...
|
|
1608
|
+
...zn.shape,
|
|
1602
1609
|
notification_type: e.string().enum(m.System)
|
|
1603
|
-
}),
|
|
1610
|
+
}), Xn = e.object({
|
|
1604
1611
|
...y.shape,
|
|
1605
|
-
...
|
|
1612
|
+
...G.shape,
|
|
1606
1613
|
notification_type: e.string().enum(
|
|
1607
1614
|
m.PostPinned,
|
|
1608
1615
|
m.PostHighlighted,
|
|
1609
1616
|
m.PostDeleted,
|
|
1610
1617
|
m.PostLiked
|
|
1611
1618
|
)
|
|
1612
|
-
}),
|
|
1619
|
+
}), Yn = e.object({
|
|
1613
1620
|
...y.shape,
|
|
1614
|
-
...
|
|
1621
|
+
...G.shape,
|
|
1615
1622
|
...j.shape,
|
|
1616
1623
|
notification_type: e.string().enum(m.PostCommented)
|
|
1617
|
-
}),
|
|
1624
|
+
}), Zn = e.object({
|
|
1618
1625
|
...y.shape,
|
|
1619
1626
|
...j.shape,
|
|
1620
|
-
...
|
|
1627
|
+
...A.shape,
|
|
1621
1628
|
notification_type: e.string().enum(m.CommentReplied)
|
|
1622
|
-
}),
|
|
1629
|
+
}), Wn = e.object({
|
|
1623
1630
|
...y.shape,
|
|
1624
1631
|
...j.shape,
|
|
1625
|
-
...
|
|
1632
|
+
...G.shape,
|
|
1626
1633
|
notification_type: e.string().enum(m.CommentLiked, m.CommentDeleted)
|
|
1627
|
-
}),
|
|
1634
|
+
}), er = e.object({
|
|
1628
1635
|
...y.shape,
|
|
1629
|
-
...
|
|
1636
|
+
...A.shape,
|
|
1630
1637
|
notification_type: e.string().enum(m.ReplyReplied),
|
|
1631
1638
|
comment_id: e.number(),
|
|
1632
1639
|
reply_to_reply_id: e.number(),
|
|
1633
1640
|
reply_to_reply_content: e.string()
|
|
1634
|
-
}),
|
|
1641
|
+
}), tr = e.object({
|
|
1635
1642
|
...y.shape,
|
|
1636
|
-
...
|
|
1643
|
+
...A.shape,
|
|
1637
1644
|
...j.shape,
|
|
1638
1645
|
notification_type: e.string().enum(m.ReplyLiked, m.ReplyDeleted)
|
|
1639
|
-
}),
|
|
1640
|
-
Hn,
|
|
1641
|
-
zn,
|
|
1646
|
+
}), nr = e.union(
|
|
1642
1647
|
Jn,
|
|
1643
|
-
Kn,
|
|
1644
1648
|
Xn,
|
|
1645
1649
|
Yn,
|
|
1646
|
-
Zn
|
|
1647
|
-
|
|
1648
|
-
|
|
1650
|
+
Zn,
|
|
1651
|
+
Wn,
|
|
1652
|
+
er,
|
|
1653
|
+
tr
|
|
1654
|
+
).satisfies().lock(), rr = o({ forums: e.array(oe) }), ir = o({ topics: e.array(D) }), or = o({ topic: D }), ar = o({ post: I }), K = o({
|
|
1655
|
+
posts: e.array(I),
|
|
1649
1656
|
next_token: e.string().optional()
|
|
1650
|
-
}),
|
|
1657
|
+
}), sr = o({ post: I, antispam: ae }), cr = o({
|
|
1651
1658
|
replies: e.array(V),
|
|
1652
1659
|
next_token: e.string().optional()
|
|
1653
|
-
}),
|
|
1660
|
+
}), ur = o({ reply: V }), lr = o({
|
|
1654
1661
|
reply: V.clone().optional(),
|
|
1655
|
-
antispam:
|
|
1656
|
-
}),
|
|
1662
|
+
antispam: ae.clone().optional()
|
|
1663
|
+
}), mr = o({ comment: k }), dr = o({
|
|
1657
1664
|
comments: e.array(k),
|
|
1658
1665
|
next_token: e.string().optional()
|
|
1659
|
-
}),
|
|
1666
|
+
}), gr = o({
|
|
1660
1667
|
comment: k.clone().optional(),
|
|
1661
1668
|
antispam: k.clone().optional()
|
|
1662
|
-
}),
|
|
1663
|
-
notifications: e.array(
|
|
1669
|
+
}), pr = e.guard(Hn), _r = o({
|
|
1670
|
+
notifications: e.array(nr),
|
|
1664
1671
|
next_token: e.string().optional()
|
|
1665
|
-
}),
|
|
1672
|
+
}), br = o({
|
|
1666
1673
|
system: e.number(),
|
|
1667
1674
|
comment: e.number(),
|
|
1668
1675
|
like: e.number()
|
|
1669
1676
|
});
|
|
1670
|
-
class
|
|
1677
|
+
class Er {
|
|
1671
1678
|
constructor(t) {
|
|
1672
1679
|
l(this, "token");
|
|
1673
1680
|
l(this, "req");
|
|
@@ -1679,7 +1686,7 @@ class Sr {
|
|
|
1679
1686
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=QaqUa2K0z0
|
|
1680
1687
|
*/
|
|
1681
1688
|
async getForums() {
|
|
1682
|
-
const { data: t } = await this.req.get("community/forums",
|
|
1689
|
+
const { data: t } = await this.req.get("community/forums", rr);
|
|
1683
1690
|
return (t == null ? void 0 : t.forums) || [];
|
|
1684
1691
|
}
|
|
1685
1692
|
/**
|
|
@@ -1688,7 +1695,7 @@ class Sr {
|
|
|
1688
1695
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=mIwpymAQom
|
|
1689
1696
|
*/
|
|
1690
1697
|
async getTopics() {
|
|
1691
|
-
const { data: t } = await this.req.get("community/topics",
|
|
1698
|
+
const { data: t } = await this.req.get("community/topics", ir);
|
|
1692
1699
|
return (t == null ? void 0 : t.topics) || [];
|
|
1693
1700
|
}
|
|
1694
1701
|
/**
|
|
@@ -1697,7 +1704,7 @@ class Sr {
|
|
|
1697
1704
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=Jvw7xMK31K
|
|
1698
1705
|
*/
|
|
1699
1706
|
async getTopic(t) {
|
|
1700
|
-
const { data: n, code: r } = await this.req.get("community/topic",
|
|
1707
|
+
const { data: n, code: r } = await this.req.get("community/topic", or, {
|
|
1701
1708
|
params: { topic_id: t }
|
|
1702
1709
|
});
|
|
1703
1710
|
return (n == null ? void 0 : n.topic) ?? { error: r };
|
|
@@ -1708,7 +1715,7 @@ class Sr {
|
|
|
1708
1715
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=XKI9lDVrPq
|
|
1709
1716
|
*/
|
|
1710
1717
|
async getPosts(t) {
|
|
1711
|
-
const { data: n, code: r } = await this.req.get("community/posts",
|
|
1718
|
+
const { data: n, code: r } = await this.req.get("community/posts", K, {
|
|
1712
1719
|
params: a(t)
|
|
1713
1720
|
});
|
|
1714
1721
|
return n ?? { error: r };
|
|
@@ -1719,7 +1726,7 @@ class Sr {
|
|
|
1719
1726
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=yXubbZuDlC
|
|
1720
1727
|
*/
|
|
1721
1728
|
async getPinnedPosts(t, n, r) {
|
|
1722
|
-
const { data: s, code: d } = await this.req.get("community/pinned-posts",
|
|
1729
|
+
const { data: s, code: d } = await this.req.get("community/pinned-posts", K, {
|
|
1723
1730
|
params: a({ forum_id: t, max_results: n, next_token: r })
|
|
1724
1731
|
});
|
|
1725
1732
|
return s ?? { error: d };
|
|
@@ -1730,7 +1737,7 @@ class Sr {
|
|
|
1730
1737
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=hj1AZy5rcP
|
|
1731
1738
|
*/
|
|
1732
1739
|
async getPost(t) {
|
|
1733
|
-
const { data: n, code: r } = await this.req.get("community/post",
|
|
1740
|
+
const { data: n, code: r } = await this.req.get("community/post", ar, {
|
|
1734
1741
|
params: { post_id: t }
|
|
1735
1742
|
});
|
|
1736
1743
|
return (n == null ? void 0 : n.post) ?? { error: r };
|
|
@@ -1741,7 +1748,7 @@ class Sr {
|
|
|
1741
1748
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=M5okHBuaVk
|
|
1742
1749
|
*/
|
|
1743
1750
|
async post(t) {
|
|
1744
|
-
const { data: n, code: r } = await this.req.post("community/post", a(t),
|
|
1751
|
+
const { data: n, code: r } = await this.req.post("community/post", a(t), sr);
|
|
1745
1752
|
return n ?? {
|
|
1746
1753
|
error: r
|
|
1747
1754
|
};
|
|
@@ -1752,7 +1759,7 @@ class Sr {
|
|
|
1752
1759
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=djKbX7lFdp
|
|
1753
1760
|
*/
|
|
1754
1761
|
async getComments(t) {
|
|
1755
|
-
const { data: n, code: r } = await this.req.get("community/comments",
|
|
1762
|
+
const { data: n, code: r } = await this.req.get("community/comments", dr, {
|
|
1756
1763
|
params: a(t)
|
|
1757
1764
|
});
|
|
1758
1765
|
return n ?? { error: r };
|
|
@@ -1763,7 +1770,7 @@ class Sr {
|
|
|
1763
1770
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=RIc7oxVGae
|
|
1764
1771
|
*/
|
|
1765
1772
|
async getComment(t) {
|
|
1766
|
-
const { data: n, code: r } = await this.req.get("community/comment",
|
|
1773
|
+
const { data: n, code: r } = await this.req.get("community/comment", mr, {
|
|
1767
1774
|
params: { comment_id: t }
|
|
1768
1775
|
});
|
|
1769
1776
|
return (n == null ? void 0 : n.comment) ?? { error: r };
|
|
@@ -1775,7 +1782,7 @@ class Sr {
|
|
|
1775
1782
|
*/
|
|
1776
1783
|
async comment(t) {
|
|
1777
1784
|
await this.token.autoLogin();
|
|
1778
|
-
const { data: n, code: r } = await this.req.post("community/comment", a(t),
|
|
1785
|
+
const { data: n, code: r } = await this.req.post("community/comment", a(t), gr);
|
|
1779
1786
|
return n ?? {
|
|
1780
1787
|
error: r
|
|
1781
1788
|
};
|
|
@@ -1786,7 +1793,7 @@ class Sr {
|
|
|
1786
1793
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=sVKBbY83MY
|
|
1787
1794
|
*/
|
|
1788
1795
|
async getReplies(t) {
|
|
1789
|
-
const { data: n } = await this.req.get("community/replies",
|
|
1796
|
+
const { data: n } = await this.req.get("community/replies", cr, {
|
|
1790
1797
|
params: a({ max_results: 20, ...t })
|
|
1791
1798
|
});
|
|
1792
1799
|
return n ?? { replies: [] };
|
|
@@ -1797,7 +1804,7 @@ class Sr {
|
|
|
1797
1804
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=kxhcSXD3MG
|
|
1798
1805
|
*/
|
|
1799
1806
|
async getReply(t) {
|
|
1800
|
-
const { data: n, code: r } = await this.req.get("community/reply",
|
|
1807
|
+
const { data: n, code: r } = await this.req.get("community/reply", ur, {
|
|
1801
1808
|
params: { reply_id: t }
|
|
1802
1809
|
});
|
|
1803
1810
|
return (n == null ? void 0 : n.reply) ?? { error: r };
|
|
@@ -1809,7 +1816,7 @@ class Sr {
|
|
|
1809
1816
|
*/
|
|
1810
1817
|
async reply(t) {
|
|
1811
1818
|
await this.token.autoLogin();
|
|
1812
|
-
const { data: n, code: r } = await this.req.post("community/reply", a(t),
|
|
1819
|
+
const { data: n, code: r } = await this.req.post("community/reply", a(t), lr);
|
|
1813
1820
|
return n ?? {
|
|
1814
1821
|
error: r
|
|
1815
1822
|
};
|
|
@@ -1845,7 +1852,7 @@ class Sr {
|
|
|
1845
1852
|
*/
|
|
1846
1853
|
async getMediaPresignedUrl(t) {
|
|
1847
1854
|
await this.token.autoLogin();
|
|
1848
|
-
const { data: n } = await this.req.get("community/media-presign-url",
|
|
1855
|
+
const { data: n } = await this.req.get("community/media-presign-url", pr, {
|
|
1849
1856
|
params: t
|
|
1850
1857
|
});
|
|
1851
1858
|
return n;
|
|
@@ -1859,7 +1866,7 @@ class Sr {
|
|
|
1859
1866
|
*/
|
|
1860
1867
|
async getNotifications(t) {
|
|
1861
1868
|
await this.token.autoLogin();
|
|
1862
|
-
const { data: n } = await this.req.get("community/notifications",
|
|
1869
|
+
const { data: n } = await this.req.get("community/notifications", _r, {
|
|
1863
1870
|
params: a({ max_results: 20, ...t })
|
|
1864
1871
|
});
|
|
1865
1872
|
return n || { notifications: [] };
|
|
@@ -1871,7 +1878,7 @@ class Sr {
|
|
|
1871
1878
|
*/
|
|
1872
1879
|
async getUnreadNotificationsCount() {
|
|
1873
1880
|
if (!await this.token.autoLogin()) return null;
|
|
1874
|
-
const { data: t } = await this.req.get("community/unread-notifications-count",
|
|
1881
|
+
const { data: t } = await this.req.get("community/unread-notifications-count", br);
|
|
1875
1882
|
return t;
|
|
1876
1883
|
}
|
|
1877
1884
|
/**
|
|
@@ -1885,17 +1892,17 @@ class Sr {
|
|
|
1885
1892
|
return n;
|
|
1886
1893
|
}
|
|
1887
1894
|
}
|
|
1888
|
-
const
|
|
1895
|
+
const yr = o({
|
|
1889
1896
|
nonce_str: e.string(),
|
|
1890
1897
|
timestamp: e.number(),
|
|
1891
1898
|
signature: e.string()
|
|
1892
1899
|
});
|
|
1893
|
-
var
|
|
1900
|
+
var fr = /* @__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))(fr || {});
|
|
1894
1901
|
function S(i) {
|
|
1895
1902
|
return v(i, "open_id", "union_id", "weixin_token");
|
|
1896
1903
|
}
|
|
1897
1904
|
const H = "wx_login_cache";
|
|
1898
|
-
class
|
|
1905
|
+
class $r {
|
|
1899
1906
|
/**
|
|
1900
1907
|
* 创建微信相关功能接口
|
|
1901
1908
|
*
|
|
@@ -1929,7 +1936,7 @@ class Lr {
|
|
|
1929
1936
|
const t = this.token.storage.get(H);
|
|
1930
1937
|
if (!t)
|
|
1931
1938
|
return null;
|
|
1932
|
-
const n =
|
|
1939
|
+
const n = _e(t);
|
|
1933
1940
|
return S(n) ? (this.token.weixinToken = n.weixin_token, await this.token.autoLogin(), n) : null;
|
|
1934
1941
|
}
|
|
1935
1942
|
/**
|
|
@@ -1955,7 +1962,7 @@ class Lr {
|
|
|
1955
1962
|
const t = await this.getLoginCache();
|
|
1956
1963
|
if (t)
|
|
1957
1964
|
return t;
|
|
1958
|
-
const n = await
|
|
1965
|
+
const n = await fe(), { data: r, code: s } = await this.req.post(
|
|
1959
1966
|
"weixin/login",
|
|
1960
1967
|
{ code: n, appid: this.appid },
|
|
1961
1968
|
S,
|
|
@@ -1982,9 +1989,9 @@ class Lr {
|
|
|
1982
1989
|
async webLogin(t = "snsapi_userinfo") {
|
|
1983
1990
|
const n = L("code"), r = Date.now(), s = +L("state");
|
|
1984
1991
|
if (!n || !s || s < r - 1e3 * 60 * 5 || s > r) {
|
|
1985
|
-
const
|
|
1992
|
+
const ce = N(["code", "state"]);
|
|
1986
1993
|
location.replace(
|
|
1987
|
-
`https://open.weixin.qq.com/connect/oauth2/authorize?appid=${this.appid}&redirect_uri=${encodeURIComponent(
|
|
1994
|
+
`https://open.weixin.qq.com/connect/oauth2/authorize?appid=${this.appid}&redirect_uri=${encodeURIComponent(ce)}&response_type=code&scope=${t}&state=${r}#wechat_redirect`
|
|
1988
1995
|
);
|
|
1989
1996
|
return;
|
|
1990
1997
|
}
|
|
@@ -1992,7 +1999,7 @@ class Lr {
|
|
|
1992
1999
|
return { error: n };
|
|
1993
2000
|
const d = N(["code", "state"]);
|
|
1994
2001
|
"replaceState" in history && history.replaceState({}, "", d);
|
|
1995
|
-
const { data: p, code:
|
|
2002
|
+
const { data: p, code: se } = await this.req.post(
|
|
1996
2003
|
"weixin/login",
|
|
1997
2004
|
{
|
|
1998
2005
|
code: n,
|
|
@@ -2000,7 +2007,7 @@ class Lr {
|
|
|
2000
2007
|
},
|
|
2001
2008
|
S
|
|
2002
2009
|
);
|
|
2003
|
-
return p && (this.token.weixinToken = p.weixin_token, await this.token.autoLogin()), p ?? { error:
|
|
2010
|
+
return p && (this.token.weixinToken = p.weixin_token, await this.token.autoLogin()), p ?? { error: se };
|
|
2004
2011
|
}
|
|
2005
2012
|
/**
|
|
2006
2013
|
* 关联游戏账号,无返回值,全程静默
|
|
@@ -2025,7 +2032,7 @@ class Lr {
|
|
|
2025
2032
|
* https://kdocs.cn/l/cf2mO2uRLqh9?linkname=CuWOqxr9Ue
|
|
2026
2033
|
*/
|
|
2027
2034
|
async getJSSDKConfig() {
|
|
2028
|
-
const { data: t } = await this.req.get("weixin/offiaccount/jssdk-sign",
|
|
2035
|
+
const { data: t } = await this.req.get("weixin/offiaccount/jssdk-sign", yr, {
|
|
2029
2036
|
params: {
|
|
2030
2037
|
appid: this.appid,
|
|
2031
2038
|
url: location.href.split("#")[0]
|
|
@@ -2040,144 +2047,146 @@ class Lr {
|
|
|
2040
2047
|
}
|
|
2041
2048
|
}
|
|
2042
2049
|
export {
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2050
|
+
ae as AntispamValidator,
|
|
2051
|
+
vr as AuthToken,
|
|
2052
|
+
rn as CashbackEngagementDataValidator,
|
|
2053
|
+
on as ClaimActivationKeyEngagementDataValidator,
|
|
2046
2054
|
_ as ClaimRewardStatus,
|
|
2047
2055
|
E as ClaimRewardStatusValidator,
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2056
|
+
Tn as ClaimedItemValidator,
|
|
2057
|
+
X as ClubAddressValidator,
|
|
2058
|
+
Rr as ClubApi,
|
|
2059
|
+
Y as ClubBenefitSummaryValidator,
|
|
2060
|
+
Ie as ClubBenefitValidator,
|
|
2061
|
+
Ve as ClubCreditChangeScene,
|
|
2062
|
+
je as ClubCreditChangeSceneValidator,
|
|
2063
|
+
Ce as ClubCreditChangeType,
|
|
2064
|
+
Re as ClubCreditChangeTypeValidator,
|
|
2065
|
+
De as ClubCreditLogValidator,
|
|
2066
|
+
Se as ClubGlobalConfigValidator,
|
|
2067
|
+
Te as ClubItemType,
|
|
2060
2068
|
z as ClubItemTypeValidator,
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2069
|
+
Le as ClubPlayerValidator,
|
|
2070
|
+
Z as ClubProductValidator,
|
|
2071
|
+
qe as ClubRedemptionStatus,
|
|
2072
|
+
xe as ClubRedemptionStatusValidator,
|
|
2073
|
+
Fe as ClubUserCreditValidator,
|
|
2074
|
+
Ue as ClubUserProfileValidator,
|
|
2075
|
+
wn as CommentEngagementValidator,
|
|
2068
2076
|
k as CommentValidator,
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2077
|
+
Er as CommunityApi,
|
|
2078
|
+
Ye as EngageAccountType,
|
|
2079
|
+
Ze as EngageAccountTypeValidator,
|
|
2080
|
+
jn as EngageResponseValidator,
|
|
2081
|
+
vn as EngageRewardValidator,
|
|
2082
|
+
Lr as EventApi,
|
|
2083
|
+
nn as EventConfigValidator,
|
|
2084
|
+
pt as EventFeatureConfigOfCashbackValidator,
|
|
2085
|
+
bt as EventFeatureConfigOfCheckInValidator,
|
|
2086
|
+
ft as EventFeatureConfigOfClaimActivationKeyValidator,
|
|
2087
|
+
wt as EventFeatureConfigOfClaimRewardsValidator,
|
|
2088
|
+
vt as EventFeatureConfigOfCommentValidator,
|
|
2089
|
+
Rt as EventFeatureConfigOfFollowValidator,
|
|
2090
|
+
Tt as EventFeatureConfigOfGiftCodeValidator,
|
|
2091
|
+
xt as EventFeatureConfigOfInviteValidator,
|
|
2092
|
+
Lt as EventFeatureConfigOfInvitedRegisterValidator,
|
|
2093
|
+
Dt as EventFeatureConfigOfLotteryDrawValidator,
|
|
2094
|
+
Ut as EventFeatureConfigOfLotteryValidator,
|
|
2095
|
+
Gt as EventFeatureConfigOfPreregisterValidator,
|
|
2087
2096
|
Nt as EventFeatureConfigOfQuestValidator,
|
|
2088
|
-
|
|
2089
|
-
|
|
2097
|
+
Bt as EventFeatureConfigOfRegisterValidator,
|
|
2098
|
+
Qt as EventFeatureConfigOfShareValidator,
|
|
2090
2099
|
Ht as EventFeatureConfigOfSubscribeValidator,
|
|
2091
2100
|
Jt as EventFeatureConfigOfSurveyValidator,
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2101
|
+
Yt as EventFeatureConfigOfTeamValidator,
|
|
2102
|
+
en as EventFeatureConfigOfVoteValidator,
|
|
2103
|
+
tn as EventFeatureConfigValidator,
|
|
2104
|
+
We as EventPeriodType,
|
|
2105
|
+
et as EventPeriodTypeValidator,
|
|
2097
2106
|
U as EventRewardItemConfigValidator,
|
|
2098
2107
|
Ae as ExtraGameRewardValidator,
|
|
2099
|
-
|
|
2100
|
-
|
|
2108
|
+
Ge as ExtraPhysicalShipmentValidator,
|
|
2109
|
+
dt as FeatureRewardValidator,
|
|
2101
2110
|
c as FeatureType,
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2111
|
+
tt as FeatureTypeValidator,
|
|
2112
|
+
Nn as ForumMode,
|
|
2113
|
+
On as ForumModeValidator,
|
|
2114
|
+
oe as ForumValidator,
|
|
2106
2115
|
R as GamerItemType,
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
+
W as GamerItemTypeValidator,
|
|
2117
|
+
ke as Gender,
|
|
2118
|
+
ve as GenderValidator,
|
|
2119
|
+
an as GiftCodeEngagementDataValidator,
|
|
2120
|
+
sn as InviteEngagementDataValidator,
|
|
2121
|
+
ut as LotteryDrawAction,
|
|
2122
|
+
xr as LotteryDrawActionValidator,
|
|
2123
|
+
mn as LotteryDrawEngagementDataValidator,
|
|
2124
|
+
cn as LotteryEngagementDataValidator,
|
|
2116
2125
|
w as LotteryTicketStatus,
|
|
2117
|
-
|
|
2126
|
+
Tr as LotteryTicketStatusValidator,
|
|
2118
2127
|
y as NotificationBaseValidator,
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2128
|
+
Mn as NotificationCategory,
|
|
2129
|
+
Pr as NotificationCategoryValidator,
|
|
2130
|
+
Zn as NotificationCommentReplyValidator,
|
|
2131
|
+
Wn as NotificationCommentValidator,
|
|
2123
2132
|
j as NotificationPayloadCommentValidator,
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2133
|
+
G as NotificationPayloadPostValidator,
|
|
2134
|
+
A as NotificationPayloadReplyValidator,
|
|
2135
|
+
zn as NotificationPayloadSystemValidator,
|
|
2136
|
+
Yn as NotificationPostCommentValidator,
|
|
2137
|
+
Xn as NotificationPostValidator,
|
|
2138
|
+
er as NotificationReplyRepliedValidator,
|
|
2139
|
+
tr as NotificationReplyValidator,
|
|
2140
|
+
Jn as NotificationSystemValidator,
|
|
2132
2141
|
m as NotificationType,
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2142
|
+
Qn as NotificationTypeValidator,
|
|
2143
|
+
nr as NotificationValidator,
|
|
2144
|
+
$e as PlayerRoleCardValidator,
|
|
2136
2145
|
J as PlayerRoleValidator,
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2146
|
+
Bn as PostStatus,
|
|
2147
|
+
ie as PostStatusValidator,
|
|
2148
|
+
I as PostValidator,
|
|
2149
|
+
dn as PreregisterEngagementDataValidator,
|
|
2150
|
+
Hn as PresignedUrlResponseValidator,
|
|
2151
|
+
gn as QuestEngagementDataValidator,
|
|
2152
|
+
nt as QuestObjective,
|
|
2153
|
+
te as QuestObjectiveValidator,
|
|
2154
|
+
Cr as RedeemParamsValidator,
|
|
2155
|
+
Ne as RedemptionValidator,
|
|
2156
|
+
mt as RegularRewardValidator,
|
|
2157
|
+
Kn as ReplyToValidator,
|
|
2149
2158
|
V as ReplyValidator,
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2159
|
+
Vr as RewardItemType,
|
|
2160
|
+
ee as RewardItemTypeValidator,
|
|
2161
|
+
ot as RewardSource,
|
|
2153
2162
|
$ as RewardSourceValidator,
|
|
2154
2163
|
g as RewardStatus,
|
|
2155
2164
|
P as RewardStatusSuffix,
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2165
|
+
ne as RewardStatusSuffixValidator,
|
|
2166
|
+
jr as RewardStatusValidator,
|
|
2167
|
+
kn as RewardValidator,
|
|
2168
|
+
Ee as RoleBaseInfoValidator,
|
|
2169
|
+
Pe as ServerBaseInfoValidator,
|
|
2170
|
+
pn as ShareEngagementDataValidator,
|
|
2171
|
+
bn as SurveyEngagementDataValidator,
|
|
2172
|
+
ct as TeamAction,
|
|
2173
|
+
qr as TeamActionValidator,
|
|
2174
|
+
fn as TeamEngagementDataValidator,
|
|
2175
|
+
yn as TeamEngagementValidator,
|
|
2176
|
+
Sr as TeamMemberValidator,
|
|
2177
|
+
at as TeamVisibility,
|
|
2178
|
+
st as TeamVisibilityValidator,
|
|
2179
|
+
D as TopicValidator,
|
|
2180
|
+
F as UserEngagementDataValidator,
|
|
2181
|
+
Cn as UserEngagementValidator,
|
|
2182
|
+
Vn as UserFeatureStatusValidator,
|
|
2183
|
+
re as UserRewardValidator,
|
|
2184
|
+
Rn as VerifyMobileResultValidator,
|
|
2185
|
+
hn as VoteEngagementDataValidator,
|
|
2186
|
+
rt as VoteOptionSource,
|
|
2187
|
+
it as VoteOptionSourceValidator,
|
|
2188
|
+
$r as WeixinApi,
|
|
2189
|
+
_n as WeixinSubscribeEngagementDataValidator,
|
|
2190
|
+
fr as WeixinWebLoginErrorCode,
|
|
2191
|
+
yr as isWeixinSignResponse
|
|
2183
2192
|
};
|