@seayoo-web/gamer-api 2.13.13 → 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
@@ -205,7 +205,8 @@ class ia {
205
205
  c({ game_id: t }),
206
206
  fe,
207
207
  {
208
- message: !1
208
+ message: !1,
209
+ maxRetry: 2
209
210
  }
210
211
  );
211
212
  switch (r) {
@@ -456,6 +457,7 @@ class ca {
456
457
  * https://kdocs.cn/l/cgp4gSBMbOf1?linkname=tuhsPt3ihp
457
458
  */
458
459
  async getConfig(t) {
460
+ await this.token.autoLogin();
459
461
  const { data: n } = await this.req.get("club/config", Me, t);
460
462
  return n;
461
463
  }
@@ -509,6 +511,7 @@ class ca {
509
511
  * https://kdocs.cn/l/cgp4gSBMbOf1?linkname=A1Wr7kUXnS
510
512
  */
511
513
  async getRoleCard(t, n) {
514
+ await this.token.autoLogin();
512
515
  const { data: r } = await this.req.get("club/role-card", T, {
513
516
  ...n,
514
517
  params: { member_id: t }
@@ -541,6 +544,7 @@ class ca {
541
544
  * https://kdocs.cn/l/cgp4gSBMbOf1?linkname=TMWBCFcOr2
542
545
  */
543
546
  async getUserProfile(t, n) {
547
+ await this.token.autoLogin();
544
548
  const { data: r } = await this.req.get("club/user-profile", Q, {
545
549
  ...n,
546
550
  params: { member_id: t }
@@ -671,6 +675,7 @@ class ca {
671
675
  * https://kdocs.cn/l/cgp4gSBMbOf1?linkname=r3vC3PzfMQ
672
676
  */
673
677
  async getProducts(t, n) {
678
+ await this.token.autoLogin();
674
679
  const { data: r } = await this.req.get("club/products", Ze, {
675
680
  ...n,
676
681
  params: t
@@ -724,6 +729,8 @@ const v = {
724
729
  LotteryTicket: "lottery_ticket",
725
730
  /** 俱乐部积分 */
726
731
  ClubCredit: "club_credit",
732
+ /** 俱乐部成长值 */
733
+ ClubExp: "club_exp",
727
734
  /** 外部兑换码 */
728
735
  ExternalCode: "external_gift_code",
729
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.13",
4
+ "version": "2.13.16",
5
5
  "type": "module",
6
6
  "source": "index.ts",
7
7
  "main": "./dist/index.js",
@@ -32,8 +32,8 @@
32
32
  "@types/node": "^22.13.1",
33
33
  "@seayoo-web/combo-webview": "2.8.0",
34
34
  "@seayoo-web/scripts": "3.1.6",
35
- "@seayoo-web/request": "3.4.2",
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
  /** 空奖励 */