@seayoo-web/gamer-api 2.13.14 → 2.13.17

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
  /** 空奖励 */
@@ -1278,6 +1284,9 @@ const v = {
1278
1284
  ugcs: e.array(
1279
1285
  e.object({
1280
1286
  ugc_id: e.number(),
1287
+ event_id: e.number().optional(),
1288
+ feature_id: e.number().optional(),
1289
+ feature_name: e.string().optional(),
1281
1290
  review_status: kt,
1282
1291
  title: e.string(),
1283
1292
  content: e.string().optional(),
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.14",
4
+ "version": "2.13.17",
5
5
  "type": "module",
6
6
  "source": "index.ts",
7
7
  "main": "./dist/index.js",
@@ -32,9 +32,9 @@
32
32
  "@types/node": "^22.13.1",
33
33
  "@seayoo-web/combo-webview": "2.8.0",
34
34
  "@seayoo-web/request": "3.4.2",
35
- "@seayoo-web/scripts": "3.1.6",
36
35
  "@seayoo-web/tsconfig": "1.0.5",
37
36
  "@seayoo-web/utils": "4.1.3",
37
+ "@seayoo-web/scripts": "3.1.6",
38
38
  "@seayoo-web/validator": "2.0.0"
39
39
  },
40
40
  "peerDependencies": {
@@ -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;
@@ -344,8 +344,8 @@ export declare class EventApi {
344
344
  * https://www.kdocs.cn/l/ckWFDcOsYEUA?linkname=biEwrNKhAF
345
345
  */
346
346
  getUgcRecord(option: {
347
- /** 按照多个活动 ID 批量查询投稿记录。若传入此参数,不再进行单活动/玩法的精确匹配*/
348
- event_ids?: number[];
347
+ /** 按照多个活动 ID 批量查询投稿记录,以逗号分隔。若传入此参数,不再进行单活动/玩法的精确匹配*/
348
+ event_ids?: string;
349
349
  /** 单个活动 ID */
350
350
  event_id?: number;
351
351
  /** 活动玩法 ID */
@@ -30,6 +30,12 @@ export declare const UgcEngagementDataValidator: import("@seayoo-web/validator")
30
30
  export interface UgcRecord {
31
31
  /** 投稿记录 ID */
32
32
  ugc_id: number;
33
+ /** 活动 ID */
34
+ event_id?: number;
35
+ /** 玩法 ID */
36
+ feature_id?: number;
37
+ /** 玩法名称 */
38
+ feature_name?: string;
33
39
  /** 状态 */
34
40
  review_status: UgcReviewStatus;
35
41
  /** 标题 */
@@ -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
  /** 空奖励 */
@@ -1,4 +1,4 @@
1
- export declare const console: Pick<Console, "error" | "log" | "warn">;
1
+ export declare const console: Pick<Console, "log" | "error" | "warn">;
2
2
  /** 检测是否在 combo webview */
3
3
  export declare function inComboWebview(): boolean;
4
4
  export declare function isRootEndpoint(path: string): boolean;