@seayoo-web/gamer-api 2.13.14 → 2.13.16
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
CHANGED
|
@@ -457,6 +457,7 @@ class ca {
|
|
|
457
457
|
* https://kdocs.cn/l/cgp4gSBMbOf1?linkname=tuhsPt3ihp
|
|
458
458
|
*/
|
|
459
459
|
async getConfig(t) {
|
|
460
|
+
await this.token.autoLogin();
|
|
460
461
|
const { data: n } = await this.req.get("club/config", Me, t);
|
|
461
462
|
return n;
|
|
462
463
|
}
|
|
@@ -510,6 +511,7 @@ class ca {
|
|
|
510
511
|
* https://kdocs.cn/l/cgp4gSBMbOf1?linkname=A1Wr7kUXnS
|
|
511
512
|
*/
|
|
512
513
|
async getRoleCard(t, n) {
|
|
514
|
+
await this.token.autoLogin();
|
|
513
515
|
const { data: r } = await this.req.get("club/role-card", T, {
|
|
514
516
|
...n,
|
|
515
517
|
params: { member_id: t }
|
|
@@ -542,6 +544,7 @@ class ca {
|
|
|
542
544
|
* https://kdocs.cn/l/cgp4gSBMbOf1?linkname=TMWBCFcOr2
|
|
543
545
|
*/
|
|
544
546
|
async getUserProfile(t, n) {
|
|
547
|
+
await this.token.autoLogin();
|
|
545
548
|
const { data: r } = await this.req.get("club/user-profile", Q, {
|
|
546
549
|
...n,
|
|
547
550
|
params: { member_id: t }
|
|
@@ -672,6 +675,7 @@ class ca {
|
|
|
672
675
|
* https://kdocs.cn/l/cgp4gSBMbOf1?linkname=r3vC3PzfMQ
|
|
673
676
|
*/
|
|
674
677
|
async getProducts(t, n) {
|
|
678
|
+
await this.token.autoLogin();
|
|
675
679
|
const { data: r } = await this.req.get("club/products", Ze, {
|
|
676
680
|
...n,
|
|
677
681
|
params: t
|
|
@@ -725,6 +729,8 @@ const v = {
|
|
|
725
729
|
LotteryTicket: "lottery_ticket",
|
|
726
730
|
/** 俱乐部积分 */
|
|
727
731
|
ClubCredit: "club_credit",
|
|
732
|
+
/** 俱乐部成长值 */
|
|
733
|
+
ClubExp: "club_exp",
|
|
728
734
|
/** 外部兑换码 */
|
|
729
735
|
ExternalCode: "external_gift_code",
|
|
730
736
|
/** 空奖励 */
|
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.13.
|
|
4
|
+
"version": "2.13.16",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "index.ts",
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^22.13.1",
|
|
33
33
|
"@seayoo-web/combo-webview": "2.8.0",
|
|
34
|
-
"@seayoo-web/request": "3.4.2",
|
|
35
34
|
"@seayoo-web/scripts": "3.1.6",
|
|
36
35
|
"@seayoo-web/tsconfig": "1.0.5",
|
|
36
|
+
"@seayoo-web/request": "3.4.2",
|
|
37
37
|
"@seayoo-web/utils": "4.1.3",
|
|
38
38
|
"@seayoo-web/validator": "2.0.0"
|
|
39
39
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { EventFeatureBaseConfig } from "./feature.base";
|
|
2
2
|
import type { InferType } from "@seayoo-web/validator";
|
|
3
|
-
declare const rewardItemTypeValidator: import("@seayoo-web/validator").StringValidator<"event_item" | "game_item" | "physical_item" | "weixin_hongbao" | "activation_key" | "club_credit" | "external_gift_code" | "void_item", false, false>;
|
|
3
|
+
declare const rewardItemTypeValidator: import("@seayoo-web/validator").StringValidator<"event_item" | "game_item" | "physical_item" | "weixin_hongbao" | "activation_key" | "club_credit" | "club_exp" | "external_gift_code" | "void_item", false, false>;
|
|
4
4
|
declare const featureType: "lottery";
|
|
5
5
|
export interface FeatureLotteryItemConfig {
|
|
6
6
|
/** 抽奖奖励道具 id */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { InferType } from "@seayoo-web/validator";
|
|
2
|
-
declare const rewardItemTypeValidator: import("@seayoo-web/validator").StringValidator<"event_item" | "game_item" | "physical_item" | "weixin_hongbao" | "gift_code" | "activation_key" | "lottery_ticket" | "club_credit" | "external_gift_code" | "void_item", false, false>;
|
|
2
|
+
declare const rewardItemTypeValidator: import("@seayoo-web/validator").StringValidator<"event_item" | "game_item" | "physical_item" | "weixin_hongbao" | "gift_code" | "activation_key" | "lottery_ticket" | "club_credit" | "club_exp" | "external_gift_code" | "void_item", false, false>;
|
|
3
3
|
export interface EventRewardItemConfig {
|
|
4
4
|
/** 玩法奖励道具 id */
|
|
5
5
|
reward_item_id: number;
|
|
@@ -17,6 +17,8 @@ export declare const GamerItemType: {
|
|
|
17
17
|
readonly LotteryTicket: "lottery_ticket";
|
|
18
18
|
/** 俱乐部积分 */
|
|
19
19
|
readonly ClubCredit: "club_credit";
|
|
20
|
+
/** 俱乐部成长值 */
|
|
21
|
+
readonly ClubExp: "club_exp";
|
|
20
22
|
/** 外部兑换码 */
|
|
21
23
|
readonly ExternalCode: "external_gift_code";
|
|
22
24
|
/** 空奖励 */
|
|
@@ -51,6 +53,8 @@ export declare const RewardItemType: {
|
|
|
51
53
|
readonly LotteryTicket: "lottery_ticket";
|
|
52
54
|
/** 俱乐部积分 */
|
|
53
55
|
readonly ClubCredit: "club_credit";
|
|
56
|
+
/** 俱乐部成长值 */
|
|
57
|
+
readonly ClubExp: "club_exp";
|
|
54
58
|
/** 外部兑换码 */
|
|
55
59
|
readonly ExternalCode: "external_gift_code";
|
|
56
60
|
/** 空奖励 */
|