@seayoo-web/gamer-api 2.10.8 → 2.10.9
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 +145 -144
- package/package.json +5 -5
- package/types/src/event.enums.d.ts +2 -10
package/dist/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { isComboWebView as
|
|
2
|
-
import { isPlainObject as k, supportWx as b, useConsole as
|
|
1
|
+
import { isComboWebView as le } from "@seayoo-web/combo-webview";
|
|
2
|
+
import { isPlainObject as k, supportWx as b, useConsole as ue, usePromise as me, pruneURL as de, supportWindow as ge, queryString as L, pruneObject as c, omitFields as P, parseJSON as pe, removePara as G } from "@seayoo-web/utils";
|
|
3
3
|
import { v as e, objectGuard as s } from "@seayoo-web/validator";
|
|
4
|
-
function
|
|
4
|
+
function _e(i) {
|
|
5
5
|
return k(i, "gamer_token") && typeof i.gamer_token == "string";
|
|
6
6
|
}
|
|
7
7
|
function O(i) {
|
|
8
8
|
return k(i);
|
|
9
9
|
}
|
|
10
|
-
const j =
|
|
11
|
-
function
|
|
10
|
+
const j = ue("GamerApiSDK");
|
|
11
|
+
function be(i) {
|
|
12
12
|
return /^\/[a-z\d-]+$/.test(i);
|
|
13
13
|
}
|
|
14
|
-
async function
|
|
15
|
-
const { promise: i, resolve: t } =
|
|
14
|
+
async function ye() {
|
|
15
|
+
const { promise: i, resolve: t } = me();
|
|
16
16
|
return wx.login({
|
|
17
17
|
success(n) {
|
|
18
18
|
t(n.code);
|
|
@@ -22,7 +22,7 @@ async function fe() {
|
|
|
22
22
|
}
|
|
23
23
|
}), await i;
|
|
24
24
|
}
|
|
25
|
-
const
|
|
25
|
+
const fe = {
|
|
26
26
|
get(i) {
|
|
27
27
|
return localStorage.getItem(i) || "";
|
|
28
28
|
},
|
|
@@ -32,7 +32,7 @@ const he = {
|
|
|
32
32
|
remove(i) {
|
|
33
33
|
localStorage.removeItem(i);
|
|
34
34
|
}
|
|
35
|
-
},
|
|
35
|
+
}, he = {
|
|
36
36
|
get(i) {
|
|
37
37
|
try {
|
|
38
38
|
if (b()) return wx.getStorageSync(i) || "";
|
|
@@ -64,8 +64,8 @@ class Qr {
|
|
|
64
64
|
req;
|
|
65
65
|
storage;
|
|
66
66
|
constructor(t, n) {
|
|
67
|
-
this.storage = b() ?
|
|
68
|
-
const r =
|
|
67
|
+
this.storage = b() ? he : fe;
|
|
68
|
+
const r = be(t) ? t : `https://${de(t)}`;
|
|
69
69
|
if (this.$NetRequest = n, this.req = n({
|
|
70
70
|
baseURL: `${r}/v1`,
|
|
71
71
|
timeout: 1e4,
|
|
@@ -86,9 +86,9 @@ class Qr {
|
|
|
86
86
|
requestTransformer: (a) => {
|
|
87
87
|
this.$gamerToken && (a.headers.Authorization = `Bearer ${this.$gamerToken}`);
|
|
88
88
|
}
|
|
89
|
-
}),
|
|
89
|
+
}), ge()) {
|
|
90
90
|
const a = /^(?:localhost|[\d.]+):\d{4}$/.test(location.host), o = L("gamer_token");
|
|
91
|
-
(
|
|
91
|
+
(le() || a && o) && (this.$gamerToken = o);
|
|
92
92
|
}
|
|
93
93
|
this.$gamerToken || this.loadGamerTokenCache();
|
|
94
94
|
}
|
|
@@ -171,7 +171,7 @@ class Qr {
|
|
|
171
171
|
const { code: n, data: r } = await this.req.post(
|
|
172
172
|
"login-with-token",
|
|
173
173
|
c({ id_token: this.idToken, weixin_token: t ? this.weixinToken : null }),
|
|
174
|
-
|
|
174
|
+
_e,
|
|
175
175
|
{
|
|
176
176
|
message: !1,
|
|
177
177
|
cacheTTL: 300,
|
|
@@ -213,21 +213,21 @@ class Qr {
|
|
|
213
213
|
return n;
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
|
-
const
|
|
216
|
+
const we = {
|
|
217
217
|
/** 未知 */
|
|
218
218
|
Unknown: "unknown",
|
|
219
219
|
/** 男 */
|
|
220
220
|
Male: "male",
|
|
221
221
|
/** 女 */
|
|
222
222
|
Female: "female"
|
|
223
|
-
},
|
|
223
|
+
}, ke = e.string().enum(we).lock(), ve = {
|
|
224
224
|
/** 积分增加 */
|
|
225
225
|
Increase: "increase",
|
|
226
226
|
/** 积分减少 */
|
|
227
227
|
Decrease: "decrease",
|
|
228
228
|
/** 积分过期 */
|
|
229
229
|
Expired: "expired"
|
|
230
|
-
},
|
|
230
|
+
}, Ve = e.string().enum(ve).lock(), Ce = {
|
|
231
231
|
/** 游戏内购买 */
|
|
232
232
|
Order: "order",
|
|
233
233
|
/** 游戏内消耗 */
|
|
@@ -240,21 +240,21 @@ const ke = {
|
|
|
240
240
|
Admin: "admin",
|
|
241
241
|
/** 运营活动 */
|
|
242
242
|
Event: "event"
|
|
243
|
-
},
|
|
243
|
+
}, Re = e.string().enum(Ce).lock(), je = {
|
|
244
244
|
/** 游戏内奖励 */
|
|
245
245
|
GameReward: "game_reward",
|
|
246
246
|
/** 实物商品 */
|
|
247
247
|
Physical: "physical",
|
|
248
248
|
/** 虚拟商品 */
|
|
249
249
|
Virtual: "virtual"
|
|
250
|
-
}, H = e.string().enum(
|
|
250
|
+
}, H = e.string().enum(je).lock(), Te = {
|
|
251
251
|
/** 待发放 */
|
|
252
252
|
Pending: "pending",
|
|
253
253
|
/** 已发放 */
|
|
254
254
|
Issued: "issued",
|
|
255
255
|
/** 发放失败 */
|
|
256
256
|
Failed: "failed"
|
|
257
|
-
},
|
|
257
|
+
}, qe = e.string().enum(Te).lock(), xe = e.object({
|
|
258
258
|
default_avatar_url: e.string(),
|
|
259
259
|
official_avatar_urls: e.array(e.string()),
|
|
260
260
|
default_nickname: e.string(),
|
|
@@ -272,7 +272,7 @@ const ke = {
|
|
|
272
272
|
exp_description: e.string(),
|
|
273
273
|
credit_description: e.string(),
|
|
274
274
|
send_role_mail_rate_limit: e.number()
|
|
275
|
-
}).lock(),
|
|
275
|
+
}).lock(), Se = e.object({
|
|
276
276
|
member_id: e.string(),
|
|
277
277
|
player_id: e.string(),
|
|
278
278
|
exp: e.number(),
|
|
@@ -281,18 +281,18 @@ const ke = {
|
|
|
281
281
|
credit_expiring: e.number(),
|
|
282
282
|
level_change_time: e.number(),
|
|
283
283
|
level_expire_time: e.number()
|
|
284
|
-
}).lock(),
|
|
284
|
+
}).lock(), Le = e.object({
|
|
285
285
|
server_id: e.string(),
|
|
286
286
|
server_name: e.string()
|
|
287
|
-
}).lock(),
|
|
287
|
+
}).lock(), Pe = e.object({
|
|
288
288
|
role_id: e.string(),
|
|
289
289
|
role_name: e.string()
|
|
290
290
|
}).lock(), z = e.object({
|
|
291
|
-
...Ee.shape,
|
|
292
291
|
...Pe.shape,
|
|
292
|
+
...Le.shape,
|
|
293
293
|
role_level: e.number(),
|
|
294
294
|
last_login_time: e.number()
|
|
295
|
-
}).lock(),
|
|
295
|
+
}).lock(), Ee = e.object({
|
|
296
296
|
...z.shape,
|
|
297
297
|
/** 角色战力 */
|
|
298
298
|
role_fighting: e.number(),
|
|
@@ -302,11 +302,11 @@ const ke = {
|
|
|
302
302
|
kin_name: e.string().optional(),
|
|
303
303
|
/** 宗门职位 */
|
|
304
304
|
kin_position: e.string().optional()
|
|
305
|
-
}).lock(),
|
|
305
|
+
}).lock(), $e = e.object({
|
|
306
306
|
name: e.string(),
|
|
307
307
|
avatar_url: e.string(),
|
|
308
308
|
bio: e.string(),
|
|
309
|
-
gender:
|
|
309
|
+
gender: ke,
|
|
310
310
|
birthday: e.object({ year: e.number(), month: e.number(), day: e.number() })
|
|
311
311
|
}).lock(), J = e.object({
|
|
312
312
|
address_id: e.number(),
|
|
@@ -317,15 +317,15 @@ const ke = {
|
|
|
317
317
|
district: e.string(),
|
|
318
318
|
address: e.string(),
|
|
319
319
|
is_default: e.bool()
|
|
320
|
-
}).lock(),
|
|
320
|
+
}).lock(), Fe = e.object({
|
|
321
321
|
increased_credit: e.number(),
|
|
322
322
|
decreased_credit: e.number(),
|
|
323
323
|
expired_credit: e.number(),
|
|
324
324
|
balance_credit: e.number()
|
|
325
|
-
}).lock(),
|
|
325
|
+
}).lock(), Ue = e.object({
|
|
326
326
|
id: e.number(),
|
|
327
|
-
change_type:
|
|
328
|
-
change_scene:
|
|
327
|
+
change_type: Ve,
|
|
328
|
+
change_scene: Re,
|
|
329
329
|
change_credit: e.number(),
|
|
330
330
|
balance: e.number(),
|
|
331
331
|
change_time: e.number()
|
|
@@ -364,7 +364,7 @@ const ke = {
|
|
|
364
364
|
created_at: e.number(),
|
|
365
365
|
updated_at: e.number(),
|
|
366
366
|
redeemable_quantity: e.number().optional()
|
|
367
|
-
}).lock(),
|
|
367
|
+
}).lock(), De = e.object({
|
|
368
368
|
...P(Z.shape, "tag"),
|
|
369
369
|
product: X.clone().optional()
|
|
370
370
|
}).lock(), Br = e.union(
|
|
@@ -375,7 +375,7 @@ const ke = {
|
|
|
375
375
|
e.object({
|
|
376
376
|
address_id: e.number()
|
|
377
377
|
})
|
|
378
|
-
).satisfies().lock(),
|
|
378
|
+
).satisfies().lock(), Ie = e.object({
|
|
379
379
|
recipient: e.string(),
|
|
380
380
|
mobile: e.string(),
|
|
381
381
|
province: e.string(),
|
|
@@ -384,11 +384,11 @@ const ke = {
|
|
|
384
384
|
address: e.string(),
|
|
385
385
|
express_company: e.string(),
|
|
386
386
|
express_number: e.string()
|
|
387
|
-
}).lock(),
|
|
387
|
+
}).lock(), Ae = e.object({
|
|
388
388
|
server_id: e.string(),
|
|
389
389
|
role_id: e.string(),
|
|
390
390
|
role_name: e.string()
|
|
391
|
-
}).lock(),
|
|
391
|
+
}).lock(), Ge = e.object({
|
|
392
392
|
redemption_id: e.number(),
|
|
393
393
|
player_id: e.string(),
|
|
394
394
|
product_id: e.number(),
|
|
@@ -399,14 +399,14 @@ const ke = {
|
|
|
399
399
|
catalog_name: e.string(),
|
|
400
400
|
quantity: e.number(),
|
|
401
401
|
amount: e.number(),
|
|
402
|
-
status:
|
|
402
|
+
status: qe,
|
|
403
403
|
created_at: e.number(),
|
|
404
|
-
extra_data: e.union(
|
|
405
|
-
}),
|
|
406
|
-
credit_logs: e.array(
|
|
404
|
+
extra_data: e.union(Ie.clone(), Ae.clone()).satisfies().optional()
|
|
405
|
+
}), Oe = e.guard(xe), N = s({ player: Se }), Ne = s({ roles: e.array(z) }), T = s({ role_card: Ee }), Q = e.guard($e), B = e.guard(J), Qe = s({ addresses: e.array(J) }), Be = e.guard(Fe), Me = s({
|
|
406
|
+
credit_logs: e.array(Ue),
|
|
407
407
|
next_token: e.string().optional()
|
|
408
|
-
}),
|
|
409
|
-
redemptions: e.array(
|
|
408
|
+
}), Ke = s({ products: e.array(X) }), He = s({ benefits: e.array(Z) }), ze = s({ benefit: De }), Je = s({
|
|
409
|
+
redemptions: e.array(Ge),
|
|
410
410
|
next_token: e.string().optional()
|
|
411
411
|
});
|
|
412
412
|
class Mr {
|
|
@@ -421,7 +421,7 @@ class Mr {
|
|
|
421
421
|
* https://kdocs.cn/l/cgp4gSBMbOf1?linkname=tuhsPt3ihp
|
|
422
422
|
*/
|
|
423
423
|
async getConfig(t) {
|
|
424
|
-
const { data: n } = await this.req.get("club/config",
|
|
424
|
+
const { data: n } = await this.req.get("club/config", Oe, t);
|
|
425
425
|
return n;
|
|
426
426
|
}
|
|
427
427
|
/**
|
|
@@ -462,7 +462,7 @@ class Mr {
|
|
|
462
462
|
*/
|
|
463
463
|
async getRoles(t, n, r) {
|
|
464
464
|
if (!await this.token.autoLogin()) return [];
|
|
465
|
-
const { data: a } = await this.req.get("club/roles",
|
|
465
|
+
const { data: a } = await this.req.get("club/roles", Ne, {
|
|
466
466
|
...r,
|
|
467
467
|
params: c({ player_id: t, refresh: n })
|
|
468
468
|
});
|
|
@@ -534,7 +534,7 @@ class Mr {
|
|
|
534
534
|
*/
|
|
535
535
|
async getAddresses(t) {
|
|
536
536
|
if (!await this.token.autoLogin()) return [];
|
|
537
|
-
const { data: n } = await this.req.get("club/addresses",
|
|
537
|
+
const { data: n } = await this.req.get("club/addresses", Qe, t);
|
|
538
538
|
return n?.addresses ?? [];
|
|
539
539
|
}
|
|
540
540
|
/**
|
|
@@ -582,7 +582,7 @@ class Mr {
|
|
|
582
582
|
*/
|
|
583
583
|
async getUserCredit(t, n) {
|
|
584
584
|
await this.token.autoLogin();
|
|
585
|
-
const { data: r, code: a, message: o } = await this.req.get("club/user-credit",
|
|
585
|
+
const { data: r, code: a, message: o } = await this.req.get("club/user-credit", Be, {
|
|
586
586
|
...n,
|
|
587
587
|
params: c(t)
|
|
588
588
|
});
|
|
@@ -598,7 +598,7 @@ class Mr {
|
|
|
598
598
|
*/
|
|
599
599
|
async getCreditLogs(t, n) {
|
|
600
600
|
await this.token.autoLogin();
|
|
601
|
-
const { data: r } = await this.req.get("club/credit-logs",
|
|
601
|
+
const { data: r } = await this.req.get("club/credit-logs", Me, {
|
|
602
602
|
...n,
|
|
603
603
|
params: c({ max_results: 20, ...t })
|
|
604
604
|
});
|
|
@@ -614,7 +614,7 @@ class Mr {
|
|
|
614
614
|
*/
|
|
615
615
|
async getBenefits(t) {
|
|
616
616
|
if (!await this.token.autoLogin()) return [];
|
|
617
|
-
const { data: n } = await this.req.get("club/benefits",
|
|
617
|
+
const { data: n } = await this.req.get("club/benefits", He, t);
|
|
618
618
|
return n?.benefits || [];
|
|
619
619
|
}
|
|
620
620
|
/**
|
|
@@ -624,7 +624,7 @@ class Mr {
|
|
|
624
624
|
*/
|
|
625
625
|
async getBenefit(t, n) {
|
|
626
626
|
if (!await this.token.autoLogin()) return null;
|
|
627
|
-
const { data: r } = await this.req.get("club/benefit",
|
|
627
|
+
const { data: r } = await this.req.get("club/benefit", ze, {
|
|
628
628
|
...n,
|
|
629
629
|
params: { benefit_id: t }
|
|
630
630
|
});
|
|
@@ -636,7 +636,7 @@ class Mr {
|
|
|
636
636
|
* https://kdocs.cn/l/cgp4gSBMbOf1?linkname=r3vC3PzfMQ
|
|
637
637
|
*/
|
|
638
638
|
async getProducts(t, n) {
|
|
639
|
-
const { data: r } = await this.req.get("club/products",
|
|
639
|
+
const { data: r } = await this.req.get("club/products", Ke, {
|
|
640
640
|
...n,
|
|
641
641
|
params: t
|
|
642
642
|
});
|
|
@@ -662,7 +662,7 @@ class Mr {
|
|
|
662
662
|
*/
|
|
663
663
|
async getRedemptions(t, n) {
|
|
664
664
|
await this.token.autoLogin();
|
|
665
|
-
const { data: r } = await this.req.get("club/redemptions",
|
|
665
|
+
const { data: r } = await this.req.get("club/redemptions", Je, {
|
|
666
666
|
...n,
|
|
667
667
|
params: c({ max_results: 20, ...t })
|
|
668
668
|
});
|
|
@@ -693,17 +693,17 @@ const v = {
|
|
|
693
693
|
ExternalCode: "external_gift_code",
|
|
694
694
|
/** 空奖励 */
|
|
695
695
|
VoidItem: "void_item"
|
|
696
|
-
}, Y = e.string().enum(v).lock(), Kr = v, W = Y,
|
|
696
|
+
}, Y = e.string().enum(v).lock(), Kr = v, W = Y, Ze = {
|
|
697
697
|
/** 世游通行证 ID / Combo ID */
|
|
698
698
|
UserId: "user_id",
|
|
699
699
|
/** 游戏角色 ID */
|
|
700
700
|
RoleId: "role_id"
|
|
701
|
-
},
|
|
701
|
+
}, Xe = e.string().enum(Ze).lock(), Ye = {
|
|
702
702
|
None: "none",
|
|
703
703
|
Daily: "daily",
|
|
704
704
|
Weekly: "weekly",
|
|
705
705
|
Monthly: "monthly"
|
|
706
|
-
},
|
|
706
|
+
}, We = e.string().enum(Ye).lock(), l = {
|
|
707
707
|
/** 预约 */
|
|
708
708
|
Preregister: "preregister",
|
|
709
709
|
/** 抽奖 */
|
|
@@ -746,7 +746,7 @@ const v = {
|
|
|
746
746
|
ClaimActivationKey: "claim_activation_key",
|
|
747
747
|
/** 不朽箴言特有的 AI 聊天 */
|
|
748
748
|
ZeroChatgpt: "zero_chatgpt"
|
|
749
|
-
},
|
|
749
|
+
}, et = e.string().enum(l).lock(), tt = {
|
|
750
750
|
/** 累计游戏内活跃值 */
|
|
751
751
|
Active: "player_active_points",
|
|
752
752
|
/** 累计登录,单位 人天 */
|
|
@@ -766,15 +766,17 @@ const v = {
|
|
|
766
766
|
/** 账号等级目标 */
|
|
767
767
|
PlayerLevel: "player_level",
|
|
768
768
|
/** 活动道具累计获取 */
|
|
769
|
-
EventItems: "event_items"
|
|
770
|
-
|
|
769
|
+
EventItems: "event_items",
|
|
770
|
+
/**游戏内任务 */
|
|
771
|
+
GameTask: "game_task"
|
|
772
|
+
}, ee = e.string().enum(tt).lock(), nt = {
|
|
771
773
|
/** 官方上传 */
|
|
772
774
|
System: "system",
|
|
773
775
|
/** 用户投稿 */
|
|
774
776
|
UserSubmission: "user_submission",
|
|
775
777
|
/** 投票入围 */
|
|
776
778
|
Shortlisted: "shortlisted"
|
|
777
|
-
},
|
|
779
|
+
}, rt = e.string().enum(nt).lock(), d = {
|
|
778
780
|
/** 未获得奖励 */
|
|
779
781
|
Ineligible: "ineligible",
|
|
780
782
|
/** 奖励未领取 */
|
|
@@ -785,7 +787,7 @@ const v = {
|
|
|
785
787
|
Failed: "failed",
|
|
786
788
|
/** 奖励已发货 */
|
|
787
789
|
Delivered: "delivered"
|
|
788
|
-
}, Hr = e.string().enum(d).lock(),
|
|
790
|
+
}, Hr = e.string().enum(d).lock(), at = {
|
|
789
791
|
/** 奖励未领取 */
|
|
790
792
|
Unclaimed: d.Unclaimed,
|
|
791
793
|
/** 奖励已领取 */
|
|
@@ -794,7 +796,7 @@ const v = {
|
|
|
794
796
|
Failed: d.Failed,
|
|
795
797
|
/** 奖励已发货 */
|
|
796
798
|
Delivered: d.Delivered
|
|
797
|
-
}, te = e.string().enum(
|
|
799
|
+
}, te = e.string().enum(at).lock(), ot = {
|
|
798
800
|
/** 未获得奖励 */
|
|
799
801
|
Ineligible: d.Ineligible,
|
|
800
802
|
/** 奖励未领取 */
|
|
@@ -805,17 +807,17 @@ const v = {
|
|
|
805
807
|
Failed: d.Failed,
|
|
806
808
|
/** 奖励已发货 */
|
|
807
809
|
Delivered: d.Delivered
|
|
808
|
-
}, E = e.string().enum(
|
|
810
|
+
}, E = e.string().enum(ot).lock(), it = {
|
|
809
811
|
/** 玩法产出奖励 */
|
|
810
812
|
Output: "output",
|
|
811
813
|
/** 玩法参与奖励 */
|
|
812
814
|
Engage: "engage"
|
|
813
|
-
}, $ = e.string().enum(
|
|
815
|
+
}, $ = e.string().enum(it).lock(), st = {
|
|
814
816
|
/** 私有队伍 */
|
|
815
817
|
Private: "private",
|
|
816
818
|
/** 公开队伍 */
|
|
817
819
|
Public: "public"
|
|
818
|
-
},
|
|
820
|
+
}, ct = e.string().enum(st).lock(), h = {
|
|
819
821
|
/** 未知状态 */
|
|
820
822
|
Unknown: "unknown",
|
|
821
823
|
/** 等待开奖 */
|
|
@@ -826,7 +828,7 @@ const v = {
|
|
|
826
828
|
Claimed: "claimed",
|
|
827
829
|
/** 领奖失败 */
|
|
828
830
|
Fail: "fail"
|
|
829
|
-
}, zr = e.string().enum(h).lock(),
|
|
831
|
+
}, zr = e.string().enum(h).lock(), lt = {
|
|
830
832
|
/** 发起组队 */
|
|
831
833
|
Assemble: "assemble",
|
|
832
834
|
/** 加入队伍 */
|
|
@@ -837,19 +839,19 @@ const v = {
|
|
|
837
839
|
ChangeVisibility: "change_visibility",
|
|
838
840
|
/** 查询组队信息 */
|
|
839
841
|
Query: "query"
|
|
840
|
-
}, Jr = e.string().enum(
|
|
842
|
+
}, Jr = e.string().enum(lt).lock(), ut = {
|
|
841
843
|
/** 查询抽奖券 */
|
|
842
844
|
Query: "query",
|
|
843
845
|
/** 开奖 */
|
|
844
846
|
Draw: "draw",
|
|
845
847
|
/** 领奖 */
|
|
846
848
|
Claim: "claim"
|
|
847
|
-
}, Zr = e.string().enum(
|
|
849
|
+
}, Zr = e.string().enum(ut).lock(), mt = {
|
|
848
850
|
/** 将所有队员的进度值求和,作为队伍进度值 */
|
|
849
851
|
Sum: "sum",
|
|
850
852
|
/** 以进度值倒序排名第 N 的队员的进度值,作为队伍进度值。如果队伍人数不足 N,则队伍进度值为 0。N 的值来自于配置字段 top_n */
|
|
851
853
|
TopN: "top_n"
|
|
852
|
-
},
|
|
854
|
+
}, dt = e.string().enum(mt).lock(), gt = {
|
|
853
855
|
/** 尚未结算 */
|
|
854
856
|
None: "none",
|
|
855
857
|
/** 获胜奖励 */
|
|
@@ -880,12 +882,12 @@ const v = {
|
|
|
880
882
|
feature_name: e.string(),
|
|
881
883
|
feature_id: e.number(),
|
|
882
884
|
description: e.string(),
|
|
883
|
-
cycle:
|
|
885
|
+
cycle: We,
|
|
884
886
|
cycle_limit: e.number(),
|
|
885
887
|
limit: e.number(),
|
|
886
888
|
since: e.number(),
|
|
887
889
|
until: e.number(),
|
|
888
|
-
engage_account:
|
|
890
|
+
engage_account: Xe,
|
|
889
891
|
feature_rewards: yt.clone().optional(),
|
|
890
892
|
sort: e.number().optional()
|
|
891
893
|
}), ft = l.Cashback, ht = e.object({
|
|
@@ -983,7 +985,7 @@ const v = {
|
|
|
983
985
|
team: e.object({
|
|
984
986
|
feature_id: e.number().optional(),
|
|
985
987
|
completion_value: e.number(),
|
|
986
|
-
progress_algorithm: dt,
|
|
988
|
+
progress_algorithm: dt.clone().optional(),
|
|
987
989
|
top_n: e.number().optional()
|
|
988
990
|
}).optional(),
|
|
989
991
|
config: e.object({
|
|
@@ -1041,7 +1043,7 @@ const v = {
|
|
|
1041
1043
|
vote_feature_ids: e.array(e.number()),
|
|
1042
1044
|
submission_feature_ids: e.array(e.number()),
|
|
1043
1045
|
finalists_amount: e.number(),
|
|
1044
|
-
source:
|
|
1046
|
+
source: rt,
|
|
1045
1047
|
options: e.array(an),
|
|
1046
1048
|
rewards: e.array(y)
|
|
1047
1049
|
})
|
|
@@ -1126,7 +1128,7 @@ const v = {
|
|
|
1126
1128
|
event_name: e.string(),
|
|
1127
1129
|
feature_id: e.number(),
|
|
1128
1130
|
engagement_id: e.number(),
|
|
1129
|
-
feature_type:
|
|
1131
|
+
feature_type: et,
|
|
1130
1132
|
receive_time: e.number(),
|
|
1131
1133
|
extra_data: e.record(e.unknown()).optional()
|
|
1132
1134
|
}), hn = e.string().enum(h.Unknown, h.Pending), wn = e.union(
|
|
@@ -1143,7 +1145,7 @@ const v = {
|
|
|
1143
1145
|
tickets: e.array(wn)
|
|
1144
1146
|
}), vn = e.object({
|
|
1145
1147
|
platforms: e.array(e.string())
|
|
1146
|
-
}),
|
|
1148
|
+
}), ne = e.object({
|
|
1147
1149
|
role_name: e.string(),
|
|
1148
1150
|
is_leader: e.bool(),
|
|
1149
1151
|
is_myself: e.bool().optional(),
|
|
@@ -1155,13 +1157,13 @@ const v = {
|
|
|
1155
1157
|
team: e.object({
|
|
1156
1158
|
progress: e.number(),
|
|
1157
1159
|
completion_value: e.number().optional(),
|
|
1158
|
-
players: e.array(
|
|
1160
|
+
players: e.array(ne)
|
|
1159
1161
|
}).optional()
|
|
1160
1162
|
}), Cn = e.object({
|
|
1161
1163
|
progress: e.number(),
|
|
1162
1164
|
team: e.object({
|
|
1163
1165
|
progress: e.number(),
|
|
1164
|
-
team_members: e.array(
|
|
1166
|
+
team_members: e.array(ne).optional()
|
|
1165
1167
|
}).optional()
|
|
1166
1168
|
}), Rn = e.object({
|
|
1167
1169
|
platform: e.string()
|
|
@@ -1173,14 +1175,14 @@ const v = {
|
|
|
1173
1175
|
team_code: e.string(),
|
|
1174
1176
|
leader_name: e.string(),
|
|
1175
1177
|
total_members: e.number()
|
|
1176
|
-
}),
|
|
1178
|
+
}), Xr = e.object({
|
|
1177
1179
|
is_leader: e.bool(),
|
|
1178
1180
|
is_myself: e.bool().optional(),
|
|
1179
1181
|
role_name: e.string(),
|
|
1180
1182
|
server_name: e.string()
|
|
1181
1183
|
}), xn = e.object({
|
|
1182
1184
|
team_code: e.string(),
|
|
1183
|
-
visibility:
|
|
1185
|
+
visibility: ct,
|
|
1184
1186
|
members: e.array(
|
|
1185
1187
|
e.object({
|
|
1186
1188
|
is_leader: e.bool(),
|
|
@@ -1320,7 +1322,7 @@ const v = {
|
|
|
1320
1322
|
candidate_votes: e.array(En)
|
|
1321
1323
|
})
|
|
1322
1324
|
);
|
|
1323
|
-
class
|
|
1325
|
+
class Yr {
|
|
1324
1326
|
token;
|
|
1325
1327
|
event = 0;
|
|
1326
1328
|
req;
|
|
@@ -1728,14 +1730,14 @@ const cr = {
|
|
|
1728
1730
|
Failed: "failed",
|
|
1729
1731
|
/** 嫌疑(仅自己可见) */
|
|
1730
1732
|
Suspect: "suspect"
|
|
1731
|
-
},
|
|
1733
|
+
}, re = e.string().enum(ur).lock(), mr = {
|
|
1732
1734
|
/** 系统通知 */
|
|
1733
1735
|
System: "system",
|
|
1734
1736
|
/** 评论我的 */
|
|
1735
1737
|
Comment: "comment",
|
|
1736
1738
|
/** 点赞通知 */
|
|
1737
1739
|
Like: "like"
|
|
1738
|
-
},
|
|
1740
|
+
}, Wr = e.string().enum(mr).lock(), m = {
|
|
1739
1741
|
/** 系统通知 */
|
|
1740
1742
|
System: "system",
|
|
1741
1743
|
/** 帖子被置顶 */
|
|
@@ -1760,7 +1762,7 @@ const cr = {
|
|
|
1760
1762
|
ReplyLiked: "reply_liked",
|
|
1761
1763
|
/** 回复被删除 */
|
|
1762
1764
|
ReplyDeleted: "reply_deleted"
|
|
1763
|
-
}, dr = e.string().enum(m).lock(),
|
|
1765
|
+
}, dr = e.string().enum(m).lock(), ae = e.object({
|
|
1764
1766
|
forum_id: e.number(),
|
|
1765
1767
|
icon_url: e.string(),
|
|
1766
1768
|
name: e.string(),
|
|
@@ -1777,7 +1779,7 @@ const cr = {
|
|
|
1777
1779
|
post_num: e.number()
|
|
1778
1780
|
}).lock(), D = e.object({
|
|
1779
1781
|
post_id: e.number(),
|
|
1780
|
-
forum:
|
|
1782
|
+
forum: ae,
|
|
1781
1783
|
posted_by: e.string(),
|
|
1782
1784
|
nickname: e.string(),
|
|
1783
1785
|
avatar_url: e.string(),
|
|
@@ -1793,9 +1795,9 @@ const cr = {
|
|
|
1793
1795
|
event_ids: e.array(e.number()),
|
|
1794
1796
|
is_pinned: e.bool(),
|
|
1795
1797
|
is_highlighted: e.bool(),
|
|
1796
|
-
status:
|
|
1798
|
+
status: re,
|
|
1797
1799
|
create_time: e.number()
|
|
1798
|
-
}).lock(),
|
|
1800
|
+
}).lock(), oe = e.object({
|
|
1799
1801
|
err_msg: e.string().optional()
|
|
1800
1802
|
}).optional().lock(), gr = e.object({
|
|
1801
1803
|
reply_id: e.number(),
|
|
@@ -1836,7 +1838,7 @@ const cr = {
|
|
|
1836
1838
|
liked: e.bool(),
|
|
1837
1839
|
image_url: e.string(),
|
|
1838
1840
|
create_time: e.number(),
|
|
1839
|
-
status:
|
|
1841
|
+
status: re,
|
|
1840
1842
|
replies: e.array(C).optional()
|
|
1841
1843
|
}).lock(), pr = e.object({
|
|
1842
1844
|
image_url: e.string(),
|
|
@@ -1912,18 +1914,18 @@ const cr = {
|
|
|
1912
1914
|
wr,
|
|
1913
1915
|
kr,
|
|
1914
1916
|
vr
|
|
1915
|
-
).satisfies().lock(), Cr = s({ forums: e.array(
|
|
1917
|
+
).satisfies().lock(), Cr = s({ forums: e.array(ae) }), Rr = s({ topics: e.array(U) }), jr = s({ topic: U }), Tr = s({ post: D }), M = s({
|
|
1916
1918
|
posts: e.array(D),
|
|
1917
1919
|
next_token: e.string().optional()
|
|
1918
1920
|
}), qr = s({
|
|
1919
1921
|
post: D.clone().optional(),
|
|
1920
|
-
antispam:
|
|
1922
|
+
antispam: oe.clone().optional()
|
|
1921
1923
|
}), xr = s({
|
|
1922
1924
|
replies: e.array(C),
|
|
1923
1925
|
next_token: e.string().optional()
|
|
1924
1926
|
}), Sr = s({ reply: C }), Lr = s({
|
|
1925
1927
|
reply: C.clone().optional(),
|
|
1926
|
-
antispam:
|
|
1928
|
+
antispam: oe.clone().optional()
|
|
1927
1929
|
}), Pr = s({ comment: w }), Er = s({
|
|
1928
1930
|
comments: e.array(w),
|
|
1929
1931
|
next_token: e.string().optional()
|
|
@@ -1938,7 +1940,7 @@ const cr = {
|
|
|
1938
1940
|
comment: e.number(),
|
|
1939
1941
|
like: e.number()
|
|
1940
1942
|
});
|
|
1941
|
-
class
|
|
1943
|
+
class ea {
|
|
1942
1944
|
token;
|
|
1943
1945
|
req;
|
|
1944
1946
|
constructor(t) {
|
|
@@ -2234,7 +2236,7 @@ function S(i) {
|
|
|
2234
2236
|
return k(i, "open_id", "union_id", "weixin_token");
|
|
2235
2237
|
}
|
|
2236
2238
|
const K = "wx_login_cache";
|
|
2237
|
-
class
|
|
2239
|
+
class ta {
|
|
2238
2240
|
token;
|
|
2239
2241
|
$appid;
|
|
2240
2242
|
req;
|
|
@@ -2268,7 +2270,7 @@ class na {
|
|
|
2268
2270
|
const t = this.token.storage.get(K);
|
|
2269
2271
|
if (!t)
|
|
2270
2272
|
return null;
|
|
2271
|
-
const n =
|
|
2273
|
+
const n = pe(t);
|
|
2272
2274
|
return S(n) ? (this.token.weixinToken = n.weixin_token, await this.token.autoLogin(), n) : null;
|
|
2273
2275
|
}
|
|
2274
2276
|
/**
|
|
@@ -2294,7 +2296,7 @@ class na {
|
|
|
2294
2296
|
const n = await this.getLoginCache();
|
|
2295
2297
|
if (n)
|
|
2296
2298
|
return n;
|
|
2297
|
-
const r = await
|
|
2299
|
+
const r = await ye(), { data: a, code: o, message: g } = await this.req.post(
|
|
2298
2300
|
"weixin/login",
|
|
2299
2301
|
{ code: r, appid: this.appid },
|
|
2300
2302
|
S,
|
|
@@ -2324,9 +2326,9 @@ class na {
|
|
|
2324
2326
|
async webLogin(t = "snsapi_userinfo", n) {
|
|
2325
2327
|
const r = L("code"), a = Date.now(), o = +L("state");
|
|
2326
2328
|
if (!r || !o || o < a - 1e3 * 60 * 5 || o > a) {
|
|
2327
|
-
const
|
|
2329
|
+
const ce = G(["code", "state"]);
|
|
2328
2330
|
location.replace(
|
|
2329
|
-
`https://open.weixin.qq.com/connect/oauth2/authorize?appid=${this.appid}&redirect_uri=${encodeURIComponent(
|
|
2331
|
+
`https://open.weixin.qq.com/connect/oauth2/authorize?appid=${this.appid}&redirect_uri=${encodeURIComponent(ce)}&response_type=code&scope=${t}&state=${a}#wechat_redirect`
|
|
2330
2332
|
);
|
|
2331
2333
|
return;
|
|
2332
2334
|
}
|
|
@@ -2339,12 +2341,12 @@ class na {
|
|
|
2339
2341
|
"replaceState" in history && history.replaceState({}, "", g);
|
|
2340
2342
|
const {
|
|
2341
2343
|
data: p,
|
|
2342
|
-
code:
|
|
2343
|
-
message:
|
|
2344
|
+
code: ie,
|
|
2345
|
+
message: se
|
|
2344
2346
|
} = await this.req.post("weixin/login", { code: r, appid: this.appid }, S, n);
|
|
2345
2347
|
return p && (this.token.weixinToken = p.weixin_token, await this.token.autoLogin()), p ?? {
|
|
2346
|
-
message:
|
|
2347
|
-
error:
|
|
2348
|
+
message: se,
|
|
2349
|
+
error: ie
|
|
2348
2350
|
};
|
|
2349
2351
|
}
|
|
2350
2352
|
/**
|
|
@@ -2390,40 +2392,40 @@ class na {
|
|
|
2390
2392
|
}
|
|
2391
2393
|
}
|
|
2392
2394
|
export {
|
|
2393
|
-
|
|
2395
|
+
oe as AntispamValidator,
|
|
2394
2396
|
Qr as AuthToken,
|
|
2395
2397
|
En as CandidateVoteValidator,
|
|
2396
2398
|
pn as CashbackEngagementDataValidator,
|
|
2397
2399
|
_n as ClaimActivationKeyEngagementDataValidator,
|
|
2398
|
-
|
|
2400
|
+
ot as ClaimRewardStatus,
|
|
2399
2401
|
E as ClaimRewardStatusValidator,
|
|
2400
2402
|
Qn as ClaimedItemValidator,
|
|
2401
2403
|
J as ClubAddressValidator,
|
|
2402
2404
|
Mr as ClubApi,
|
|
2403
2405
|
Z as ClubBenefitSummaryValidator,
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2406
|
+
De as ClubBenefitValidator,
|
|
2407
|
+
Ce as ClubCreditChangeScene,
|
|
2408
|
+
Re as ClubCreditChangeSceneValidator,
|
|
2409
|
+
ve as ClubCreditChangeType,
|
|
2410
|
+
Ve as ClubCreditChangeTypeValidator,
|
|
2411
|
+
Ue as ClubCreditLogValidator,
|
|
2412
|
+
xe as ClubGlobalConfigValidator,
|
|
2413
|
+
je as ClubItemType,
|
|
2412
2414
|
H as ClubItemTypeValidator,
|
|
2413
|
-
|
|
2415
|
+
Se as ClubPlayerValidator,
|
|
2414
2416
|
X as ClubProductValidator,
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2417
|
+
Te as ClubRedemptionStatus,
|
|
2418
|
+
qe as ClubRedemptionStatusValidator,
|
|
2419
|
+
Fe as ClubUserCreditValidator,
|
|
2420
|
+
$e as ClubUserProfileValidator,
|
|
2419
2421
|
Un as CommentEngagementValidator,
|
|
2420
2422
|
w as CommentValidator,
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2423
|
+
ea as CommunityApi,
|
|
2424
|
+
Ze as EngageAccountType,
|
|
2425
|
+
Xe as EngageAccountTypeValidator,
|
|
2424
2426
|
Nn as EngageResponseValidator,
|
|
2425
2427
|
In as EngageRewardValidator,
|
|
2426
|
-
|
|
2428
|
+
Yr as EventApi,
|
|
2427
2429
|
gn as EventConfigValidator,
|
|
2428
2430
|
ht as EventFeatureConfigOfCashbackValidator,
|
|
2429
2431
|
kt as EventFeatureConfigOfCheckInValidator,
|
|
@@ -2446,24 +2448,24 @@ export {
|
|
|
2446
2448
|
ln as EventFeatureConfigOfVote2Validator,
|
|
2447
2449
|
on as EventFeatureConfigOfVoteValidator,
|
|
2448
2450
|
dn as EventFeatureConfigValidator,
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
+
Ye as EventPeriodType,
|
|
2452
|
+
We as EventPeriodTypeValidator,
|
|
2451
2453
|
y as EventRewardItemConfigValidator,
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
+
Ae as ExtraGameRewardValidator,
|
|
2455
|
+
Ie as ExtraPhysicalShipmentValidator,
|
|
2454
2456
|
yt as FeatureRewardValidator,
|
|
2455
2457
|
l as FeatureType,
|
|
2456
|
-
|
|
2458
|
+
et as FeatureTypeValidator,
|
|
2457
2459
|
cr as ForumMode,
|
|
2458
2460
|
lr as ForumModeValidator,
|
|
2459
|
-
|
|
2461
|
+
ae as ForumValidator,
|
|
2460
2462
|
v as GamerItemType,
|
|
2461
2463
|
Y as GamerItemTypeValidator,
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
+
we as Gender,
|
|
2465
|
+
ke as GenderValidator,
|
|
2464
2466
|
bn as GiftCodeEngagementDataValidator,
|
|
2465
2467
|
yn as InviteEngagementDataValidator,
|
|
2466
|
-
|
|
2468
|
+
ut as LotteryDrawAction,
|
|
2467
2469
|
Zr as LotteryDrawActionValidator,
|
|
2468
2470
|
kn as LotteryDrawEngagementDataValidator,
|
|
2469
2471
|
fn as LotteryEngagementDataValidator,
|
|
@@ -2471,7 +2473,7 @@ export {
|
|
|
2471
2473
|
zr as LotteryTicketStatusValidator,
|
|
2472
2474
|
_ as NotificationBaseValidator,
|
|
2473
2475
|
mr as NotificationCategory,
|
|
2474
|
-
|
|
2476
|
+
Wr as NotificationCategoryValidator,
|
|
2475
2477
|
hr as NotificationCommentReplyValidator,
|
|
2476
2478
|
wr as NotificationCommentValidator,
|
|
2477
2479
|
R as NotificationPayloadCommentValidator,
|
|
@@ -2486,45 +2488,44 @@ export {
|
|
|
2486
2488
|
m as NotificationType,
|
|
2487
2489
|
dr as NotificationTypeValidator,
|
|
2488
2490
|
Vr as NotificationValidator,
|
|
2489
|
-
|
|
2491
|
+
Ee as PlayerRoleCardValidator,
|
|
2490
2492
|
z as PlayerRoleValidator,
|
|
2491
2493
|
ur as PostStatus,
|
|
2492
|
-
|
|
2494
|
+
re as PostStatusValidator,
|
|
2493
2495
|
D as PostValidator,
|
|
2494
2496
|
vn as PreregisterEngagementDataValidator,
|
|
2495
2497
|
pr as PresignedUrlResponseValidator,
|
|
2496
2498
|
Vn as QuestEngagementDataValidator,
|
|
2497
|
-
|
|
2499
|
+
tt as QuestObjective,
|
|
2498
2500
|
ee as QuestObjectiveValidator,
|
|
2499
|
-
|
|
2500
|
-
dt as
|
|
2501
|
-
Xr as QuestProgressAlgorithmValidator,
|
|
2501
|
+
mt as QuestProgressAlgorithm,
|
|
2502
|
+
dt as QuestProgressAlgorithmValidator,
|
|
2502
2503
|
Cn as QuestProgressValidator,
|
|
2503
2504
|
Br as RedeemParamsValidator,
|
|
2504
|
-
|
|
2505
|
+
Ge as RedemptionValidator,
|
|
2505
2506
|
bt as RegularRewardValidator,
|
|
2506
2507
|
gr as ReplyToValidator,
|
|
2507
2508
|
C as ReplyValidator,
|
|
2508
2509
|
Kr as RewardItemType,
|
|
2509
2510
|
W as RewardItemTypeValidator,
|
|
2510
|
-
|
|
2511
|
+
it as RewardSource,
|
|
2511
2512
|
$ as RewardSourceValidator,
|
|
2512
2513
|
d as RewardStatus,
|
|
2513
|
-
|
|
2514
|
+
at as RewardStatusSuffix,
|
|
2514
2515
|
te as RewardStatusSuffixValidator,
|
|
2515
2516
|
Hr as RewardStatusValidator,
|
|
2516
2517
|
Dn as RewardValidator,
|
|
2517
|
-
|
|
2518
|
-
|
|
2518
|
+
Pe as RoleBaseInfoValidator,
|
|
2519
|
+
Le as ServerBaseInfoValidator,
|
|
2519
2520
|
Rn as ShareEngagementDataValidator,
|
|
2520
2521
|
Tn as SurveyEngagementDataValidator,
|
|
2521
|
-
|
|
2522
|
+
lt as TeamAction,
|
|
2522
2523
|
Jr as TeamActionValidator,
|
|
2523
2524
|
xn as TeamEngagementDataValidator,
|
|
2524
2525
|
qn as TeamEngagementValidator,
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2526
|
+
Xr as TeamMemberValidator,
|
|
2527
|
+
st as TeamVisibility,
|
|
2528
|
+
ct as TeamVisibilityValidator,
|
|
2528
2529
|
U as TopicValidator,
|
|
2529
2530
|
F as UserEngagementDataValidator,
|
|
2530
2531
|
An as UserEngagementValidator,
|
|
@@ -2536,9 +2537,9 @@ export {
|
|
|
2536
2537
|
gt as Vote2RewardType,
|
|
2537
2538
|
pt as Vote2RewardTypeValidator,
|
|
2538
2539
|
Sn as VoteEngagementDataValidator,
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2540
|
+
nt as VoteOptionSource,
|
|
2541
|
+
rt as VoteOptionSourceValidator,
|
|
2542
|
+
ta as WeixinApi,
|
|
2542
2543
|
jn as WeixinSubscribeEngagementDataValidator,
|
|
2543
2544
|
Ar as WeixinWebLoginErrorCode,
|
|
2544
2545
|
Ir as isWeixinSignResponse
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seayoo-web/gamer-api",
|
|
3
3
|
"description": "agent for gamer api",
|
|
4
|
-
"version": "2.10.
|
|
4
|
+
"version": "2.10.9",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "index.ts",
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -30,17 +30,17 @@
|
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^22.13.1",
|
|
33
|
-
"@seayoo-web/request": "3.4.0",
|
|
34
33
|
"@seayoo-web/combo-webview": "2.7.0",
|
|
34
|
+
"@seayoo-web/tsconfig": "1.0.5",
|
|
35
35
|
"@seayoo-web/utils": "4.1.3",
|
|
36
|
-
"@seayoo-web/
|
|
36
|
+
"@seayoo-web/request": "3.4.0",
|
|
37
37
|
"@seayoo-web/scripts": "3.1.3",
|
|
38
|
-
"@seayoo-web/
|
|
38
|
+
"@seayoo-web/validator": "1.1.1"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@seayoo-web/combo-webview": "^2.7.0",
|
|
42
42
|
"@seayoo-web/utils": "^4.1.3",
|
|
43
|
-
"@seayoo-web/validator": "^1.1.
|
|
43
|
+
"@seayoo-web/validator": "^1.1.1"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"prebuild": "pnpm -F validator build && pnpm -F request build && pnpm -F combo-webview build",
|
|
@@ -180,6 +180,8 @@ export declare const QuestObjective: {
|
|
|
180
180
|
readonly PlayerLevel: "player_level";
|
|
181
181
|
/** 活动道具累计获取 */
|
|
182
182
|
readonly EventItems: "event_items";
|
|
183
|
+
/**游戏内任务 */
|
|
184
|
+
readonly GameTask: "game_task";
|
|
183
185
|
};
|
|
184
186
|
export type QuestObjective = ValueOf<typeof QuestObjective>;
|
|
185
187
|
export declare const QuestObjectiveValidator: import("@seayoo-web/validator").StringValidator<QuestObjective, false, false> & {
|
|
@@ -410,16 +412,6 @@ export declare const QuestProgressAlgorithmValidator: import("@seayoo-web/valida
|
|
|
410
412
|
maybeNull: never;
|
|
411
413
|
lock: never;
|
|
412
414
|
};
|
|
413
|
-
export declare const QuestProgressAlgorithmOptionalValidator: import("@seayoo-web/validator").StringValidator<QuestProgressAlgorithm, true, false> & {
|
|
414
|
-
pattern: never;
|
|
415
|
-
url: never;
|
|
416
|
-
dataUri: never;
|
|
417
|
-
enum: never;
|
|
418
|
-
disallow: never;
|
|
419
|
-
optional: never;
|
|
420
|
-
maybeNull: never;
|
|
421
|
-
lock: never;
|
|
422
|
-
};
|
|
423
415
|
/**
|
|
424
416
|
* vote2 玩法的奖励结算状态
|
|
425
417
|
*/
|