@seayoo-web/gamer-api 2.10.7 → 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 +147 -144
- package/package.json +5 -5
- package/types/src/event.enums.d.ts +4 -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,13 +746,15 @@ 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
|
/** 累计登录,单位 人天 */
|
|
753
753
|
Login: "player_login_days",
|
|
754
754
|
/** 累计充值金额 */
|
|
755
755
|
OrderAmount: "order_total_amount",
|
|
756
|
+
/** 累计充值次数 */
|
|
757
|
+
OrderCount: "order_total_count",
|
|
756
758
|
/** 社区发帖数量 */
|
|
757
759
|
Posts: "community_posts",
|
|
758
760
|
/** 社区评论数量 */
|
|
@@ -764,15 +766,17 @@ const v = {
|
|
|
764
766
|
/** 账号等级目标 */
|
|
765
767
|
PlayerLevel: "player_level",
|
|
766
768
|
/** 活动道具累计获取 */
|
|
767
|
-
EventItems: "event_items"
|
|
768
|
-
|
|
769
|
+
EventItems: "event_items",
|
|
770
|
+
/**游戏内任务 */
|
|
771
|
+
GameTask: "game_task"
|
|
772
|
+
}, ee = e.string().enum(tt).lock(), nt = {
|
|
769
773
|
/** 官方上传 */
|
|
770
774
|
System: "system",
|
|
771
775
|
/** 用户投稿 */
|
|
772
776
|
UserSubmission: "user_submission",
|
|
773
777
|
/** 投票入围 */
|
|
774
778
|
Shortlisted: "shortlisted"
|
|
775
|
-
},
|
|
779
|
+
}, rt = e.string().enum(nt).lock(), d = {
|
|
776
780
|
/** 未获得奖励 */
|
|
777
781
|
Ineligible: "ineligible",
|
|
778
782
|
/** 奖励未领取 */
|
|
@@ -783,7 +787,7 @@ const v = {
|
|
|
783
787
|
Failed: "failed",
|
|
784
788
|
/** 奖励已发货 */
|
|
785
789
|
Delivered: "delivered"
|
|
786
|
-
}, Hr = e.string().enum(d).lock(),
|
|
790
|
+
}, Hr = e.string().enum(d).lock(), at = {
|
|
787
791
|
/** 奖励未领取 */
|
|
788
792
|
Unclaimed: d.Unclaimed,
|
|
789
793
|
/** 奖励已领取 */
|
|
@@ -792,7 +796,7 @@ const v = {
|
|
|
792
796
|
Failed: d.Failed,
|
|
793
797
|
/** 奖励已发货 */
|
|
794
798
|
Delivered: d.Delivered
|
|
795
|
-
}, te = e.string().enum(
|
|
799
|
+
}, te = e.string().enum(at).lock(), ot = {
|
|
796
800
|
/** 未获得奖励 */
|
|
797
801
|
Ineligible: d.Ineligible,
|
|
798
802
|
/** 奖励未领取 */
|
|
@@ -803,17 +807,17 @@ const v = {
|
|
|
803
807
|
Failed: d.Failed,
|
|
804
808
|
/** 奖励已发货 */
|
|
805
809
|
Delivered: d.Delivered
|
|
806
|
-
}, E = e.string().enum(
|
|
810
|
+
}, E = e.string().enum(ot).lock(), it = {
|
|
807
811
|
/** 玩法产出奖励 */
|
|
808
812
|
Output: "output",
|
|
809
813
|
/** 玩法参与奖励 */
|
|
810
814
|
Engage: "engage"
|
|
811
|
-
}, $ = e.string().enum(
|
|
815
|
+
}, $ = e.string().enum(it).lock(), st = {
|
|
812
816
|
/** 私有队伍 */
|
|
813
817
|
Private: "private",
|
|
814
818
|
/** 公开队伍 */
|
|
815
819
|
Public: "public"
|
|
816
|
-
},
|
|
820
|
+
}, ct = e.string().enum(st).lock(), h = {
|
|
817
821
|
/** 未知状态 */
|
|
818
822
|
Unknown: "unknown",
|
|
819
823
|
/** 等待开奖 */
|
|
@@ -824,7 +828,7 @@ const v = {
|
|
|
824
828
|
Claimed: "claimed",
|
|
825
829
|
/** 领奖失败 */
|
|
826
830
|
Fail: "fail"
|
|
827
|
-
}, zr = e.string().enum(h).lock(),
|
|
831
|
+
}, zr = e.string().enum(h).lock(), lt = {
|
|
828
832
|
/** 发起组队 */
|
|
829
833
|
Assemble: "assemble",
|
|
830
834
|
/** 加入队伍 */
|
|
@@ -835,19 +839,19 @@ const v = {
|
|
|
835
839
|
ChangeVisibility: "change_visibility",
|
|
836
840
|
/** 查询组队信息 */
|
|
837
841
|
Query: "query"
|
|
838
|
-
}, Jr = e.string().enum(
|
|
842
|
+
}, Jr = e.string().enum(lt).lock(), ut = {
|
|
839
843
|
/** 查询抽奖券 */
|
|
840
844
|
Query: "query",
|
|
841
845
|
/** 开奖 */
|
|
842
846
|
Draw: "draw",
|
|
843
847
|
/** 领奖 */
|
|
844
848
|
Claim: "claim"
|
|
845
|
-
}, Zr = e.string().enum(
|
|
849
|
+
}, Zr = e.string().enum(ut).lock(), mt = {
|
|
846
850
|
/** 将所有队员的进度值求和,作为队伍进度值 */
|
|
847
851
|
Sum: "sum",
|
|
848
852
|
/** 以进度值倒序排名第 N 的队员的进度值,作为队伍进度值。如果队伍人数不足 N,则队伍进度值为 0。N 的值来自于配置字段 top_n */
|
|
849
853
|
TopN: "top_n"
|
|
850
|
-
},
|
|
854
|
+
}, dt = e.string().enum(mt).lock(), gt = {
|
|
851
855
|
/** 尚未结算 */
|
|
852
856
|
None: "none",
|
|
853
857
|
/** 获胜奖励 */
|
|
@@ -878,12 +882,12 @@ const v = {
|
|
|
878
882
|
feature_name: e.string(),
|
|
879
883
|
feature_id: e.number(),
|
|
880
884
|
description: e.string(),
|
|
881
|
-
cycle:
|
|
885
|
+
cycle: We,
|
|
882
886
|
cycle_limit: e.number(),
|
|
883
887
|
limit: e.number(),
|
|
884
888
|
since: e.number(),
|
|
885
889
|
until: e.number(),
|
|
886
|
-
engage_account:
|
|
890
|
+
engage_account: Xe,
|
|
887
891
|
feature_rewards: yt.clone().optional(),
|
|
888
892
|
sort: e.number().optional()
|
|
889
893
|
}), ft = l.Cashback, ht = e.object({
|
|
@@ -981,7 +985,7 @@ const v = {
|
|
|
981
985
|
team: e.object({
|
|
982
986
|
feature_id: e.number().optional(),
|
|
983
987
|
completion_value: e.number(),
|
|
984
|
-
progress_algorithm: dt,
|
|
988
|
+
progress_algorithm: dt.clone().optional(),
|
|
985
989
|
top_n: e.number().optional()
|
|
986
990
|
}).optional(),
|
|
987
991
|
config: e.object({
|
|
@@ -1039,7 +1043,7 @@ const v = {
|
|
|
1039
1043
|
vote_feature_ids: e.array(e.number()),
|
|
1040
1044
|
submission_feature_ids: e.array(e.number()),
|
|
1041
1045
|
finalists_amount: e.number(),
|
|
1042
|
-
source:
|
|
1046
|
+
source: rt,
|
|
1043
1047
|
options: e.array(an),
|
|
1044
1048
|
rewards: e.array(y)
|
|
1045
1049
|
})
|
|
@@ -1124,7 +1128,7 @@ const v = {
|
|
|
1124
1128
|
event_name: e.string(),
|
|
1125
1129
|
feature_id: e.number(),
|
|
1126
1130
|
engagement_id: e.number(),
|
|
1127
|
-
feature_type:
|
|
1131
|
+
feature_type: et,
|
|
1128
1132
|
receive_time: e.number(),
|
|
1129
1133
|
extra_data: e.record(e.unknown()).optional()
|
|
1130
1134
|
}), hn = e.string().enum(h.Unknown, h.Pending), wn = e.union(
|
|
@@ -1141,7 +1145,7 @@ const v = {
|
|
|
1141
1145
|
tickets: e.array(wn)
|
|
1142
1146
|
}), vn = e.object({
|
|
1143
1147
|
platforms: e.array(e.string())
|
|
1144
|
-
}),
|
|
1148
|
+
}), ne = e.object({
|
|
1145
1149
|
role_name: e.string(),
|
|
1146
1150
|
is_leader: e.bool(),
|
|
1147
1151
|
is_myself: e.bool().optional(),
|
|
@@ -1153,13 +1157,13 @@ const v = {
|
|
|
1153
1157
|
team: e.object({
|
|
1154
1158
|
progress: e.number(),
|
|
1155
1159
|
completion_value: e.number().optional(),
|
|
1156
|
-
players: e.array(
|
|
1160
|
+
players: e.array(ne)
|
|
1157
1161
|
}).optional()
|
|
1158
1162
|
}), Cn = e.object({
|
|
1159
1163
|
progress: e.number(),
|
|
1160
1164
|
team: e.object({
|
|
1161
1165
|
progress: e.number(),
|
|
1162
|
-
team_members: e.array(
|
|
1166
|
+
team_members: e.array(ne).optional()
|
|
1163
1167
|
}).optional()
|
|
1164
1168
|
}), Rn = e.object({
|
|
1165
1169
|
platform: e.string()
|
|
@@ -1171,14 +1175,14 @@ const v = {
|
|
|
1171
1175
|
team_code: e.string(),
|
|
1172
1176
|
leader_name: e.string(),
|
|
1173
1177
|
total_members: e.number()
|
|
1174
|
-
}),
|
|
1178
|
+
}), Xr = e.object({
|
|
1175
1179
|
is_leader: e.bool(),
|
|
1176
1180
|
is_myself: e.bool().optional(),
|
|
1177
1181
|
role_name: e.string(),
|
|
1178
1182
|
server_name: e.string()
|
|
1179
1183
|
}), xn = e.object({
|
|
1180
1184
|
team_code: e.string(),
|
|
1181
|
-
visibility:
|
|
1185
|
+
visibility: ct,
|
|
1182
1186
|
members: e.array(
|
|
1183
1187
|
e.object({
|
|
1184
1188
|
is_leader: e.bool(),
|
|
@@ -1318,7 +1322,7 @@ const v = {
|
|
|
1318
1322
|
candidate_votes: e.array(En)
|
|
1319
1323
|
})
|
|
1320
1324
|
);
|
|
1321
|
-
class
|
|
1325
|
+
class Yr {
|
|
1322
1326
|
token;
|
|
1323
1327
|
event = 0;
|
|
1324
1328
|
req;
|
|
@@ -1726,14 +1730,14 @@ const cr = {
|
|
|
1726
1730
|
Failed: "failed",
|
|
1727
1731
|
/** 嫌疑(仅自己可见) */
|
|
1728
1732
|
Suspect: "suspect"
|
|
1729
|
-
},
|
|
1733
|
+
}, re = e.string().enum(ur).lock(), mr = {
|
|
1730
1734
|
/** 系统通知 */
|
|
1731
1735
|
System: "system",
|
|
1732
1736
|
/** 评论我的 */
|
|
1733
1737
|
Comment: "comment",
|
|
1734
1738
|
/** 点赞通知 */
|
|
1735
1739
|
Like: "like"
|
|
1736
|
-
},
|
|
1740
|
+
}, Wr = e.string().enum(mr).lock(), m = {
|
|
1737
1741
|
/** 系统通知 */
|
|
1738
1742
|
System: "system",
|
|
1739
1743
|
/** 帖子被置顶 */
|
|
@@ -1758,7 +1762,7 @@ const cr = {
|
|
|
1758
1762
|
ReplyLiked: "reply_liked",
|
|
1759
1763
|
/** 回复被删除 */
|
|
1760
1764
|
ReplyDeleted: "reply_deleted"
|
|
1761
|
-
}, dr = e.string().enum(m).lock(),
|
|
1765
|
+
}, dr = e.string().enum(m).lock(), ae = e.object({
|
|
1762
1766
|
forum_id: e.number(),
|
|
1763
1767
|
icon_url: e.string(),
|
|
1764
1768
|
name: e.string(),
|
|
@@ -1775,7 +1779,7 @@ const cr = {
|
|
|
1775
1779
|
post_num: e.number()
|
|
1776
1780
|
}).lock(), D = e.object({
|
|
1777
1781
|
post_id: e.number(),
|
|
1778
|
-
forum:
|
|
1782
|
+
forum: ae,
|
|
1779
1783
|
posted_by: e.string(),
|
|
1780
1784
|
nickname: e.string(),
|
|
1781
1785
|
avatar_url: e.string(),
|
|
@@ -1791,9 +1795,9 @@ const cr = {
|
|
|
1791
1795
|
event_ids: e.array(e.number()),
|
|
1792
1796
|
is_pinned: e.bool(),
|
|
1793
1797
|
is_highlighted: e.bool(),
|
|
1794
|
-
status:
|
|
1798
|
+
status: re,
|
|
1795
1799
|
create_time: e.number()
|
|
1796
|
-
}).lock(),
|
|
1800
|
+
}).lock(), oe = e.object({
|
|
1797
1801
|
err_msg: e.string().optional()
|
|
1798
1802
|
}).optional().lock(), gr = e.object({
|
|
1799
1803
|
reply_id: e.number(),
|
|
@@ -1834,7 +1838,7 @@ const cr = {
|
|
|
1834
1838
|
liked: e.bool(),
|
|
1835
1839
|
image_url: e.string(),
|
|
1836
1840
|
create_time: e.number(),
|
|
1837
|
-
status:
|
|
1841
|
+
status: re,
|
|
1838
1842
|
replies: e.array(C).optional()
|
|
1839
1843
|
}).lock(), pr = e.object({
|
|
1840
1844
|
image_url: e.string(),
|
|
@@ -1910,18 +1914,18 @@ const cr = {
|
|
|
1910
1914
|
wr,
|
|
1911
1915
|
kr,
|
|
1912
1916
|
vr
|
|
1913
|
-
).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({
|
|
1914
1918
|
posts: e.array(D),
|
|
1915
1919
|
next_token: e.string().optional()
|
|
1916
1920
|
}), qr = s({
|
|
1917
1921
|
post: D.clone().optional(),
|
|
1918
|
-
antispam:
|
|
1922
|
+
antispam: oe.clone().optional()
|
|
1919
1923
|
}), xr = s({
|
|
1920
1924
|
replies: e.array(C),
|
|
1921
1925
|
next_token: e.string().optional()
|
|
1922
1926
|
}), Sr = s({ reply: C }), Lr = s({
|
|
1923
1927
|
reply: C.clone().optional(),
|
|
1924
|
-
antispam:
|
|
1928
|
+
antispam: oe.clone().optional()
|
|
1925
1929
|
}), Pr = s({ comment: w }), Er = s({
|
|
1926
1930
|
comments: e.array(w),
|
|
1927
1931
|
next_token: e.string().optional()
|
|
@@ -1936,7 +1940,7 @@ const cr = {
|
|
|
1936
1940
|
comment: e.number(),
|
|
1937
1941
|
like: e.number()
|
|
1938
1942
|
});
|
|
1939
|
-
class
|
|
1943
|
+
class ea {
|
|
1940
1944
|
token;
|
|
1941
1945
|
req;
|
|
1942
1946
|
constructor(t) {
|
|
@@ -2232,7 +2236,7 @@ function S(i) {
|
|
|
2232
2236
|
return k(i, "open_id", "union_id", "weixin_token");
|
|
2233
2237
|
}
|
|
2234
2238
|
const K = "wx_login_cache";
|
|
2235
|
-
class
|
|
2239
|
+
class ta {
|
|
2236
2240
|
token;
|
|
2237
2241
|
$appid;
|
|
2238
2242
|
req;
|
|
@@ -2266,7 +2270,7 @@ class na {
|
|
|
2266
2270
|
const t = this.token.storage.get(K);
|
|
2267
2271
|
if (!t)
|
|
2268
2272
|
return null;
|
|
2269
|
-
const n =
|
|
2273
|
+
const n = pe(t);
|
|
2270
2274
|
return S(n) ? (this.token.weixinToken = n.weixin_token, await this.token.autoLogin(), n) : null;
|
|
2271
2275
|
}
|
|
2272
2276
|
/**
|
|
@@ -2292,7 +2296,7 @@ class na {
|
|
|
2292
2296
|
const n = await this.getLoginCache();
|
|
2293
2297
|
if (n)
|
|
2294
2298
|
return n;
|
|
2295
|
-
const r = await
|
|
2299
|
+
const r = await ye(), { data: a, code: o, message: g } = await this.req.post(
|
|
2296
2300
|
"weixin/login",
|
|
2297
2301
|
{ code: r, appid: this.appid },
|
|
2298
2302
|
S,
|
|
@@ -2322,9 +2326,9 @@ class na {
|
|
|
2322
2326
|
async webLogin(t = "snsapi_userinfo", n) {
|
|
2323
2327
|
const r = L("code"), a = Date.now(), o = +L("state");
|
|
2324
2328
|
if (!r || !o || o < a - 1e3 * 60 * 5 || o > a) {
|
|
2325
|
-
const
|
|
2329
|
+
const ce = G(["code", "state"]);
|
|
2326
2330
|
location.replace(
|
|
2327
|
-
`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`
|
|
2328
2332
|
);
|
|
2329
2333
|
return;
|
|
2330
2334
|
}
|
|
@@ -2337,12 +2341,12 @@ class na {
|
|
|
2337
2341
|
"replaceState" in history && history.replaceState({}, "", g);
|
|
2338
2342
|
const {
|
|
2339
2343
|
data: p,
|
|
2340
|
-
code:
|
|
2341
|
-
message:
|
|
2344
|
+
code: ie,
|
|
2345
|
+
message: se
|
|
2342
2346
|
} = await this.req.post("weixin/login", { code: r, appid: this.appid }, S, n);
|
|
2343
2347
|
return p && (this.token.weixinToken = p.weixin_token, await this.token.autoLogin()), p ?? {
|
|
2344
|
-
message:
|
|
2345
|
-
error:
|
|
2348
|
+
message: se,
|
|
2349
|
+
error: ie
|
|
2346
2350
|
};
|
|
2347
2351
|
}
|
|
2348
2352
|
/**
|
|
@@ -2388,40 +2392,40 @@ class na {
|
|
|
2388
2392
|
}
|
|
2389
2393
|
}
|
|
2390
2394
|
export {
|
|
2391
|
-
|
|
2395
|
+
oe as AntispamValidator,
|
|
2392
2396
|
Qr as AuthToken,
|
|
2393
2397
|
En as CandidateVoteValidator,
|
|
2394
2398
|
pn as CashbackEngagementDataValidator,
|
|
2395
2399
|
_n as ClaimActivationKeyEngagementDataValidator,
|
|
2396
|
-
|
|
2400
|
+
ot as ClaimRewardStatus,
|
|
2397
2401
|
E as ClaimRewardStatusValidator,
|
|
2398
2402
|
Qn as ClaimedItemValidator,
|
|
2399
2403
|
J as ClubAddressValidator,
|
|
2400
2404
|
Mr as ClubApi,
|
|
2401
2405
|
Z as ClubBenefitSummaryValidator,
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
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,
|
|
2410
2414
|
H as ClubItemTypeValidator,
|
|
2411
|
-
|
|
2415
|
+
Se as ClubPlayerValidator,
|
|
2412
2416
|
X as ClubProductValidator,
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
+
Te as ClubRedemptionStatus,
|
|
2418
|
+
qe as ClubRedemptionStatusValidator,
|
|
2419
|
+
Fe as ClubUserCreditValidator,
|
|
2420
|
+
$e as ClubUserProfileValidator,
|
|
2417
2421
|
Un as CommentEngagementValidator,
|
|
2418
2422
|
w as CommentValidator,
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2423
|
+
ea as CommunityApi,
|
|
2424
|
+
Ze as EngageAccountType,
|
|
2425
|
+
Xe as EngageAccountTypeValidator,
|
|
2422
2426
|
Nn as EngageResponseValidator,
|
|
2423
2427
|
In as EngageRewardValidator,
|
|
2424
|
-
|
|
2428
|
+
Yr as EventApi,
|
|
2425
2429
|
gn as EventConfigValidator,
|
|
2426
2430
|
ht as EventFeatureConfigOfCashbackValidator,
|
|
2427
2431
|
kt as EventFeatureConfigOfCheckInValidator,
|
|
@@ -2444,24 +2448,24 @@ export {
|
|
|
2444
2448
|
ln as EventFeatureConfigOfVote2Validator,
|
|
2445
2449
|
on as EventFeatureConfigOfVoteValidator,
|
|
2446
2450
|
dn as EventFeatureConfigValidator,
|
|
2447
|
-
|
|
2448
|
-
|
|
2451
|
+
Ye as EventPeriodType,
|
|
2452
|
+
We as EventPeriodTypeValidator,
|
|
2449
2453
|
y as EventRewardItemConfigValidator,
|
|
2450
|
-
|
|
2451
|
-
|
|
2454
|
+
Ae as ExtraGameRewardValidator,
|
|
2455
|
+
Ie as ExtraPhysicalShipmentValidator,
|
|
2452
2456
|
yt as FeatureRewardValidator,
|
|
2453
2457
|
l as FeatureType,
|
|
2454
|
-
|
|
2458
|
+
et as FeatureTypeValidator,
|
|
2455
2459
|
cr as ForumMode,
|
|
2456
2460
|
lr as ForumModeValidator,
|
|
2457
|
-
|
|
2461
|
+
ae as ForumValidator,
|
|
2458
2462
|
v as GamerItemType,
|
|
2459
2463
|
Y as GamerItemTypeValidator,
|
|
2460
|
-
|
|
2461
|
-
|
|
2464
|
+
we as Gender,
|
|
2465
|
+
ke as GenderValidator,
|
|
2462
2466
|
bn as GiftCodeEngagementDataValidator,
|
|
2463
2467
|
yn as InviteEngagementDataValidator,
|
|
2464
|
-
|
|
2468
|
+
ut as LotteryDrawAction,
|
|
2465
2469
|
Zr as LotteryDrawActionValidator,
|
|
2466
2470
|
kn as LotteryDrawEngagementDataValidator,
|
|
2467
2471
|
fn as LotteryEngagementDataValidator,
|
|
@@ -2469,7 +2473,7 @@ export {
|
|
|
2469
2473
|
zr as LotteryTicketStatusValidator,
|
|
2470
2474
|
_ as NotificationBaseValidator,
|
|
2471
2475
|
mr as NotificationCategory,
|
|
2472
|
-
|
|
2476
|
+
Wr as NotificationCategoryValidator,
|
|
2473
2477
|
hr as NotificationCommentReplyValidator,
|
|
2474
2478
|
wr as NotificationCommentValidator,
|
|
2475
2479
|
R as NotificationPayloadCommentValidator,
|
|
@@ -2484,45 +2488,44 @@ export {
|
|
|
2484
2488
|
m as NotificationType,
|
|
2485
2489
|
dr as NotificationTypeValidator,
|
|
2486
2490
|
Vr as NotificationValidator,
|
|
2487
|
-
|
|
2491
|
+
Ee as PlayerRoleCardValidator,
|
|
2488
2492
|
z as PlayerRoleValidator,
|
|
2489
2493
|
ur as PostStatus,
|
|
2490
|
-
|
|
2494
|
+
re as PostStatusValidator,
|
|
2491
2495
|
D as PostValidator,
|
|
2492
2496
|
vn as PreregisterEngagementDataValidator,
|
|
2493
2497
|
pr as PresignedUrlResponseValidator,
|
|
2494
2498
|
Vn as QuestEngagementDataValidator,
|
|
2495
|
-
|
|
2499
|
+
tt as QuestObjective,
|
|
2496
2500
|
ee as QuestObjectiveValidator,
|
|
2497
|
-
|
|
2498
|
-
dt as
|
|
2499
|
-
Xr as QuestProgressAlgorithmValidator,
|
|
2501
|
+
mt as QuestProgressAlgorithm,
|
|
2502
|
+
dt as QuestProgressAlgorithmValidator,
|
|
2500
2503
|
Cn as QuestProgressValidator,
|
|
2501
2504
|
Br as RedeemParamsValidator,
|
|
2502
|
-
|
|
2505
|
+
Ge as RedemptionValidator,
|
|
2503
2506
|
bt as RegularRewardValidator,
|
|
2504
2507
|
gr as ReplyToValidator,
|
|
2505
2508
|
C as ReplyValidator,
|
|
2506
2509
|
Kr as RewardItemType,
|
|
2507
2510
|
W as RewardItemTypeValidator,
|
|
2508
|
-
|
|
2511
|
+
it as RewardSource,
|
|
2509
2512
|
$ as RewardSourceValidator,
|
|
2510
2513
|
d as RewardStatus,
|
|
2511
|
-
|
|
2514
|
+
at as RewardStatusSuffix,
|
|
2512
2515
|
te as RewardStatusSuffixValidator,
|
|
2513
2516
|
Hr as RewardStatusValidator,
|
|
2514
2517
|
Dn as RewardValidator,
|
|
2515
|
-
|
|
2516
|
-
|
|
2518
|
+
Pe as RoleBaseInfoValidator,
|
|
2519
|
+
Le as ServerBaseInfoValidator,
|
|
2517
2520
|
Rn as ShareEngagementDataValidator,
|
|
2518
2521
|
Tn as SurveyEngagementDataValidator,
|
|
2519
|
-
|
|
2522
|
+
lt as TeamAction,
|
|
2520
2523
|
Jr as TeamActionValidator,
|
|
2521
2524
|
xn as TeamEngagementDataValidator,
|
|
2522
2525
|
qn as TeamEngagementValidator,
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
+
Xr as TeamMemberValidator,
|
|
2527
|
+
st as TeamVisibility,
|
|
2528
|
+
ct as TeamVisibilityValidator,
|
|
2526
2529
|
U as TopicValidator,
|
|
2527
2530
|
F as UserEngagementDataValidator,
|
|
2528
2531
|
An as UserEngagementValidator,
|
|
@@ -2534,9 +2537,9 @@ export {
|
|
|
2534
2537
|
gt as Vote2RewardType,
|
|
2535
2538
|
pt as Vote2RewardTypeValidator,
|
|
2536
2539
|
Sn as VoteEngagementDataValidator,
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
+
nt as VoteOptionSource,
|
|
2541
|
+
rt as VoteOptionSourceValidator,
|
|
2542
|
+
ta as WeixinApi,
|
|
2540
2543
|
jn as WeixinSubscribeEngagementDataValidator,
|
|
2541
2544
|
Ar as WeixinWebLoginErrorCode,
|
|
2542
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",
|
|
@@ -31,16 +31,16 @@
|
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^22.13.1",
|
|
33
33
|
"@seayoo-web/combo-webview": "2.7.0",
|
|
34
|
-
"@seayoo-web/request": "3.4.0",
|
|
35
|
-
"@seayoo-web/scripts": "3.1.3",
|
|
36
34
|
"@seayoo-web/tsconfig": "1.0.5",
|
|
37
35
|
"@seayoo-web/utils": "4.1.3",
|
|
38
|
-
"@seayoo-web/
|
|
36
|
+
"@seayoo-web/request": "3.4.0",
|
|
37
|
+
"@seayoo-web/scripts": "3.1.3",
|
|
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",
|
|
@@ -166,6 +166,8 @@ export declare const QuestObjective: {
|
|
|
166
166
|
readonly Login: "player_login_days";
|
|
167
167
|
/** 累计充值金额 */
|
|
168
168
|
readonly OrderAmount: "order_total_amount";
|
|
169
|
+
/** 累计充值次数 */
|
|
170
|
+
readonly OrderCount: "order_total_count";
|
|
169
171
|
/** 社区发帖数量 */
|
|
170
172
|
readonly Posts: "community_posts";
|
|
171
173
|
/** 社区评论数量 */
|
|
@@ -178,6 +180,8 @@ export declare const QuestObjective: {
|
|
|
178
180
|
readonly PlayerLevel: "player_level";
|
|
179
181
|
/** 活动道具累计获取 */
|
|
180
182
|
readonly EventItems: "event_items";
|
|
183
|
+
/**游戏内任务 */
|
|
184
|
+
readonly GameTask: "game_task";
|
|
181
185
|
};
|
|
182
186
|
export type QuestObjective = ValueOf<typeof QuestObjective>;
|
|
183
187
|
export declare const QuestObjectiveValidator: import("@seayoo-web/validator").StringValidator<QuestObjective, false, false> & {
|
|
@@ -408,16 +412,6 @@ export declare const QuestProgressAlgorithmValidator: import("@seayoo-web/valida
|
|
|
408
412
|
maybeNull: never;
|
|
409
413
|
lock: never;
|
|
410
414
|
};
|
|
411
|
-
export declare const QuestProgressAlgorithmOptionalValidator: import("@seayoo-web/validator").StringValidator<QuestProgressAlgorithm, true, false> & {
|
|
412
|
-
pattern: never;
|
|
413
|
-
url: never;
|
|
414
|
-
dataUri: never;
|
|
415
|
-
enum: never;
|
|
416
|
-
disallow: never;
|
|
417
|
-
optional: never;
|
|
418
|
-
maybeNull: never;
|
|
419
|
-
lock: never;
|
|
420
|
-
};
|
|
421
415
|
/**
|
|
422
416
|
* vote2 玩法的奖励结算状态
|
|
423
417
|
*/
|